Text search means searching of text, and special characters are not... text.
Why are you using the standard tokenizer if you are not trying to search for standard text? Try using the white space tokenizer, which will preserve special characters. That said, the word delimiter filter will remove this punctuation. You can specify a character type map to treat specific characters as letters. See the doc. (or the examples in my e-book.) -- Jack Krupansky On Wed, Apr 8, 2015 at 2:50 AM, avinash09 <avinash.i...@gmail.com> wrote: > not able to search on special characters like . ,_ > > my query > http://localhost:8983/solr/rna/select?q=name:"UAE > B"&wt=json&fl=name&rows=100 > > getting result UAE_bhdgsfsdbj > > but for > http://localhost:8983/solr/rna/select?q=name > :"UAE_"&wt=json&fl=name&rows=100 > > no result found > > I am using below field type > <fieldType name="text_suggest_ngram2" class="solr.TextField"> > <analyzer type="index"> > <charFilter class="solr.MappingCharFilterFactory" > mapping="mapping-ISOLatin1Accent.txt"/> > <tokenizer class="solr.StandardTokenizerFactory"/> > <filter class="solr.WordDelimiterFilterFactory" > generateWordParts="1" generateNumberParts="1" catenateWords="0" > catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.EdgeNGramFilterFactory" maxGramSize="20" > minGramSize="1"/> > <filter class="solr.PatternReplaceFilterFactory" > pattern="([^\w\d\*æøåÆØÅ ])" replacement="" replace="all"/> > </analyzer> > <analyzer type="query"> > <charFilter class="solr.MappingCharFilterFactory" > mapping="mapping-ISOLatin1Accent.txt"/> > <tokenizer class="solr.StandardTokenizerFactory"/> > <filter class="solr.LowerCaseFilterFactory"/> > </analyzer> > </fieldType> > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/search-on-special-characters-tp4198286.html > Sent from the Solr - User mailing list archive at Nabble.com. >