Got it working, there was a typo. -----Original Message----- From: Jason Chaffee [mailto:jchaf...@ebates.com] Sent: Friday, March 26, 2010 1:05 PM To: solr-user@lucene.apache.org Subject: RE: keyword query tokenizer
I tried escaping the whitespace, but no avail. It is still be broken into two tokens and the whitespace. Has anyone else tried this? -----Original Message----- From: Ahmet Arslan [mailto:iori...@yahoo.com] Sent: Thursday, March 25, 2010 4:05 PM To: solr-user@lucene.apache.org Subject: Re: keyword query tokenizer > I have the following configured for a > particular field: > > > > <analyzer type="query"> > > <tokenizer > class="solr.KeywordTokenizerFactory" /> > > <filter > class="solr.LowerCaseFilterFactory" /> > > </analyzer> > > > > > > I am using dismax and querying multiple fields and I expect > the query to > be parsed different for each field. For some reason, > it is not kept as > single token for this field's query. For example, the > query "Apple > Store" is being broken into two tokens, "apple" and > "store". I would > expect it to be "apple store". > > > > Does anyone have ideas of what might be going on here? Before analysis phase, QueryParser splits on whitespace. You can alter this behavior by escaping whitespace with back slash. apple\ store