lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: how to implement search including special characters?
Date Fri, 30 Sep 2011 14:14:19 GMT
> yaa iorixxx...i found that lucene
> qury parser class 
> http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/queryParser/QueryParser.html
> here 
> can u pls explain that how i have to use this class in my
> solr config
> files....
> i already added the following classes in my schema.xml
> file
> <filter class="solr.LowerCaseFilterFactory"/>
> <filter class="solr.KeywordMarkerFilterFactory"
> protected="protwords.txt"/>
> <filter class="solr.PorterStemFilterFactory"/>
> <filter
> class="solr.RemoveDuplicatesTokenFilterFactory"/>
> <filter class="solr.EdgeNGramFilterFactory"
> minGramSize="1" maxGramSize="50"
> />
> 
> but i am not sure about that where should i configure that
> can u pls post
> some sample to use that

You need to call QueryParser.escape() method at client side. 
If you really want to do it inside the solr, custom SearchComponent or RequestHandler that
modifies q parameter could also do the trick. 

Mime
View raw message