update : 2015.11.03
php.shukuma.com

검색:
 
 
Sets User Fields parameter (uf)

SolrDisMaxQuery::setUserFields

(No version information available, might only be in Git)

SolrDisMaxQuery::setUserFieldsSets User Fields parameter (uf)

설명

public SolrDisMaxQuery SolrDisMaxQuery::setUserFields ( string $fields )

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.

반환값

SolrDisMaxQuery

예제

Example #1 SolrDisMaxQuery::setUserFields() example

<?php

$dismaxQuery 
= new SolrDisMaxQuery('lucene');
$dismaxQuery->setUserFields('field1 field2 *_txt');
echo 
$dismaxQuery.PHP_EOL;

?>

위 예제의 출력 예시:

q=lucene&defType=edismax&uf=field1 field2 *_txt

참고