Interface AnalyzedQuery

All Known Implementing Classes:
ExtendedQuery, MatchAllQuery, MultiTermQuery, MultiVariantQuery, SingleTermQuery

public interface AnalyzedQuery
  • Method Details

    • getInputTerms

      List<String> getInputTerms()
      The original input terms that were used to create that query string.
      Returns:
      list of unescaped terms
    • getTermCount

      default int getTermCount()
    • toQueryString

      String toQueryString()
      Transform into string according to the ElasticSearch Query String syntax. TODO: change into Visitor Pattern Style: A method that accepts a visitor that is passed trough all the terms of the query. Similar to org.apache.lucene.search.QueryVisitor. This can then be used to generate the required query (LuceneQuery, structured ElasticsearchQuery, SQL Query.. =)).
      Returns:
      term in query-string-query format.
    • accept

      void accept(QueryTermVisitor visitor)