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"
<b>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
[email protected] 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
Sent from the Solr - User mailing list archive at Nabble.com.