What you're looking to do is not possible today in App Search. Functional and proximity boosts in App Search do not apply to date fields, unfortunately. This capability is supported in Elasticsearch itself, but not in App Search.
The only way for me to do that then will be to add a "distance" field on my document and boost the one with smallest value. The downside of this solution is that I will need to update my field content every hour/days.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.