lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Chheng <>
Subject Re: Facet query help
Date Mon, 12 Oct 2009 15:08:38 GMT
ok, so fq != facet.query. i thought it was an alias. I'm trying your 
suggestion fq=Memory_s:"1 GB" and now it's returning zero documents even 
though there is one document that has "tommy" and "Memory_s:1 GB" as 
seen in the original pastie( I tried the fq 
query body with quotes and without quotes.


Any thoughts?


On 10/12/09 1:00 AM, Shalin Shekhar Mangar wrote:
> 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"

View raw message