Well, string types are not analyzed at all, so if the town is "Dundee", this will not match.
If you haven't seen the admin/analysis page, that's the first place I'd start. Followed by adding &debugQuery=true and looking at the results. Best Erick On Sat, Dec 22, 2012 at 1:04 PM, hank williams <han...@hotmail.com> wrote: > Hi, > I'm trying to build a facet search, but I'm having some difficulties. > I can do a free text search over things, but I can build exact queries. > I know that I have a result that has this data > <doc> <arr name="label"> <str>iraq treatment of children hong > kong</str> </arr> <arr name="label_long"> <str>iraq treatment > of children hong kong</str> </arr> <arr name="name"> > <str>cavendish-bentinck, henry</str> <str>churchill, winston</str> > <str>ward, john</str> </arr> <arr name="name_long"> > <str>cavendish-bentinck, henry</str> <str>churchill, winston</str> > <str>ward, john</str> </arr> <arr name="town"> > <str>nottingham south</str> <str>cabinet</str> > <str>department of state</str> <str>dundee</str> > <str>stoke-on-trent stoke</str> </arr> <arr name="office"> > <str /> <str>secretary of state for the colonies</str> <str > /> </arr> <long name="_version_">1422064629033467904</long></doc> > > And my schema looks like this > <field name="id" type="string" indexed="true" stored="true" > required="true" multiValued="false" /> <field name="name" > type="text_general" indexed="true" stored="true" multiValued="true"/><field > name="name_long" type="string" indexed="true" stored="true" > multiValued="true"/><field name="type" type="string" indexed="true" > stored="true" multiValued="true"/><field name="label" type="text_general" > indexed="true" stored="true" multiValued="true"/><field name="label_long" > type="string" indexed="true" stored="true" multiValued="true"/><field > name="date" type="date" indexed="true" stored="true" > multiValued="true"/><field name="town" type="string" indexed="true" > stored="true" multiValued="true"/><field name="office" type="string" > indexed="true" stored="true" multiValued="true"/> > How can I create an exact query with name_long='churchill, winston' AND > label_long=''iraq treatment of children hong kong' AND town='dundee' > When I try > <str name="q">label_long:*iraq treatment of children hong kong* AND > name_long:*churchill, winston* AND town:*dundee*</str> > I get zero results.