You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Midas A <te...@gmail.com> on 2015/06/18 11:03:49 UTC

facet query is not working

http://localhost:8983/solr/col/select?q=*:*&sfield=geolocation&pt=26.697,83.1876&facet.query={!frange%20l=0%20u=50}geodist()&facet.query={!frange%20l=50.001%20u=100}geodist()&&wt=json


I am not getting facet results .

schema:
<field name="geolocation" type="location" indexed="true" stored="true"/> <
dynamicField name="*_coordinate" type="tdouble" indexed="true" stored=
"false"/>

Re: facet query is not working

Posted by Alessandro Benedetti <be...@gmail.com>.
If he has not put any appends or invariant in the request handler,
facet=true is mandatory to activate the facets.

I haven't tried those specific facet queries .

I hope the problem was not simply he didn't activate faceting ...

2015-06-18 10:35 GMT+01:00 Mikhail Khludnev <mk...@griddynamics.com>:

> isn't facet=true necessary?
>
> On Thu, Jun 18, 2015 at 12:03 PM, Midas A <te...@gmail.com> wrote:
>
> >
> >
> http://localhost:8983/solr/col/select?q=*:*&sfield=geolocation&pt=26.697,83.1876&facet.query={!frange%20l=0%20u=50}geodist()&facet.query={!frange%20l=50.001%20u=100}geodist()&&wt=json
> >
> >
> > I am not getting facet results .
> >
> > schema:
> > <field name="geolocation" type="location" indexed="true" stored="true"/>
> <
> > dynamicField name="*_coordinate" type="tdouble" indexed="true" stored=
> > "false"/>
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> <http://www.griddynamics.com>
> <mk...@griddynamics.com>
>



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Re: facet query is not working

Posted by Mikhail Khludnev <mk...@griddynamics.com>.
isn't facet=true necessary?

On Thu, Jun 18, 2015 at 12:03 PM, Midas A <te...@gmail.com> wrote:

>
> http://localhost:8983/solr/col/select?q=*:*&sfield=geolocation&pt=26.697,83.1876&facet.query={!frange%20l=0%20u=50}geodist()&facet.query={!frange%20l=50.001%20u=100}geodist()&&wt=json
>
>
> I am not getting facet results .
>
> schema:
> <field name="geolocation" type="location" indexed="true" stored="true"/> <
> dynamicField name="*_coordinate" type="tdouble" indexed="true" stored=
> "false"/>
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mk...@griddynamics.com>