You need this for both index and query: <filter class="solr.PatternReplaceFilterFactory" pattern="\s+" replacement=" " replace="all"/>
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PatternReplaceFilterFactory On Wed, Aug 29, 2012 at 4:55 AM, aniljayanti <anil.jaya...@gmail.com> wrote: > Hi, > > thanks for ur reply, > > I donot know how to remove multiple white spaces using regax in the search > text. Can u share me that one. > > Thanks, > > AnilJayanti > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/auto-completion-search-with-solr-using-NGrams-in-SOLR-tp3998559p4003991.html > Sent from the Solr - User mailing list archive at Nabble.com. >