Re: Sorting by distance resources with WKT polygon data

2017-09-22 Thread Ere Maijala
Hi, our strategy is to have a separate center coordinate field that we use for sorting. This has the additional benefit that it's possible to have the indexed center point differ from the polygon's centroid, which can be useful e.g. with cities, where the city center can be quite a bit

Re: Sorting by distance resources with WKT polygon data

2017-09-19 Thread David Smiley
Hello, Sorry for the belated response. Solr only supports sorting from point or rectangles in the index. For rectangles use BBoxField. For points, ideally use the new LatLonPointSpatialField; failing that use LatLonType. You can use RPT for point data but I don't recommend sorting with it;

Sorting by distance resources with WKT polygon data

2017-09-12 Thread Grondin Luc
Hello, I am having difficulties with sorting by distance resources indexed with WKT geolocation data. I have tried different field configurations and query parameters and I did not get working results. I am using SOLR 6.6 and JTS-core 1.14. My test sample includes resources with point