On 7/22/2011 8:34 AM, Jason Toy wrote:
How does one search for words with characters like # and +. I have tried searching solr with "#test" and "\#test" but all my results always come up with "test" and not "#test". Is this some kind of configuration option I need to set in solr?
I would guess that your analysis chain (in schema.xml) includes something that removes and/or splits terms at non-alphanumeric characters. There are a several components that do this, but WordDelimiterFilter is the one that comes to mind most readily. I've never used the StandardTokenizer, but I believe it might do something similar.
Thanks, Shawn