code: public function term($term, $field=false) {
          $this->term = ($field)
              ? array($field => $term)
              : $term;
          return $this;
      }
docs: Add a term to this query
  
  @return \ElasticSearch\DSL\Query
  @param string $term
  @param bool|string $field