Ive been taking a look at the geoip distance query and it seems to be working fine. However, I'm looking for help to only return the results that are not within my distance query. So in this case, any results that are not within the 100 miles of my coordinates.
I have tried complementing this with the must_not boolean and also the range query ( on the distance part) but no success
Thank you for the reply:
Here is the full query, again when I issue this query without the 'must_not' it returns the documents within the 100 miles. But I can't seem to return the results that are not within the 100 miles. Thank you
Thanks for the heads up. And yes, query works great. GEOIP seems to be a bit inaccurate but it is only returning results outside of my mileage threshold set.
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.