Elastica\Query\Fuzzy::__construct PHP Method

__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
    public function __construct($fieldName = null, $value = null)
    {
        if ($fieldName && $value) {
            $this->setField($fieldName, $value);
        }
    }