When WDF filters blackberry9810 it will treat it as a sequence of tokens but as if it were a phrase, like "blackberry 9810", with the two terms adjacent, at least with the edismax query parser. I'm not sure what the other query parsers do.

If you are using edismax, you can set the QS (query slop) request parameter to 1 (rather than 0), so that blackberry9810 will be treated as "blackberry 9810"~1 which means that an additional term can (optionally) be matched by the phrase query.

In other words, "blackberry9810"~1 would match blackberry torch 9810 as well as blackberry 9810.

-- Jack Krupansky

-----Original Message----- From: abhayd
Sent: Monday, April 30, 2012 2:13 AM
To: solr-user@lucene.apache.org
Subject: solr.WordDelimiterFilterFactory query time

hi

I am using solr.WordDelimiterFilterFactory for a text_en field during query
time.

my title for document is: blackberry torch 9810
My query : torch9810 works fine
It splits alpha numeric and gets me the document.

But when query is:blackberry9810 it splits to blackberry 9810 but I dont get
the document I mentioned above.
If i change query to blackberry 9810 (two words) i get the document.

Can anyone explain what I m doing wrong? When i query blackberry9810 i would
like to get the same results as blackberry 9810

thanks
abhay

--
View this message in context:
http://lucene.472066.n3.nabble.com/solr-WordDelimiterFilterFactory-query-time-tp3950045.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to