Fix the range of latitude/longitude#193
Fix the range of latitude/longitude#193Plopix wants to merge 2 commits intoezsystems:masterfrom Plopix:patch-1
Conversation
|
In the indexation class, the longitude is first https://github.com/ezsystems/ezfind/blob/master/classes/ezfsolrdocumentfieldgmaplocation.php#L46 |
|
I guess that it was wrong all along ? |
|
+1, review ping @pspanja @paulborgermans |
|
@bdunogier Only the ezfind extendedattribute filter was wrong. For me the fact that the ezfsolrdocumentfieldgmaplocation indexes long/lat is not an issue if the extended filter works correctly with. Additionnaly, I think it could be a bad idea to change the order (lon,lat) in the ezfsolrdocumentfieldgmaplocation because it could be an issue for existing project. (they will have to re-index) Then this fix should be enough but it's just my opinion ;) Thx! |
|
To my understanding I find out that the sort was also wrong, the geodist function need to know the field/origin. According to the documentation: https://cwiki.apache.org/confluence/display/solr/Spatial+Search
I'm not a Solr expert and the feedback of @paulborgermans or @pspanja would be great. But without the 3 arguments, the results was not correctly sorted. Thx! |
|
In general, geographical support in ez find is lagging behind Lucene/Solr capabilities and the whole datatype handling should be refactored ... That said, my opinion on this pull request:
|
We need to be worldwide ;-)