It's been a while since I did it, but I'm pretty sure that when I indexed polygons a couple years ago, I just sent WKT text for the field value... I think i do recall some niggle where there was some slight mismatch in wkt accepted by the javascript library I wanted to use and solr. (One was slightly more permissive about something). As for fields I was using RPT fields, which is more appropriate for arbitrary polygons I believe... also note you may need to add JTS to solr as described here: https://lucene.apache.org/solr/guide/7_2/spatial-search.html#jts-and-polygons-flat
I do think the Solr docs really should have examples of indexing these more interesting field types. Presently the docs are pretty query focused... On Sun, Jan 14, 2018 at 5:53 PM, Leila Deljkovic < leila.deljko...@koordinates.com> wrote: > Hi, > > I have some data in WKT string format (either POLYGON or MULTIPOLYGON) and > I’d like to index it in Solr 7.0. As there are multiple polygons in every > WKT string, I’d ideally like to index them multiValued BBoxField (couldn’t > find anywhere to confirm, but it looks like multiValued is a valid > attribute for BBoxField). Anyone indexed WKT data in Solr before? Is it > necessary to convert it to CSV (I would do that first but I’m having > trouble exporting it as CSV…)? > > Thanks -- http://www.the111shift.com