Hi David, I did the following changes: Changed in schema.xml: <fieldType name="location_rpt" class="solr.RptWithGeometrySpatialField" spatialContextFactory="org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory" autoIndex="true" validationRule="repairBuffer0" distanceUnits="kilometers" useJtsMulti="false" />
Added in solrconfig.xml: <cache name="perSegSpatialFieldCache_geom" class="solr.LRUCache" size="256" initialSize="0" autowarmCount="100%" regenerator="solr.NoOpRegenerator"/> My fields in the core as defined in the schema is: <http://lucene.472066.n3.nabble.com/file/n4343221/SolrGeoFieldDefinition.png> However, I still face the same issue. No results found for a multipolygon search. Not sure whats happening :( Puneeta david.w.smi...@gmail.com wrote > https://lucene.apache.org/solr/guide/6_6/spatial-search.html#SpatialSearch-RptWithGeometrySpatialField > <https://lucene.apache.org/solr/guide/6_6/spatial-search.html#SpatialSearch-RptWithGeometrySpatialField> > > >> On Jun 28, 2017, at 11:32 AM, puneeta < > pverma@ > > wrote: >> >> Hi David, >> I am sorry ,I did not understand what do you mean by "I suggest using >> RptWithGeometry field". Should leave the existing location_rpt definition >> in >> schema.xml? >> > <fieldType name="location_rpt" >> > class="solr.SpatialRecursivePrefixTreeFieldType" >> geo="true" distErrPct="0.025" maxDistErr="0.001" >> distanceUnits="kilometers" /> >> This line I have commented. Should I uncomment it? >> >> 1."remove distErrPct and maxDistErr" - >> 2.Added usejtsMulti="false" >> >> I will change the field definition as follows, try to execute and report >> back. >> > <fieldType name="location_rpt" >> > class="solr.SpatialRecursivePrefixTreeFieldType" >> >> * > jts*="org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory" >> autoIndex="true" >> validationRule="repairBuffer0" >> distanceUnits="kilometers" >> *useJtsMulti="false"*/> >> >> >> The issue I am facing is that the I am not getting the search result for >> Multipolygon i.e I should get hits.Currently, the numFound = 0, It should >> find atleast 1 record as it does for a Polygon search. >> >> Thanks, >> Puneeta >> >> > david.w.smiley@ > <mailto: > david.w.smiley@ > > wrote >>> I suggest using RptWithGeometry field, and with that change remove >>> distErrPct and maxDistErr. See the ref guide, and note the geometry >>> cache >>> option. >>> BTW spatialContextFactory can simply be "jts". >>> >>> If this fixes the issue, then the issue was related to grid >>> approximation. >>> >>> BTW you never quite said what it was about the results that was wrong. >>> Did you get hits you didn't expect (I'm guessing yes) or the inverse? >>> >>> ~ David >>> >>>> On Jun 28, 2017, at 10:55 AM, puneeta < >> >>> pverma@ >> >>> > wrote: >>>> >>>> Hi David, >>>> Thank you for the prompt reply. My field definition in schema.xml is : >>>> >>>> I commented the existing location_rpt >>>> >>>> >>>> >>>> And added: >>>> >>> > <fieldType name="location_rpt" >> >>> >>> class="solr.SpatialRecursivePrefixTreeFieldType" >>>> >>>> spatialContextFactory="org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory" >>>> autoIndex="true" >>>> validationRule="repairBuffer0" >>>> distErrPct="0.025" >>>> maxDistErr="0.001" >>>> distanceUnits="kilometers" /> >>>> >>>> My Solr version is 6.2.1 >>>> >>>> Thanks, >>>> Puneeta >>>> >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://lucene.472066.n3.nabble.com/Polygon-search-query-working-but-NOT-Multipolygon-tp4343143p4343162.html >>>> Sent from the Solr - User mailing list archive at Nabble.com. >> >> >> >> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Polygon-search-query-working-but-NOT-Multipolygon-tp4343143p4343184.html >> <http://lucene.472066.n3.nabble.com/Polygon-search-query-working-but-NOT-Multipolygon-tp4343143p4343184.html> >> Sent from the Solr - User mailing list archive at Nabble.com >> <http://nabble.com/>. -- View this message in context: http://lucene.472066.n3.nabble.com/Polygon-search-query-working-but-NOT-Multipolygon-tp4343143p4343221.html Sent from the Solr - User mailing list archive at Nabble.com.