PHP Velho Oeste 2024

SolrQuery::addHighlightField

(PECL solr >= 0.9.2)

SolrQuery::addHighlightFieldСоответствует hl.fl

Описание

public SolrQuery::addHighlightField(string $field): SolrQuery

Соответствует hl.fl. Используется, чтобы указать, что выделенные фрагменты должны быть созданы для определённого поля.

Список параметров

field

Название поля

Возвращаемые значения

Возвращает текущий объект SolrQuery, если используется возвращаемое значение.

add a note add a note

User Contributed Notes 1 note

up
0
sanjeevk at euroblaze dot de
10 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->setQuery('*:*');

        $query->setStart(0);

        $query->setRows(50);

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

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

        $response = $query_response->getResponse();

        print_r($response);exit;

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