update : 2015.11.03
php.shukuma.com

검색:
 
 
Adds a field to User Fields Parameter (uf)

SolrDisMaxQuery::addUserField

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

SolrDisMaxQuery::addUserFieldAdds a field to User Fields Parameter (uf)

설명

public SolrDisMaxQuery SolrDisMaxQuery::addUserField ( string $field )

Adds a field to The User Fields Parameter (uf)

인수

field

Field Name

반환값

SolrDisMaxQuery

예제

Example #1 SolrDisMaxQuery::addUserField() example

<?php

$dismaxQuery 
= new SolrDisMaxQuery('lucene');
$dismaxQuery
->addUserField('cat')
->
addUserField('text')
->
addUserField('*_dt');

echo 
$dismaxQuery.PHP_EOL;

?>

위 예제의 출력 예시:

q=lucene&defType=edismax&uf=cat text *_dt

참고