Class ConceptTerm
java.lang.Object
de.cxp.ocs.elasticsearch.model.term.ConceptTerm
- All Implemented Interfaces:
QueryStringTerm
A concept that consists of several tokens that have a specific meaning in their context.
The separate tokens/terms/words should not be used separately.
Useful for languages that name things using several words,
i.e. "iron flat"(en), "fer à repasser"(fr), "plancha de ropa"(es)
- Author:
- Rudolf Batt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Prepare the term for a query-string-query.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.cxp.ocs.elasticsearch.model.term.QueryStringTerm
getOccur
-
Constructor Details
-
ConceptTerm
-
-
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.
-
getRawTerm
- Specified by:
getRawTerm
in interfaceQueryStringTerm
- Returns:
- the single original unescaped term.
-