Shouldn't the second query have the clause: &fq=themes_raw:Hotel en Restaurant
instead of: &fq=themes:Hotel en Restaurant Otherwise you're mixing apples (themes_raw) and oranges (themes). (Notice how I cleverly extended the restaurant theme to be food related :)) Bob Sandiford | Lead Software Engineer | SirsiDynix P: 800.288.8020 X6943 | bob.sandif...@sirsidynix.com www.sirsidynix.com > -----Original Message----- > From: PeterKerk [mailto:vettepa...@hotmail.com] > Sent: Wednesday, November 10, 2010 4:34 PM > To: solr-user@lucene.apache.org > Subject: Facet showing MORE results than expected when its selected? > > > A facet shows the amount of results that match with that facet, e.g. > "New > York (433)" So when the facet is clicked, you'd expect that amount of > results (433). > > However, I have a facet "Hotel en Restaurant (321)", that, when clicked > shows 370 results! :s > > > 1st query: > http://localhost:8983/solr/db/select/?indent=on&facet=true&q=*:*&start= > 0&rows=25&fl=id,title,themes&facet.field=themes_raw&facet.mincount=1 > > > This is (part) of the resultset of my first query > <lst name="facet_counts"> > <lst name="facet_queries"/> > <lst name="facet_fields"> > <lst name="themes_raw"> > <int name="Hotel en Restaurant">321</int> > </lst> > </lst> > <lst name="facet_dates"/> > <lst name="facet_ranges"/> > </lst> > > > > Now when I click the facet "Hotel en Restaurant", > it fires my second query: > http://localhost:8983/solr/db/select/?indent=on&facet=true&fq=themes:Ho > tel > en > Restaurant&q=*:*&start=0&rows=25&fl=id,title,themes&facet.field=themes_ > raw&facet.mincount=1 > > I would expect 321, however I get 370! > > > schema.xml > <field name="themes" type="text" indexed="true" stored="true" > multiValued="true" /> > <field name="themes_raw" type="string" indexed="true" stored="true" > multiValued="true"/> > <copyField source="themes" dest="themes_raw"/> > -- > View this message in context: http://lucene.472066.n3.nabble.com/Facet- > showing-MORE-results-than-expected-when-its-selected- > tp1878828p1878828.html > Sent from the Solr - User mailing list archive at Nabble.com.