Package org.opencms.search.solr
Class CmsSolrQueryUtil
java.lang.Object
org.opencms.search.solr.CmsSolrQueryUtil
Utilities for building and analyzing Solr queries.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The prefix to distinguish a Geo filter query from other filter queries. -
Constructor Summary
-
Method Summary
-
Field Details
-
GEO_FILTER_QUERY_PREFIX
The prefix to distinguish a Geo filter query from other filter queries.- See Also:
-
-
Constructor Details
-
CmsSolrQueryUtil
public CmsSolrQueryUtil()
-
-
Method Details
-
composeGeoFilterQuery
public static String composeGeoFilterQuery(String fieldName, String coordinates, String radius, String units) Composes a Geo filter query string for given parameters.- Parameters:
fieldName
- the field namecoordinates
- the coordinatesradius
- the search radiusunits
- the units of the search radius- Returns:
- the Geo filter query string
-