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: Ampersand in searchstring. how to replace ?
Date Mon, 19 Apr 2010 14:48:12 GMT

> I didnt find any about my problem...
> 
> how can i replace an ampersand in indextime ? 
> 
> my autosuggest words are haveing ampersands. how can i
> replace this sign (&)
> ???
> 

Easiest way is to use MappingCharFilterFactory before your tokenizer.

<charFilter class="solr.MappingCharFilterFactory" mapping="mapping.txt"/>

mapping.txt will be placed under solrhome/conf directory and contain this line :

"&" => " " 


      

Mime
View raw message