Hi Saad, I'd be flabbergasted if there was actually some bug in Lucene/Solr or Spatial4j about this decimal point matter. I plotted all 3 here https://arthur-e.github.io/Wicket/sandbox-gmaps3.html and they seem valid. Curious, does RptWithGeometrySpatialField produce different results?
To show the problem, you may have to produce a more detailed set of reproducing steps to include an indexed shape. ~ David Smiley Apache Lucene/Solr Search Developer http://www.linkedin.com/in/davidwsmiley On Tue, Oct 20, 2020 at 10:41 AM Saad Saimon <[email protected]> wrote: > Some reason my Solr polygon queries are not returning any value when a > search using decimal points, however, it works without decimal points or > with all decimal but one. Have anyone encountered this problem? > > > *Configs file:* > > fieldType name="location_rpt" > class="solr.SpatialRecursivePrefixTreeFieldType" geo="true" > maxDistErr="0.001" distErrPct="0.025" distanceUnits="kilometers" > > field name="geom" type="location_rpt" indexed="true" stored="true" > > > *Query Works*: > > fq=Intersects(POLYGON((52 -2, 47 -2, 50 6, 53 20, 53 0, 52 -2))) or > fq=Intersects(POLYGON((52.58 -2.53, 47.89 -2.05, 50.95 6.16, 53.40 20, > 53.08 0.18, 52.58 -2.53))) > > > *Not working:* > > fq=Intersects(POLYGON((52.58 -2.53, 47.89 -2.05, 50.95 6.16, 53.40 *20.05*, > 53.08 0.18, 52.58 -2.53))) > > > > My polygon search points are showing the right location when using a map. > Not sure what's the issue here and how to resolve it. Please let me know if > you have any question. > > Thanks Saad > > > Thanks... > Saad Saimon > 07342051925 >
