Package org.ametys.cms.search.query
Class GeocodeQuery
java.lang.Object
org.ametys.cms.search.query.AbstractOperatorQuery<Map<String,Integer>>
org.ametys.cms.search.query.GeocodeQuery
Represents a
Query testing a geocode field.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator -
Field Summary
Fields inherited from interface org.ametys.cms.search.query.Query
BOOL_FILTER, BOOL_MUST, BOOL_MUST_NOT, BOOL_SHOULD -
Constructor Summary
ConstructorsConstructorDescriptionGeocodeQuery(String fieldPath) Build a Geocode testing the existence of the field.GeocodeQuery(String fieldPath, Query.Operator operator, Map<String, Integer> value) Build a Geocode query. -
Method Summary
Methods inherited from class org.ametys.cms.search.query.AbstractOperatorQuery
equals, getFieldName, getOperator, getValue, hashCode, rewrite, valueForQueryMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.cms.search.query.Query
buildAsJson, toString
-
Constructor Details
-
GeocodeQuery
Build a Geocode testing the existence of the field.- Parameters:
fieldPath- the field path
-
GeocodeQuery
Build a Geocode query.- Parameters:
fieldPath- the field's pathoperator- the operator.value- the value.
-
-
Method Details
-
build
Description copied from interface:QueryBuild the solr query string representing the Query object.- Specified by:
buildin interfaceQuery- Overrides:
buildin classAbstractOperatorQuery<Map<String,Integer>> - Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException- if the query can't be built because of a syntax error.
-