> Our tests show we cannot query for !Fast and find the > document. > > I've just taken a look and Solr is coming back with > > Invalid boolean value: !Fast > > It's a valid query for a valid value. I appreciate that > exclamation is a "not" operator. But how does one get around > this scenario?
You can escape special characters with back slash. q=\!Fast Or you can use RawQParserPlugin. http://lucene.apache.org/solr/api/org/apache/solr/search/RawQParserPlugin.html > My instinct tells me that Solr indexes without the > exclamation through its tokenisation and other filters and > so perhaps I should just be stripping incoming queries of > punctuation - particularly leading/trailing? It depends on your index analyzer. You can test this behavior from analysis.jsp page. If !Fast is reduced to fast at index time, you can query it with &q=fast.