Re: mincount doesn't work with FacetQuery

2010-10-22 Thread Mark Allan
This is a response to a thread from several months ago ( http://lucene.472066.n3.nabble.com/mincount-doesn-t-work-with-FacetQuery-tp473162p473162.html 
 ) Sorry, I don't know where to get the thread number to request that  
specific thread from listserv and reply properly via email.


Anyway, I've recently come across the same problem while working with  
branch_3x of Solr and I'm wondering if anyone ever opened a JIRA for  
this feature request?  I can't find one but that doesn't mean it's not  
there, and I don't want to create a duplicate.


Cheers
Mark

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



Re: mincount doesn't work with FacetQuery

2010-03-15 Thread Saïd Radhouani
Chris -

Shall I open a JIRA request to add this feature?

Thnx

2010/3/11 Chris Hostetter 

>
> : I'm faceting with a query range (with addFacetQuery) and setting mincount
> to
> : 10 (with setFacetMinCount(10)), but Solr is not respecting this mincount;
> : it's still giving me all responses, even those having less than 10
> retrieved
> : documents.
>
> if by "all responses" you mean "all facet queries" then that is the
> correct behavior -- facet.mincount is a param that affects facet.field,
> not fact.query.
>
> The documentation notes this, in that all of the params are divided by
> section...
>
>   http://wiki.apache.org/solr/SimpleFacetParameters
>
> ...if you'd like to open a feature request, it would be fairly easy to
> make facet.query (and facet.date) consider facet.mincount as well.
>
>
> -Hoss
>
>


Re: mincount doesn't work with FacetQuery

2010-03-11 Thread Chris Hostetter

: I'm faceting with a query range (with addFacetQuery) and setting mincount to
: 10 (with setFacetMinCount(10)), but Solr is not respecting this mincount;
: it's still giving me all responses, even those having less than 10 retrieved
: documents.

if by "all responses" you mean "all facet queries" then that is the 
correct behavior -- facet.mincount is a param that affects facet.field, 
not fact.query.

The documentation notes this, in that all of the params are divided by 
section...

   http://wiki.apache.org/solr/SimpleFacetParameters

...if you'd like to open a feature request, it would be fairly easy to 
make facet.query (and facet.date) consider facet.mincount as well.


-Hoss



Re: mincount doesn't work with FacetQuery

2010-03-11 Thread Erik Hatcher

Steve -

I'm a bit confused... each facet.query (using HTTP parameter  
nomenclature) only adds a single value to the response, the number of  
docs within the current constraints that match that query.   
facet.mincount is specifically for facet.field, which adds a name/ 
value pair for each value in the field, and that's where you want to  
limit the number of values returned.


Perhaps you could provide a concrete example with the solr response  
(XML, JSON, or something readable format) for the facet data isn't  
making sense to you.


Or maybe SolrJ has some faults in presenting the response properly?

Erik

On Mar 11, 2010, at 8:11 AM, Steve Radhouani wrote:

I'm faceting with a query range (with addFacetQuery) and setting  
mincount to
10 (with setFacetMinCount(10)), but Solr is not respecting this  
mincount;
it's still giving me all responses, even those having less than 10  
retrieved

documents.

I'm wondering wether there's another way to define the mincount  
while using
addFacetQuery. Actually, when I use this same mincount with  
addFacetField,

it works perfectly.

Any ideas?

Thanks




mincount doesn't work with FacetQuery

2010-03-11 Thread Steve Radhouani
I'm faceting with a query range (with addFacetQuery) and setting mincount to
10 (with setFacetMinCount(10)), but Solr is not respecting this mincount;
it's still giving me all responses, even those having less than 10 retrieved
documents.

I'm wondering wether there's another way to define the mincount while using
addFacetQuery. Actually, when I use this same mincount with addFacetField,
it works perfectly.

Any ideas?

Thanks