Re: Spatial search: collect distances

2011-03-30 Thread Dmytro Barabash
I am sorry to trouble, problem solved (in fact problem is absent :) ). Calculated distances saved in ScoreDoc (actually FieldDoc). 2011/3/30 Dmytro Barabash : > Hi all! > I need 1) sort search results by distance from some point and 2) show > these distances for end-user together with other docum

Spatial search: collect distances

2011-03-30 Thread Dmytro Barabash
Hi all! I need 1) sort search results by distance from some point and 2) show these distances for end-user together with other document information. 1) is simple – like an example in “Lucene in action”: there are latitude and longitude fields for each document in index, MyDistanceComparatorSource (