PHP 7.1.0 Release Candidate 4 Released


(PECL solr >= 0.9.2)

SolrQuery::addHighlightFieldMaps to hl.fl


public SolrQuery SolrQuery::addHighlightField ( string $field )

Maps to hl.fl. This is used to specify that highlighted snippets should be generated for a particular field

Elenco dei parametri


Name of the field

Valori restituiti

Returns the current SolrQuery object, if the return value is used.

add a note add a note

User Contributed Notes 1 note

sanjeevk at euroblaze dot de
2 years ago
Hello all,

I have being working on filter using solr server. I got a problem in using addFilterQuery(). Below is my code snippet:-

        $query = new SolrQuery();




        $query->addFilterQuery('oxprice:[10 TO 100]');

        $query_response = $client->query($query);

        $response = $query_response->getResponse();


Problem is I get data without filtering price range of 10 TO 100 ( I mean I get records without any filtering). Please help me find Solution..

Thanks In Advance.
To Top