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 the city name, at index
time you determine what the right city for each doc is and
put that value in).

I think facets would be more efficient than using grouping, there's
less bookeeping involved. But if your speed is sufficient, why make
the change?

Best
Erick

On Wed, Apr 25, 2012 at 6:05 AM, ViruS <svi...@gmail.com> wrote:
> 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 = float($lat,5);
> $lng = float($lng,5);
> $solr['geo_city'] = "$lat,$lng";
>
> And after indexing i can use normal group on this field.
>
>
> On 24 April 2012 17:06, Erick Erickson <erickerick...@gmail.com> wrote:
>
>> 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, 2012 at 6:33 AM, ViruS <svi...@gmail.com> wrote:
>> > 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 grouped records.
>> >
>> > Best,
>> > Piotr
>> >
>> > On 24 April 2012 12:08, ravicv <ravichandra...@gmail.com> wrote:
>> >
>> >> 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.
>> >>
>> >
>> >
>> >
>> > --
>> > Piotr (ViruS) Sikora
>> > E-mail/JID: vi...@hostv.pl
>> > http://piotrsikora.pl
>>
>
>
>
> --
> Piotr (ViruS) Sikora
> E-mail/JID: vi...@hostv.pl
> http://piotrsikora.pl

Reply via email to