Re: WordDelimiterFilter removes ampersands

2012-07-04 Thread Stephen Lacy
simple character filter that always expands "&" to " and " would > be good enough for a lot of common cases, as a rough approximation. > > Maybe solr.**PatternReplaceCharFilterFactor**y could be used to > accomplish that. Match "&" and replace with "

Re: WordDelimiterFilter removes ampersands

2012-07-04 Thread Jack Krupansky
FilterFactory could be used to accomplish that. Match "&" and replace with " and ". -- Jack Krupansky -Original Message- From: Stephen Lacy Sent: Wednesday, July 04, 2012 8:16 AM To: solr-user@lucene.apache.org Subject: WordDelimiterFilter removes ampersands

WordDelimiterFilter removes ampersands

2012-07-04 Thread Stephen Lacy
If a user writes a query "Apples & Oranges" the word delimiter filter factory will change this into "Apples Oranges" Which isn't very useful for me as I'd prefer especially when the phrase is wrapped in quotes that the original is preserved. However I still want to be able to separate Apples&Orange