public function requireTerm($field = null, $term)
    {
        $this
            ->createTerm()
            ->setValue($term)
            ->setExclusion(self::OP_REQUIRE)
            ->setField($field)
        ;

        return $this;
    }
public function requireTerm($field = null, $term)
    {
        $this
            ->createTerm()
            ->setValue($term)
            ->setExclusion(self::OP_REQUIRE)
            ->setField($field)
        ;

        return $this;
    }
public function requireTerm ( $ field = null , $ term ) { $ this -> createTerm ( ) -> setValue ( $ term ) -> setExclusion ( self :: OP_REQUIRE ) -> setField ( $ field ) ; return $ this ; }
Require single term to this query

@param string $field
@param string|TermQuery $term

@return Query
Require single term to this query