David, We noticed in 4.5 that "sort=geodist(store_geohash) asc" does not work anymore. It works only if we: "sfield=store_geohash&sort=geodist() asc"
Thanks. On Thu, Aug 15, 2013 at 9:10 AM, David Smiley (@MITRE.org) < dsmi...@mitre.org> wrote: > Hi Roy, > > You'll have to calculate this client-side. I am aware of this conundrum > and > I put up a TODO JIRA item for it here months ago: > https://issues.apache.org/jira/browse/SOLR-4633 It actually shouldn't > be > that hard to do. > > ~ David > > > roySolr wrote > > Hello David, > > > > The first months there will be not that many points in a doc, i will keep > > the topic in mind! > > > > The next step is that i want to now which location matched my query. > > Example: > > > > Product A is available in 3 stores, the doc looks like this: > / > > <doc> > > <str name="productname"> > > Product A > > </str> > > <arr name='store_coordinates'> > > > > <str> > > store1_geo > > </str> > > > > <str> > > store2_geo > > </str> > > > > <str> > > store3_geo > > </str> > > </arr> > > <arr name="storeinfo"> > > <str> > > London#store1_geo > > </str> > > <str> > > Amsterdam#store2_geo > > </str> > > <str> > > New York#store3_geo > > </str> > > </arr> > > </doc> > / > > > > I query the index with my location set to Berlin and a radius of 250km. I > > know that this result gets back on the first place because it's close to > > Amsterdam(store2_geo). But normally, How can i know which one matched my > > query as closest point? Is it possible to get this back? I can do it in > my > > application but with 200 stores in a doc i don't think it's the best > > solution. > > > > Thanks, > > > > Roy > > > > > > ----- > Author: > http://www.packtpub.com/apache-solr-3-enterprise-search-server/book > -- > View this message in context: > http://lucene.472066.n3.nabble.com/SOLR4-Spatial-sorting-and-query-string-tp4084318p4084816.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Bill Bell billnb...@gmail.com cell 720-256-8076