lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <>
Subject Re: Facet query help
Date Mon, 12 Oct 2009 08:00:15 GMT
On Mon, Oct 12, 2009 at 6:07 AM, Tommy Chheng <>wrote:

> The dummy data set is composed of 6 docs.
> My query is set for 'tommy' with the facet query of Memory_s:1+GB
> http://lh:8983/solr/select/?facet=true&facet.field=CPU_s&facet.field=Memory_s&facet.field=Video+Card_s&wt=ruby&facet.query=Memory_s:1+GB&q=tommy&indent=on
> However, in the response (, I get two docs: one
> which has the correct field Memory_s:1 GB and the second document which has
> a Memory_s:3+GB. Why did the second document match if i set the facet.query
> to just 1+GB??
facet.query does not limit documents. It is used for finding the number of
documents matching the query. In order to filter the result set you should
use filter query e.g. fq=Memory_s:"1 GB"

Shalin Shekhar Mangar.

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