thanks Erik for the pointer. I had this field as "text" and after changing it to "string" it started working as expected.
I am still not sure why this particular value("Infrastructure") was failing to bring back results. other values like "Network", "Information" etc worked fine when field was of type "text" as well. I tried(when groupName was of type "text") &q=*:*&facet=on&facet.field=groupName and it brought back "Infrascture" correctly. Can you explain internally how solr indexed this attribute differently and changing to "string" from "text" started working? Thanks, Erik Hatcher-4 wrote: > > is groupName a "string" field? If not, it probably should be. My > hunch is that you're analyzing that field and it is lowercased in the > index, and maybe even stemmed. > > Try &q=*:*&facet=on&facet.field=groupName to see all the *indexed* > values of the groupName field. > > Erik > > On Feb 3, 2010, at 10:05 AM, javaxmlsoapdev wrote: > >> >> Following is my solr URL. >> >> http://hostname:port/solr/entities/select/? >> version=2.2&start=0&indent=on&qt=dismax&rows=60&fq=statusName:(Open >> OR Cancelled)&debugQuery=true&q=dev&fq=groupName:"Infrastructure“ >> >> “groupName” is one of the attributes I create fq (filterQuery) on. >> This >> field(groupName) is being indexed and stored. >> >> When I search for anything else other than “Infrastructure” in fq >> groupName >> Solr brings me back correct results. When I pass in “Infrastructure” >> in the >> fq=groupName:"Infrastructure“ it never brings me anything back. If I >> remove >> “fq” completely it will bring me all results including records with >> groupName:"Infrastructure“. Something is wrong only with this >> “Infrastructure” value in the fq. >> >> Any idea what wrong could be happening. Clearly this is only related >> to >> value "Infrastructure“ in the filter query. >> >> Thanks, >> >> -- >> View this message in context: >> http://old.nabble.com/Any-idea-what-could-be-wrong-with-this-fq-value--tp27437723p27437723.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://old.nabble.com/Any-idea-what-could-be-wrong-with-this-fq-value--tp27437723p27439279.html Sent from the Solr - User mailing list archive at Nabble.com.