I am using Solr with Sunspot / dismax. Can non-alphabetic characters be requested? Ie:
~ ! @ # $ % ^ & * ( ) _ + - = [ ] { } | \
I know that +/- should be escaped since they are inconvenient inclusion / exclusion operators. But I don't get matches when looking for any of these characters:
Foo.search { fulltext '=' }.results.length
Nonetheless:
Foo.search { fulltext 'a'}.results.length
Here is the tokenizer configuration I'm using:
<fieldType name="text" class="solr.TextField" omitNorms="false"> <analyzer> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.StandardFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType>
source share