array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'solrdismaxquery.setuserfields.php', 1 => 'SolrDisMaxQuery::setUserFields', ), 'up' => array ( 0 => 'class.solrdismaxquery.php', 1 => 'SolrDisMaxQuery', ), 'prev' => array ( 0 => 'solrdismaxquery.settrigramphraseslop.php', 1 => 'SolrDisMaxQuery::setTrigramPhraseSlop', ), 'next' => array ( 0 => 'solrdismaxquery.usedismaxqueryparser.php', 1 => 'SolrDisMaxQuery::useDisMaxQueryParser', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrdismaxquery/setuserfields.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(No version information available, might only be in Git)
SolrDisMaxQuery::setUserFields — Sets User Fields parameter (uf)
Sets User Fields parameter (uf)
User Fields: Specifies which schema fields the end user shall be allowed to query.
fields
Fields names separated by space
This parameter supports wildcards.
Örnek 1 SolrDisMaxQuery::setUserFields() example
<?php
$dismaxQuery = new SolrDisMaxQuery('lucene');
$dismaxQuery->setUserFields('field1 field2 *_txt');
echo $dismaxQuery.PHP_EOL;
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
q=lucene&defType=edismax&uf=field1 field2 *_txt