Interface AnalyzedQuery
- All Known Implementing Classes:
ExtendedQuery,MatchAllQuery,MultiTermQuery,MultiVariantQuery,SingleTermQuery
public interface AnalyzedQuery
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(QueryTermVisitor visitor) The original input terms that were used to create that query string.default intTransform into string according to the ElasticSearch Query String syntax.
-
Method Details
-
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
-