public function matchTerm($field = null, $term, $boost = null, $fuzzyness = null)
    {
        $this
            ->createTerm()
            ->setValue($term)
            ->setFuzzyness($fuzzyness)
            ->setBoost($boost)
            ->setField($field)
        ;

        return $this;
    }
public function matchTerm($field = null, $term, $boost = null, $fuzzyness = null)
    {
        $this
            ->createTerm()
            ->setValue($term)
            ->setFuzzyness($fuzzyness)
            ->setBoost($boost)
            ->setField($field)
        ;

        return $this;
    }
public function matchTerm ( $ field = null , $ term , $ boost = null , $ fuzzyness = null ) { $ this -> createTerm ( ) -> setValue ( $ term ) -> setFuzzyness ( $ fuzzyness ) -> setBoost ( $ boost ) -> setField ( $ field ) ; return $ this ; }
Match single term to this query

@param string $field
@param string|TermQuery $term
@param float $boost
@param float $fuzzyness

@return Query
Match single term to this query