Package org.ametys.cms.search.query
Class GeocodeQuery
java.lang.Object
org.ametys.cms.search.query.AbstractFieldQuery
org.ametys.cms.search.query.GeocodeQuery
- All Implemented Interfaces:
Query
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 class org.ametys.cms.search.query.AbstractFieldQuery
_fieldPath
-
Constructor Summary
ConstructorDescriptionGeocodeQuery
(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.AbstractFieldQuery
getFieldPath
-
Field Details
-
_operator
The operator. -
_value
The value.
-
-
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:Query
Build the solr query string representing the Query object.- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-
hashCode
- Overrides:
hashCode
in classAbstractFieldQuery
-
equals
- Overrides:
equals
in classAbstractFieldQuery
-