Class MultiTermQuery
java.lang.Object
de.cxp.ocs.elasticsearch.model.query.MultiTermQuery
- All Implemented Interfaces:
AnalyzedQuery
A term that consists of several terms that belong together.
- Author:
- Rudolf Batt
-
Constructor Summary
ConstructorsConstructorDescriptionMultiTermQuery(Collection<WeightedTerm> terms) MultiTermQuery(Collection<String> keySet, Collection<QueryStringTerm> analyzedTerms) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(QueryTermVisitor visitor) The original input terms that were used to create that query string.Transform into string according to the ElasticSearch Query String syntax.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.cxp.ocs.elasticsearch.model.query.AnalyzedQuery
getTermCount
-
Constructor Details
-
MultiTermQuery
-
MultiTermQuery
-
-
Method Details
-
toQueryString
Description copied from interface:AnalyzedQueryTransform 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.. =)).
- Specified by:
toQueryStringin interfaceAnalyzedQuery- Returns:
- term in query-string-query format.
-
toString
-
getInputTerms
Description copied from interface:AnalyzedQueryThe original input terms that were used to create that query string.- Specified by:
getInputTermsin interfaceAnalyzedQuery- Returns:
- list of unescaped terms
-
accept
- Specified by:
acceptin interfaceAnalyzedQuery
-