SolrDisMaxQuery::removePhraseField

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

SolrDisMaxQuery::removePhraseFieldRemoves a Phrase Field (pf parameter)

Opis

public SolrDisMaxQuery::removePhraseField ( string $field ) : SolrDisMaxQuery

Removes a Phrase Field (pf parameter) that was previously added using SolrDisMaxQuery::addPhraseField

Parametry

field

Field Name

Zwracane wartości

SolrDisMaxQuery

Przykłady

Przykład #1 SolrDisMaxQuery::removePhraseField() example

<?php
$dismaxQuery 
= new SolrDisMaxQuery('lucene');
$dismaxQuery
    
->addPhraseField('first'31)
    ->
addPhraseField('second'41)
    ->
addPhraseField('cat'55);
echo 
$dismaxQuery PHP_EOL;
echo 
$dismaxQuery->removePhraseField('second');
?>

Powyższy przykład wyświetli coś podobnego do:

q=lucene&defType=edismax&pf=first~1^3 second~1^4 cat^55
q=lucene&defType=edismax&pf=first~1^3 cat^55

Zobacz też:

add a note add a note

User Contributed Notes

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