Class WeightedTerm
java.lang.Object
de.cxp.ocs.elasticsearch.model.term.WeightedTerm
- All Implemented Interfaces:
QueryStringTerm
A term that accepts a weight and a optional fuzzy operator.
-
Constructor Summary
ConstructorsConstructorDescriptionWeightedTerm
(String term, float weight) WeightedTerm
(String term, float weight, Occur occur) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.cxp.ocs.elasticsearch.model.term.QueryStringTerm
getOccur, getRawTerm
-
Constructor Details
-
WeightedTerm
-
WeightedTerm
-
-
Method Details
-
toQueryString
Description copied from interface:QueryStringTerm
Prepare the term for a query-string-query.- Specified by:
toQueryString
in interfaceQueryStringTerm
- Returns:
- term in query-string-query format.
-
isEnclosed
public boolean isEnclosed()- Specified by:
isEnclosed
in interfaceQueryStringTerm
- Returns:
- if that query is already enclosed in quotes or brackets.
-
toString
-