* @link https://github.com/pjmazenot/phpsolr-phpdoc */ /** * (PECL solr >= 2.1.0)
* Version not present on php.net documentation, determined here by using PECL solr changelog: * https://pecl.php.net/package-changelog.php?package=solr&release=2.1.0
* Class SolrDisMaxQuery
* @link https://php.net/manual/en/class.solrdismaxquery.php */ class SolrDisMaxQuery extends SolrQuery implements Serializable { /** * (PECL solr >= 2.1.0)
* Adds a Phrase Bigram Field (pf2 parameter) * @link https://php.net/manual/en/solrdismaxquery.addbigramphrasefield.php * @param string $field

* Field name *

* @param string $boost [optional]

* Boost value. Boosts documents with matching terms. *

* @param string $slop [optional]

* Field Slop *

* @return SolrDisMaxQuery */ public function addBigramPhraseField($field, $boost, $slop) {} /** * (PECL solr >= 2.1.0)
* Adds a boost query field with value and optional boost (bq parameter) * @link https://php.net/manual/en/solrdismaxquery.addboostquery.php * @param string $field

* Field name *

* @param string $value * @param string $boost [optional]

* Boost value. Boosts documents with matching terms. *

* @return SolrDisMaxQuery */ public function addBoostQuery($field, $value, $boost) {} /** * (PECL solr >= 2.1.0)
* Adds a Phrase Field (pf parameter) * @link https://php.net/manual/en/solrdismaxquery.addphrasefield.php * @param string $field

* Field name *

* @param string $boost [optional]

* Boost value. Boosts documents with matching terms. *

* @param string $slop [optional]

* Field Slop *

* @return SolrDisMaxQuery */ public function addPhraseField($field, $boost, $slop) {} /** * (PECL solr >= 2.1.0)
* Add a query field with optional boost (qf parameter) * @link https://php.net/manual/en/solrdismaxquery.addqueryfield.php * @param string $field

* Field name *

* @param string $boost [optional]

* Boost value. Boosts documents with matching terms. *

* @return SolrDisMaxQuery */ public function addQueryField($field, $boost) {} /** * (PECL solr >= 2.1.0)
* Adds a Trigram Phrase Field (pf3 parameter) * @link https://php.net/manual/en/solrdismaxquery.addtrigramphrasefield.php * @param string $field

* Field name *

* @param string $boost [optional]

* Boost value. Boosts documents with matching terms. *

* @param string $slop [optional]

* Field Slop *

* @return SolrDisMaxQuery */ public function addTrigramPhraseField($field, $boost, $slop) {} /** * (PECL solr >= 2.1.0)
* Adds a field to User Fields Parameter (uf) * @link https://php.net/manual/en/solrdismaxquery.adduserfield.php * @param string $field

* Field name *

* @return SolrDisMaxQuery */ public function addUserField($field) {} /** * (PECL solr >= 2.1.0)
* Removes phrase bigram field (pf2 parameter) * @link https://php.net/manual/en/solrdismaxquery.removebigramphrasefield.php * @param string $field

* Field name *

* @return SolrDisMaxQuery */ public function removeBigramPhraseField($field) {} /** * (PECL solr >= 2.1.0)
* Removes a boost query partial by field name (bq) * @link https://php.net/manual/en/solrdismaxquery.removeboostquery.php * @param string $field

* Field name *

* @return SolrDisMaxQuery */ public function removeBoostQuery($field) {} /** * (PECL solr >= 2.1.0)
* Removes a Phrase Field (pf parameter) * @link https://php.net/manual/en/solrdismaxquery.removephrasefield.php * @param string $field

* Field name *

* @return SolrDisMaxQuery */ public function removePhraseField($field) {} /** * (PECL solr >= 2.1.0)
* Removes a Query Field (qf parameter) * @link https://php.net/manual/en/solrdismaxquery.removequeryfield.php * @param string $field

* Field name *

* @return SolrDisMaxQuery */ public function removeQueryField($field) {} /** * (PECL solr >= 2.1.0)
* Removes a Trigram Phrase Field (pf3 parameter) * @link https://php.net/manual/en/solrdismaxquery.removetrigramphrasefield.php * @param string $field

* Field name *

* @return SolrDisMaxQuery */ public function removeTrigramPhraseField($field) {} /** * (PECL solr >= 2.1.0)
* Removes a field from The User Fields Parameter (uf) *
* Warning
* This function is currently not documented; only its argument list is available. *
* @link https://php.net/manual/en/solrdismaxquery.removeuserfield.php * @param string $field

* Field name *

* @return SolrDisMaxQuery */ public function removeUserField($field) {} /** * (PECL solr >= 2.1.0)
* Sets Bigram Phrase Fields and their boosts (and slops) using pf2 parameter * @link https://php.net/manual/en/solrdismaxquery.setbigramphrasefields.php * @param string $fields

* Fields boosts (slops) *

* @return SolrDisMaxQuery */ public function setBigramPhraseFields($fields) {} /** * (PECL solr >= 2.1.0)
* Sets Bigram Phrase Slop (ps2 parameter) * @link https://php.net/manual/en/solrdismaxquery.setbigramphraseslop.php * @param string $slop

* A default slop for Bigram phrase fields. *

* @return SolrDisMaxQuery */ public function setBigramPhraseSlop($slop) {} /** * (PECL solr >= 2.1.0)
* Sets a Boost Function (bf parameter). * @link https://php.net/manual/en/solrdismaxquery.setboostfunction.php * @param string $function

* Functions (with optional boosts) that will be included in the user's query to influence the score. Any function * supported natively by Solr can be used, along with a boost value. e.g.:
* recip(rord(myfield),1,2,3)^1.5 *

* @return SolrDisMaxQuery */ public function setBoostFunction($function) {} /** * (PECL solr >= 2.1.0)
* Directly Sets Boost Query Parameter (bq) * @link https://php.net/manual/en/solrdismaxquery.setboostquery.php * @param string $q * @return SolrDisMaxQuery */ public function setBoostQuery($q) {} /** * (PECL solr >= 2.1.0)
* Set Minimum "Should" Match (mm) * @link https://php.net/manual/en/solrdismaxquery.setminimummatch.php * @param string $value

* Minimum match value/expression
* Set Minimum "Should" Match parameter (mm). If the default query operator is AND then mm=100%, if the default * query operator (q.op) is OR, then mm=0%. *

* @return SolrDisMaxQuery */ public function setMinimumMatch($value) {} /** * (PECL solr >= 2.1.0)
* Sets Phrase Fields and their boosts (and slops) using pf2 parameter * @link https://php.net/manual/en/solrdismaxquery.setphrasefields.php * @param string $fields

* Fields, boosts [, slops] *

* @return SolrDisMaxQuery */ public function setPhraseFields($fields) {} /** * (PECL solr >= 2.1.0)
* Sets the default slop on phrase queries (ps parameter) * @link https://php.net/manual/en/solrdismaxquery.setphraseslop.php * @param string $slop

* Sets the default amount of slop on phrase queries built with "pf", "pf2" and/or "pf3" fields (affects boosting). * "ps" parameter *

* @return SolrDisMaxQuery */ public function setPhraseSlop($slop) {} /** * (PECL solr >= 2.1.0)
* Set Query Alternate (q.alt parameter) * @link https://php.net/manual/en/solrdismaxquery.setqueryalt.php * @param string $q

* Query String *

* @return SolrDisMaxQuery */ public function setQueryAlt($q) {} /** * (PECL solr >= 2.1.0)
* Specifies the amount of slop permitted on phrase queries explicitly included in the user's query string (qf * parameter) * @link https://php.net/manual/en/solrdismaxquery.setqueryphraseslop.php * @param string $slop

* Amount of slop
* The Query Phrase Slop is the amount of slop permitted on phrase queries explicitly included in the user's query * string with the qf parameter.
*
* slop refers to the number of positions one token needs to be moved in relation to another token in order to match * a phrase specified in a query. *

* @return SolrDisMaxQuery */ public function setQueryPhraseSlop($slop) {} /** * (PECL solr >= 2.1.0)
* Sets Tie Breaker parameter (tie parameter) * @link https://php.net/manual/en/solrdismaxquery.settiebreaker.php * @param string $tieBreaker

* The tie parameter specifies a float value (which should be something much less than 1) to use as tiebreaker in * DisMax queries. *

* @return SolrDisMaxQuery */ public function setTieBreaker($tieBreaker) {} /** * (PECL solr >= 2.1.0)
* Directly Sets Trigram Phrase Fields (pf3 parameter) * @link https://php.net/manual/en/solrdismaxquery.settrigramphrasefields.php * @param string $fields

* Trigram Phrase Fields *

* @return SolrDisMaxQuery */ public function setTrigramPhraseFields($fields) {} /** * (PECL solr >= 2.1.0)
* Sets Trigram Phrase Slop (ps3 parameter) * @link https://php.net/manual/en/solrdismaxquery.settrigramphraseslop.php * @param string $slop

* Phrase slop *

* @return SolrDisMaxQuery */ public function setTrigramPhraseSlop($slop) {} /** * (PECL solr >= 2.1.0)
* Sets User Fields parameter (uf) * @link https://php.net/manual/en/solrdismaxquery.setuserfields.php * @param string $fields

* Fields names separated by space
* This parameter supports wildcards. *

* @return SolrDisMaxQuery */ public function setUserFields($fields) {} /** * (PECL solr >= 2.1.0)
* Switch QueryParser to be DisMax Query Parser * @link https://php.net/manual/en/solrdismaxquery.usedismaxqueryparser.php * @return SolrDisMaxQuery */ public function useDisMaxQueryParser() {} /** * (PECL solr >= 2.1.0)
* Switch QueryParser to be EDisMax
* By default the query builder uses edismax, if it was switched using * SolrDisMaxQuery::useDisMaxQueryParser(), it can be switched back using this method. * @link https://php.net/manual/en/solrdismaxquery.useedismaxqueryparser.php * @return SolrDisMaxQuery */ public function useEDisMaxQueryParser() {} }