Class ConceptTerm

java.lang.Object
de.cxp.ocs.elasticsearch.model.term.ConceptTerm
All Implemented Interfaces:
QueryStringTerm

public class ConceptTerm extends Object implements QueryStringTerm
A concept that consists of several tokens that have a specific meaning in their context. The separate tokens/terms/words should not be used separately. Useful for languages that name things using several words, i.e. "iron flat"(en), "fer à repasser"(fr), "plancha de ropa"(es)
Author:
Rudolf Batt
  • Constructor Details

  • Method Details

    • toQueryString

      public String toQueryString()
      Description copied from interface: QueryStringTerm
      Prepare the term for a query-string-query.
      Specified by:
      toQueryString in interface QueryStringTerm
      Returns:
      term in query-string-query format.
    • isEnclosed

      public boolean isEnclosed()
      Specified by:
      isEnclosed in interface QueryStringTerm
      Returns:
      if that query is already enclosed in quotes or brackets.
    • getRawTerm

      public String getRawTerm()
      Specified by:
      getRawTerm in interface QueryStringTerm
      Returns:
      the single original unescaped term.