lib/Elastica/Query/Terms.php
public function setTermsLookup(string $key, array $termsLookup): self
    {
        $this->_key = $key;
        $this->_terms = $termsLookup;

        return $this;
    }
public function setTermsLookup(string $key, array $termsLookup): self
    {
        $this->_key = $key;
        $this->_terms = $termsLookup;

        return $this;
    }
public function setTermsLookup ( string $ key , array $ termsLookup ) : self { $ this -> _key = $ key ; $ this -> _terms = $ termsLookup ; return $ this ; }
Sets key and terms lookup for the query.

@param string $key         terms key
@param array  $termsLookup terms lookup for the query

@return $this
Sets key and terms lookup for the query .