This works fine for me. Tack on &debugQuery=on to your URL and post that please unless the stuff below helps....
But note a couple of things 1> productName isn't part of the default dismax configuration in your solrconfig.xml file, so unless you put it there it's not being searched on. Try putting it in the "qf" field. 2> the phrase queries are optional, just used to boost. 3> this is exactly how I'd expect these queries to be parsed, so one of us is missing something <G>.. Best Erick Also see below... On Fri, Apr 8, 2011 at 12:02 PM, alexw <aw...@crossview.com> wrote: > Hi, > > I have a field named "productName" in my schema which uses the standard > "text" field type. And one of my product name is "star/bit". When I search > for "star/bit" (without quotes) using the dismax request hander, NO results > was found. > > After some research, looks like during indexing, "star/bit" was tokenized > into "star", "bit" and "starbit" by the WordDelimiterFilterFactory. And at > search time, "star/bit" (without quotes) was turned into a "star bit" > phrase > query, therefore no matches since there is no "star bit" phrase in the > index. > > True. this is expected. The phrase queries are defined by the pf field in your dismax definition. Is your productName in there? But notice that those are all optional, their presence is used to boost the query if the phrase is present. > My question is: > > 1. Am I understanding it correctly? If yes, how can I make sure a match can > be found? If not, what's really happening? > > Pretty much, except see above. > 2. Why does dismax turn "star/bit" into a "star bit" phrase search instead > of searching for "star" or "bit" or "starbit"? > > because it was told to by the configuration (see above). > Thanks for your help! > > > Alex > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Special-characters-during-indexing-and-searching-tp2795914p2795914.html > Sent from the Solr - User mailing list archive at Nabble.com. >