Class WeightedWord
- java.lang.Object
-
- de.cxp.ocs.elasticsearch.query.model.WeightedWord
-
- All Implemented Interfaces:
QueryStringTerm
public class WeightedWord extends Object implements QueryStringTerm
A term that accepts a weight and a optional fuzzy operator.
-
-
Constructor Summary
Constructors Constructor Description WeightedWord(String word, float weight)WeightedWord(String word, float weight, int freq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoQueryString()Prepare the term for a query-string-query.StringtoString()-
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.query.model.QueryStringTerm
getOccur, getWord
-
-
-
-
Method Detail
-
toQueryString
public String toQueryString()
Description copied from interface:QueryStringTermPrepare the term for a query-string-query.- Specified by:
toQueryStringin interfaceQueryStringTerm- Returns:
- term in query-string-query format.
-
-