Re: Solr 7 spatial search and WKT

2018-01-17 Thread Leila Deljkovic
Hi Emir I’ve been following one of the only examples I could find on how to index a POLYGON, which does specify the field as multiValued: Configuration: schema.xml Index a polygon (JavaScript syntax around WKT): {"id":"1", "geo_rpt": "POLYGON((30 10, 10 20, 20 40, 40 40, 30 10))”} Indexing o

Re: Solr 7 spatial search and WKT

2018-01-17 Thread Emir Arnautović
Hi Leila, I haven’t been using spatial in a while and did not test this, but based on error, it seems that multivalue is not supported for this field type. Can you index a single MULTIPOLYGON? Why do you need to have multiple values? Can you flat your geometry to a single MULTIPOLYGON or MULTIGE

Solr 7 spatial search and WKT

2018-01-16 Thread Leila Deljkovic
Hi all, I need to index multiple POLYGONS/MULTIPOLYGONS per document; I’m trying to use multiValued RptWithGeometrySpatialField and I’m getting this error: Exception writing document id leila_test to the index; possible analysis error: DocValuesField "gridcell_rpt" appears more than once in thi