php8.5
Home/ Manual/ reference / solr/ The SolrDisMaxQuery class

The SolrDisMaxQuery class

Used to specify that the sorting should be in acending order (Duplicated for easier migration)

Intro

Class synopsis

class SolrDisMaxQuery { }

Predefined Constants

SolrDisMaxQuery::ORDER_ASC

Used to specify that the sorting should be in acending order (Duplicated for easier migration)

SolrDisMaxQuery::ORDER_DESC

Used to specify that the sorting should be in descending order (Duplicated for easier migration)

SolrDisMaxQuery::FACET_SORT_INDEX

Used to specify that the facet should sort by index (Duplicated for easier migration)

SolrDisMaxQuery::FACET_SORT_COUNT

Used to specify that the facet should sort by count (Duplicated for easier migration)

SolrDisMaxQuery::TERMS_SORT_INDEX

Used in the TermsComponent (Duplicated for easier migration)

SolrDisMaxQuery::TERMS_SORT_COUNT

Used in the TermsComponent (Duplicated for easier migration)

Solrdismaxquery

In this section

SolrDisMaxQuery::__construct

Class Constructor

SolrDisMaxQuery::addBigramPhraseField

Adds a Phrase Bigram Field (pf2 parameter)

SolrDisMaxQuery::addBoostQuery

Adds a boost query field with value and optional boost (bq parameter)

SolrDisMaxQuery::addPhraseField

Adds a Phrase Field (pf parameter)

SolrDisMaxQuery::addQueryField

Add a query field with optional boost (qf parameter)

SolrDisMaxQuery::addTrigramPhraseField

Adds a Trigram Phrase Field (pf3 parameter)

SolrDisMaxQuery::addUserField

Adds a field to User Fields Parameter (uf)

SolrDisMaxQuery::removeBigramPhraseField

Removes phrase bigram field (pf2 parameter)

SolrDisMaxQuery::removeBoostQuery

Removes a boost query partial by field name (bq)

SolrDisMaxQuery::removePhraseField

Removes a Phrase Field (pf parameter)

SolrDisMaxQuery::removeQueryField

Removes a Query Field (qf parameter)

SolrDisMaxQuery::removeTrigramPhraseField

Removes a Trigram Phrase Field (pf3 parameter)

SolrDisMaxQuery::removeUserField

Removes a field from The User Fields Parameter (uf)

SolrDisMaxQuery::setBigramPhraseFields

Sets Bigram Phrase Fields and their boosts (and slops) using pf2 parameter

SolrDisMaxQuery::setBigramPhraseSlop

Sets Bigram Phrase Slop (ps2 parameter)

SolrDisMaxQuery::setBoostFunction

Sets a Boost Function (bf parameter)

SolrDisMaxQuery::setBoostQuery

Directly Sets Boost Query Parameter (bq)

SolrDisMaxQuery::setMinimumMatch

Set Minimum "Should" Match (mm)

SolrDisMaxQuery::setPhraseFields

Sets Phrase Fields and their boosts (and slops) using pf2 parameter

SolrDisMaxQuery::setPhraseSlop

Sets the default slop on phrase queries (ps parameter)

SolrDisMaxQuery::setQueryAlt

Set Query Alternate (q.alt parameter)

SolrDisMaxQuery::setQueryPhraseSlop

Specifies the amount of slop permitted on phrase queries explicitly included in the user's...

SolrDisMaxQuery::setTieBreaker

Sets Tie Breaker parameter (tie parameter)

SolrDisMaxQuery::setTrigramPhraseFields

Directly Sets Trigram Phrase Fields (pf3 parameter)

SolrDisMaxQuery::setTrigramPhraseSlop

Sets Trigram Phrase Slop (ps3 parameter)

SolrDisMaxQuery::setUserFields

Sets User Fields parameter (uf)

SolrDisMaxQuery::useDisMaxQueryParser

Switch QueryParser to be DisMax Query Parser

SolrDisMaxQuery::useEDisMaxQueryParser

Switch QueryParser to be EDisMax

Source: reference/solr/solrdismaxquery.xml · from the official PHP manual (php/doc-en)