SolrDisMaxQuery::addUserField
Adds a field to User Fields Parameter (uf)
説明
public SolrDisMaxQuery SolrDisMaxQuery::addUserField(string $field
)
例
例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
参考
- SolrDisMaxQuery::removeUserField
- SolrDisMaxQuery::setUserFields