lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Is there faceting with Solr 4 spatial?
Date Wed, 09 Jan 2013 00:33:41 GMT
For facets, doesn't
http://localhost:8983/solr/select?wt=json&indent=true&fl=name,store&q=*:*&facet=on
&facet.query={!frange l=0 u=3}geodist(store,45.15,-93.85)
&facet.query={!frange l=3.001 u=4}geodist(store,45.15,-93.85)
&facet.query={!frange l=4.001 u=5}geodist(store,45.15,-93.85)

work (from
http://wiki.apache.org/solr/SpatialSearch#How_to_facet_by_distance)

Although I also confess to being really unfamiliar with all things
geodist...

Best
Erick


On Tue, Jan 8, 2013 at 4:02 AM, Alexandre Rafalovitch <arafalov@gmail.com>wrote:

> Hello,
>
> I am trying to understand the new Solr 4 spatial type and what it can do. I
> sort of understand the old implementation, though also far from well.
>
> The use case is to have companies that has multiple offices, for which I
> indexed locations. I then want to do a 'radar' style ranges/facets, so I
> can say "show me everything in 100k, in 300k, etc". The wiki page for old
> implementation shows how to do it, but I am having troubles figuring this
> out for new implementation.
>
> Regards,
>    Alex.
> P.s. "Not yet possible", "wait till 4.1/5", etc are perfectly valid
> shortest answers for me, at this stage.
>
> Personal blog: http://blog.outerthoughts.com/
> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> - Time is the quality of nature that keeps events from happening all at
> once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message