PHP 8.0.0 Beta 4 available for testing

SolrDisMaxQuery::setBoostQuery

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

SolrDisMaxQuery::setBoostQueryDirectly Sets Boost Query Parameter (bq)

Descrierea

public SolrDisMaxQuery::setBoostQuery ( string $q ) : SolrDisMaxQuery

Sets Boost Query Parameter (bq)

Parametri

q

query

Valorile întoarse

SolrDisMaxQuery

Exemple

Example #1 SolrDisMaxQuery::setBoostQuery() example

<?php
$dismaxQuery 
= new SolrDisMaxQuery("lucene");

$dismaxQuery->setBoostQuery('cat:electronics manu:local^2');
echo 
$dismaxQuery.PHP_EOL;
?>

Exemplul de mai sus va afișa ceva similar cu:

q=lucene&defType=edismax&bq=cat:electronics manu:local^2

A se vedea și

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top