PHP Class Elastica\Query\MoreLikeThis

Inheritance: extends AbstractQuery
Afficher le fichier Open project: ruflin/elastica Class Usage Examples

Méthodes publiques

Méthode Description
setAnalyzer ( string $analyzer ) Set analyzer.
setBoost ( float $boost ) Set boost.
setBoostTerms ( boolean $boostTerms ) Set boost terms.
setFields ( array $fields ) : MoreLikeThis Set fields to which to restrict the mlt query.
setLike ( string | Document $like ) Set the "like" value.
setMaxDocFrequency ( integer $maxDocFreq ) set max document frequency.
setMaxQueryTerms ( integer $maxQueryTerms ) Set max_query_terms.
setMaxWordLength ( integer $maxWordLength ) Set max word length.
setMinDocFrequency ( integer $minDocFreq ) set min document frequency.
setMinTermFrequency ( integer $minTermFreq ) Set min term frequency.
setMinWordLength ( integer $minWordLength ) Set min word length.
setMinimumShouldMatch ( integer | string $minimumShouldMatch ) Set minimum_should_match option.
setStopWords ( array $stopWords ) Set stop words.
toArray ( )

Method Details

setAnalyzer() public méthode

Set analyzer.
public setAnalyzer ( string $analyzer )
$analyzer string

setBoost() public méthode

Set boost.
public setBoost ( float $boost )
$boost float Boost value

setBoostTerms() public méthode

Set boost terms.
public setBoostTerms ( boolean $boostTerms )
$boostTerms boolean

setFields() public méthode

Set fields to which to restrict the mlt query.
public setFields ( array $fields ) : MoreLikeThis
$fields array Field names
Résultat MoreLikeThis Current object

setLike() public méthode

Set the "like" value.
public setLike ( string | Document $like )
$like string | Elastica\Document

setMaxDocFrequency() public méthode

set max document frequency.
public setMaxDocFrequency ( integer $maxDocFreq )
$maxDocFreq integer

setMaxQueryTerms() public méthode

Set max_query_terms.
public setMaxQueryTerms ( integer $maxQueryTerms )
$maxQueryTerms integer Max query terms value

setMaxWordLength() public méthode

Set max word length.
public setMaxWordLength ( integer $maxWordLength )
$maxWordLength integer

setMinDocFrequency() public méthode

set min document frequency.
public setMinDocFrequency ( integer $minDocFreq )
$minDocFreq integer

setMinTermFrequency() public méthode

Set min term frequency.
public setMinTermFrequency ( integer $minTermFreq )
$minTermFreq integer

setMinWordLength() public méthode

Set min word length.
public setMinWordLength ( integer $minWordLength )
$minWordLength integer

setMinimumShouldMatch() public méthode

Set minimum_should_match option.
public setMinimumShouldMatch ( integer | string $minimumShouldMatch )
$minimumShouldMatch integer | string

setStopWords() public méthode

Set stop words.
public setStopWords ( array $stopWords )
$stopWords array

toArray() public méthode

public toArray ( )