Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетил 85161 программист и 4767 роботов. Сейчас ищут 1472 программиста ...
Приступая к работе

SolrDisMaxQuery::setQueryPhraseSlop - specifies the amount of slop permitted on phrase queries explicitly included in the user's query string (qf parameter)

Вернуться к: SolrDisMaxQuery

SolrDisMaxQuery::setQueryPhraseSlop

(Информация о версии неизвестна, возможно, только в SVN)

SolrDisMaxQuery::setQueryPhraseSlopspecifies the amount of slop permitted on phrase queries explicitly included in the user's query string (qf parameter)

Описание

public SolrDisMaxQuery SolrDisMaxQuery::setQueryPhraseSlop ( string $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.

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

slop

Amount of slop

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

SolrDisMaxQuery

Примеры

Пример #1 SolrDisMaxQuery::setQueryPhraseSlop() example

<?php

$dismaxQuery 
= new SolrDisMaxQuery();
$dismaxQuery->setQueryPhraseSlop(3);
echo 
$dismaxQuery;
?>

Результатом выполнения данного примера будет что-то подобное:

defType=edismax&qs=3


Вернуться к: SolrDisMaxQuery

© 2026 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты
Разработка компании ODWR