Translate extension for MediaWiki
 
Loading...
Searching...
No Matches

Fuzzy Like This query. More...

Inheritance diagram for FuzzyLikeThis:

Public Member Functions

 addFields (array $fields)
 Adds field to flt query.
 
 setLikeText ( $text)
 Set the "like_text" value.
 
 setIgnoreTF ( $ignoreTF)
 Set the "ignore_tf" value (ignore term frequency).
 
 setFuzziness ( $value)
 Set the minimum similarity.
 
 setPrefixLength ( $value)
 
 setMaxQueryTerms ( $value)
 Set max_query_terms.
 
 setAnalyzer ( $text)
 
 toArray ()
 Converts fuzzy like this query to array.
 

Protected Attributes

 $_fields = []
 
 $_likeText = ''
 
 $_ignoreTF = false
 
 $_maxQueryTerms = 25
 
 $_fuzziness = 2
 
 $_prefixLength = 0
 
 $_analyzer
 

Detailed Description

Fuzzy Like This query.

Author
Raul Martinez, Jr juney.nosp@m.m@gm.nosp@m.ail.c.nosp@m.om

2016.05

Definition at line 48 of file FuzzyLikeThis.php.

Member Function Documentation

◆ addFields()

FuzzyLikeThis::addFields ( array $fields)

Adds field to flt query.

Parameters
array$fieldsField names
Returns
$this

Definition at line 101 of file FuzzyLikeThis.php.

◆ setAnalyzer()

FuzzyLikeThis::setAnalyzer ( $text)
Parameters
string$textAnalyzer text
Returns
$this

Definition at line 177 of file FuzzyLikeThis.php.

◆ setFuzziness()

FuzzyLikeThis::setFuzziness ( $value)

Set the minimum similarity.

Parameters
int$value
Returns
$this

Definition at line 141 of file FuzzyLikeThis.php.

◆ setIgnoreTF()

FuzzyLikeThis::setIgnoreTF ( $ignoreTF)

Set the "ignore_tf" value (ignore term frequency).

Parameters
bool$ignoreTF
Returns
$this

Definition at line 128 of file FuzzyLikeThis.php.

◆ setLikeText()

FuzzyLikeThis::setLikeText ( $text)

Set the "like_text" value.

Parameters
string$text
Returns
$this

Definition at line 114 of file FuzzyLikeThis.php.

◆ setMaxQueryTerms()

FuzzyLikeThis::setMaxQueryTerms ( $value)

Set max_query_terms.

Parameters
int$valueMax query terms value
Returns
$this

Definition at line 166 of file FuzzyLikeThis.php.

◆ setPrefixLength()

FuzzyLikeThis::setPrefixLength ( $value)
Parameters
int$valuePrefix length
Returns
$this

Definition at line 153 of file FuzzyLikeThis.php.

◆ toArray()

FuzzyLikeThis::toArray ( )

Converts fuzzy like this query to array.

Returns
array Query array
See also
\Elastica\Query\AbstractQuerytoArray()

Definition at line 191 of file FuzzyLikeThis.php.

Member Data Documentation

◆ $_analyzer

FuzzyLikeThis::$_analyzer
protected

Definition at line 91 of file FuzzyLikeThis.php.

◆ $_fields

FuzzyLikeThis::$_fields = []
protected

Definition at line 55 of file FuzzyLikeThis.php.

◆ $_fuzziness

FuzzyLikeThis::$_fuzziness = 2
protected

Definition at line 79 of file FuzzyLikeThis.php.

◆ $_ignoreTF

FuzzyLikeThis::$_ignoreTF = false
protected

Definition at line 67 of file FuzzyLikeThis.php.

◆ $_likeText

FuzzyLikeThis::$_likeText = ''
protected

Definition at line 61 of file FuzzyLikeThis.php.

◆ $_maxQueryTerms

FuzzyLikeThis::$_maxQueryTerms = 25
protected

Definition at line 73 of file FuzzyLikeThis.php.

◆ $_prefixLength

FuzzyLikeThis::$_prefixLength = 0
protected

Definition at line 85 of file FuzzyLikeThis.php.


The documentation for this class was generated from the following file: