Re: Group by distance

2012-04-25 Thread Erick Erickson
Ah, OK. Then what you're doing is probably best. You're essentially creating a marker for your docs that should be grouped together, and you don't really need any distances here at all. Actually, this would also work with faceting. You could facet on your geo_city field (and it could even be just

Re: Group by distance

2012-04-25 Thread ViruS
I mean many group's show on map... something like markercluster: http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/examples/speed_test_example.html But I don't want to send all my records to browser. I find workaround to make field wiitch lower precission geocoding: $lat =

Re: Group by distance

2012-04-24 Thread Erick Erickson
What do you mean by "grouped"? It's relatively easy to return only documents within a certain radius, and it's also easy to return the results ordered by distance. Here's a good place to start: http://wiki.apache.org/solr/SpatialSearch#geofilt_-_The_distance_filter Best Erick On Tue, Apr 24, 201

Re: Group by distance

2012-04-24 Thread ViruS
I think this only can works when I have many records in same position. My problem is to group witch short distance... like I say in last mail... about 10km. I need put markers on Poland country and display this. Now I have 100k records, but in future I will have about 2mln records so I must send gr

Re: Group by distance

2012-04-24 Thread ravicv
Use group=true and group.field in your query. And your solr version should be solr 3.4 and above. Thanks, Ravi -- View this message in context: http://lucene.472066.n3.nabble.com/Group-by-distance-tp3934876p3934886.html Sent from the Solr - User mailing list archive at Nabble.com.