Re: Zipcode radius search outside certain miles of a zipcode

2024-05-08 Thread Dawid Weiss
You need to subtract the matching documents from everything else in the negative part, effectively: *:* AND NOT (zips-within area) D. On Wed, May 8, 2024 at 8:27 PM Siraj Haider wrote: > Hello there, > We are using Lucene v6.4.1 and are looking to implement geopoint searching > within or outsi

Zipcode radius search outside certain miles of a zipcode

2024-05-08 Thread Siraj Haider
Hello there, We are using Lucene v6.4.1 and are looking to implement geopoint searching within or outside certain zipcode. The within part works well, but the outside part does not, can somebody please check the code below and give some suggestions? Thanks in advance! query //this has some ot