Point query on a LatLonPoint field

Tomás Fernández Löbbe <[email protected]> Fri, 6 Jun 2025 17:01:52 -0300
Newsgroups gmane.comp.jakarta.lucene.user
Message-ID <CAMJgJxSm3nMLfJG8mRKCPC9Q3j14nXJVUjo9iq2D4LzE+QD2hg@mail.gmail.com>
Hi All,
I just noticed that If I add a document with a LatLonPoint field with a
latitude and longitude, and then I do a query using
"LatLonPoint.newGeometryQuery("location",
ShapeField.QueryRelation.INTERSECTS, new Point(latitude, longitude))" with
the same latitude and longitude it won't match. Is this expected? If I do a
Distance query instead, even with radius 0 the document will match.

My test here:
https://github.com/tflobbe/lucene/commit/a55e465a48dd8f5f978f4241a0a89e051044b6d3

Tomas