PHP Class Elastica\Query\Fuzzy

Inheritance: extends AbstractQuery
Show file Open project: ruflin/elastica Class Usage Examples

Public Methods

Method Description
__construct ( string $fieldName = null, string $value = null ) Construct a fuzzy query.
setField ( string $fieldName, string $value ) Set field for fuzzy query.
setFieldOption ( string $option, mixed $value ) Set optional parameters on the existing query.

Method Details

__construct() public method

Construct a fuzzy query.
public __construct ( string $fieldName = null, string $value = null )
$fieldName string Field name
$value string String to search for

setField() public method

Set field for fuzzy query.
public setField ( string $fieldName, string $value )
$fieldName string Field name
$value string String to search for

setFieldOption() public method

Set optional parameters on the existing query.
public setFieldOption ( string $option, mixed $value )
$option string option name
$value mixed Value of the parameter