We have created a property called "Location" with data type as "Geocode" and we are able to use the same in sorting.And ,this will generate two dynamic properties by name "Kilometers_to_Location and "Miles_to_location".Is there a way to use these dynamic properties in our record filters or range filters?We have requirement to filter products based on say within 100 kms, 1000kms from the user's location and not just sort based on this.
Any suggestions/help is appreciated.
Does this help:
Quoting from the link above:
When used with a standard attribute of type geocode, the EQL DISTANCE function indicates a filter based on the distance of that geocode attribute from a given reference point.
The DISTANCE function returns the distance (in kilometers) between two geocodes. The syntax for DISTANCE is:
is a standard attribute of type geocode. The
function creates a geocode from a given latitude and longitude pair, both of which must be of type double:
Note that distance limits in geocode filters are always expressed in kilometers. The records are filtered by the distance from the geocode reference point to the latitude/longitude pair.
What version of the software are you running? I ask because those two geocode properties are created automatically by MDEX 6. I am under the impression that they're not created by MDEX 7 (such as in Endeca Server 7.4 and 7.5). If you are running MDEX 7, please let me know where you're seeing these properties.
To answer your original question, the two geocode dynamic properties are not persistent and are intended for informational purposes only (like displaying them on a UI page).However, you can use geocodes with range filters, so that might solve your problem. For details, see Chapter 8 ("Using Range Filters") in the "Basic Development Guide, available here:
P.S. This is the Information Discovery (MDEX 7) forum. You will probably want to post in the OTN Endeca Experience Management Forum: