com.endeca.mobile.services.query.impl
Class GeoFilterDistancePropertyPostProcessor
java.lang.Object
com.endeca.mobile.services.query.impl.GeoFilterDistancePropertyPostProcessor
- All Implemented Interfaces:
- QueryProcessor
public class GeoFilterDistancePropertyPostProcessor
- extends java.lang.Object
- implements QueryProcessor
This processor removes the kilometers_to_ and miles_to_ properties that the MDEX returns when a geo filter or geo sort
is applied, and adds 2 new properties that are the name of the geo filter property with ".distance_mi" or ".distance_km" appended
(i.e. for the sort Ns=store.geocode(42.3621088,-71.0810343), the property on the record would be store.geocode.distance_mi)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeoFilterDistancePropertyPostProcessor
public GeoFilterDistancePropertyPostProcessor()
postProcessResults
public QueryProcessor.PostProcessStatus postProcessResults(javax.servlet.http.HttpServletRequest request,
com.endeca.content.ene.ENEContentQuery query,
PageResult pageResult,
com.endeca.soleng.urlformatter.UrlState urlState)
- Specified by:
postProcessResults
in interface QueryProcessor
preProcessQuery
public void preProcessQuery(javax.servlet.http.HttpServletRequest request,
com.endeca.content.ene.ENEContentQuery contentQuery)
- Specified by:
preProcessQuery
in interface QueryProcessor