On Mon, Oct 12, 2009 at 6:07 AM, Tommy Chheng <tommy.chh...@gmail.com>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 (http://pastie.org/650932), 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" -- Regards, Shalin Shekhar Mangar.