10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.25k stars 311 forks source link

Feature: location based search / decay #2087

Open tott opened 3 years ago

tott commented 3 years ago

Elasticsearch provides all the tools needed for a well performing proximity search, which can be very powerful for sites with location based content such as travel blogs, real estate sites or similar.

It would be great to implement location based search and indexing functionality into ElasticPress by first selecting a field or a set of fields that contain the address data or (maybe as first version) geo coded lat/long data for a post. With this data at hand we can alter indexing to include this geo-point field and expose it to existing search/weighting configuration and include the values in score calculation for search results.

Additionally we could provide decaying functionality based on distance similar to the age based decay. It would be also possible to allow for sorting posts by distance.

shmaltz commented 2 years ago

@felipeelia Can we add the Facet label to this?

JiveDig commented 1 year ago

I'm needing geo/proximity filtering now, and have it working outside of Elastic, but I'd love to have this supported in EP!