$_params
$_params : array
Params.
More Like This query.
This function can be used to handle params for queries, filter
setFields(array $fields) : \Elastica\Query\MoreLikeThis
Set fields to which to restrict the mlt query.
array | $fields | Field names |
Current object
setIds(array $ids) : \Elastica\Query\MoreLikeThis
Set document ids for the mlt query.
array | $ids | Document ids |
Current object
setLike(string|\Elastica\Document $like) : $this
Set the "like" value.
string|\Elastica\Document | $like |
None found |
setLikeText(string $likeText) : $this
Set the "like_text" value.
string | $likeText |
None found |
setBoost(float $boost) : $this
Set boost.
float | $boost | Boost value |
None found |
setMaxQueryTerms(integer $maxQueryTerms) : $this
Set max_query_terms.
integer | $maxQueryTerms | Max query terms value |
None found |
setPercentTermsToMatch(float $percentTermsToMatch) : $this
Set percent terms to match.
float | $percentTermsToMatch | Percentage |
None found |
setMinTermFrequency(integer $minTermFreq) : $this
Set min term frequency.
integer | $minTermFreq |
None found |
setMinDocFrequency(integer $minDocFreq) : $this
set min document frequency.
integer | $minDocFreq |
None found |
setMaxDocFrequency(integer $maxDocFreq) : $this
set max document frequency.
integer | $maxDocFreq |
None found |
setMinWordLength(integer $minWordLength) : $this
Set min word length.
integer | $minWordLength |
None found |
setMaxWordLength(integer $maxWordLength) : $this
Set max word length.
integer | $maxWordLength |
None found |
setBoostTerms(boolean $boostTerms) : $this
Set boost terms.
boolean | $boostTerms |
None found |
setAnalyzer(string $analyzer) : $this
Set analyzer.
string | $analyzer |
None found |
setStopWords(array $stopWords) : $this
Set stop words.
array | $stopWords |
None found |
setMinimumShouldMatch(integer|string $minimumShouldMatch) : $this
Set minimum_should_match option.
integer|string | $minimumShouldMatch |
None found |
_convertArrayable(array $array) : array
Cast objects to arrays.
array | $array |
None found |
_getBaseName() : string
Param's name Picks the last part of the class name and makes it snake_case You can override this method if you want to change the name.
name
None found |
_setRawParam(string $key, mixed $value) : $this
Sets params not inside params array.
string | $key | |
mixed | $value |
None found |