lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arindam chakraborty <arismar...@gmail.com>
Subject Re: Facet not working in Solr
Date Fri, 31 Aug 2012 04:11:01 GMT
Again to elaborate,

the documents all have an indexed field called u_height which is between
160.0 to 172.0
Range queries work on them with the lucene and edismax.

But faceting using the following URL gives numFound = 0, and all 0's in the
facet counts

q=&fq=&start=0&rows=100&fl=u_height,id,score&wt=&debugQuery=on&explainOther=&facet=on&facet.range.other=all&
*facet.range.start=160.0&facet.range.end=172.0*&facet.range.gap=2.0&*
facet.range=u_height*&facet.range.include=all&defType=edismax


Adding a value in q with qf set  like so

*q=165.0&qf=u_height*
&fq=&start=0&rows=100&fl=u_height,id,score&wt=&debugQuery=on&explainOther=&facet=on&facet.range.other=all&facet.range.start=160.0&facet.range.end=172.0&facet.range.gap=2.0&facet.range=u_height&facet.range.include=all&defType=edismax

gives 8 documents as expected in numFound and facet count of 8 only in the
range of 164.0, whereas I would like to *get the facet counts of all the
ranges.*
Anything missing here?

Arindam


On Fri, Aug 31, 2012 at 4:33 AM, Chris Hostetter
<hossman_lucene@fucit.org>wrote:

>
> : Query parser = dismax
> : range query :
> : q=field:[a TO b]
> :
> : DOESN'T WORK (Less important question. WHY?)
>
> dismax does not support range query syntax, it never has...
>
> https://wiki.apache.org/solr/DisMaxQParserPlugin#Query_Syntax
>
> : Facet:
>         ...
> : DOESN'T WORK.
>
> Define "DOESN'T WORK" ... what do you expect to get? what do you actaully
> get? is there an error message?
>
>         https://wiki.apache.org/solr/UsingMailingLists
>
> :
> q=&fq=&start=0&rows=100&fl=u_height,id,score&wt=&debugQuery=on&explainOther=&
> :
> facet=on&facet.range.other=all&facet.range.start=160.0&facet.range.end=172.0&facet.range.gap=2.0&facet.range=u_height&facet.range.include=all
> : *&defType=edismax
>
> you're q param is empty, so I unless you have other param defaults in your
> solrconfig you haven't told us about, I suspect you are getting an error
> about needing a q param -- which has nothing to do with faceting -- what
> documents do you want to facet over?
>
>
> -Hoss
>

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