In the example above your schema is applying the tokenizers and filter only during index time. For your query terms to also pass through the same pipeline you need to modify the field type and add a <analyzer type="query"> section. I believe this should fix your problem. Thanks Afroz : <fieldType name="text_full_match" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.KeywordTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.EnglishPossessiveFilterFactory"/> <filter class="solr.SynonymFilterFactory" synonyms="names-synonyms.txt" ignoreCase="true" expand="true"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.KeywordTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.EnglishPossessiveFilterFactory"/> <filter class="solr.SynonymFilterFactory" synonyms="names-synonyms.txt" ignoreCase="true" expand="true"/> </analyzer> </fieldType>
On Mon, Jun 11, 2012 at 10:25 AM, Vijay Ramachandran <vijay...@gmail.com>wrote: > Thank you for your reply. Sending this as a phrase query does change the > results as expected. > > On Mon, Jun 11, 2012 at 4:39 PM, Tanguy Moal <tanguy.m...@gmail.com> > wrote: > > > I think you have to issue a phrase query in such a case because otherwise > > each "token" is searched independently in the merchant field : the query > > parser splits the query on spaces! > > > > > So parsing of query is dependent in part on the query handling itself, > independent of the field definition? > > > > Check the difference between debug outputs when you search for "Jones New > > York", you'd get what you expected. > > > > Yes, that gives the expected result. So, I should make a separate query to > the merchant field as a phrase? > > thanks! > Vijay >