1--TEST-- 2SolrDisMaxQuery - Boost Query 3--FILE-- 4<?php 5 6$dismaxQuery = new SolrDisMaxQuery("lucene"); 7$dismaxQuery 8 ->addBoostQuery('cat', 'electronics', 5.1) 9 ->addBoostQuery('cat', 'hard drive') 10; 11// reverse 12echo $dismaxQuery.PHP_EOL; 13$dismaxQuery 14->removeBoostQuery('cat'); 15echo $dismaxQuery.PHP_EOL; 16 17$dismaxQuery->setBoostQuery('cat:electronics manu:local^2'); 18echo $dismaxQuery.PHP_EOL; 19?> 20--EXPECTF-- 21q=lucene&defType=edismax&bq=cat:electronics^5.1 cat:hard drive 22q=lucene&defType=edismax&bq=cat:hard drive 23 24Notice: SolrDisMaxQuery::setBoostQuery(): Parameter bq value(s) was overwritten by this call in %s on line %d 25q=lucene&defType=edismax&bq=cat:electronics manu:local^2 26