There is a ISOLatin1AccentFilterFactory that does this.  To use it you'd add

<filter class="solr.ISOLatin1AccentFilterFactory"/>

to your

<fieldType name="text" class="solr.TextField" positionIncrementGap="100">
    <analyzer type="index">
          <filter class="solr.ISOLatin1AccentFilterFactory"/>
and

     <analyzer type="query">
         <filter class="solr.ISOLatin1AccentFilterFactory"/>

Though looking at our solr config it doesn't look like we have it in
there either.  Not sure if there is a reason for not including it.

Perhaps (I'm just now looking up the docs for it) because it's been deprecated
  Cf. 
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.ISOLatin1AccentFilterFactory)

Still, I don't see the newer version solr.ASCIIFoldingFilterFactory in
our schema.xml either.

Think I'll put it in, reindex, and test.

Kevin



On Mon, Aug 23, 2010 at 11:41 AM, Blanco, Jose <blan...@umich.edu> wrote:
> I noticed that in my instance if I search for:
>
> Jose ( without an accent )
>
> I get all the results with Jose ( without an accent ).
>
> And if I search for
>
> Jose ( with an accent on the e )
>
> I get all the instances that have Jose with accent.
>
> My instance is setup with English as the default language, so I thought I 
> experiment in my development environment and change it to French 
> (search.analyzer = org.apache.lucene.analysis.fr.FrenchAnalyzer).  I did an 
> index-init after changing it to French.  But when I tried the search again, I 
> got the same results.
>
> I found that this instace http://riuma.uma.es/xmlui , and it works as I 
> expected.  Searching for Jose ( without the accent ), finds all Jose's 
> regardless of whether they have accents or not.  Is there a way to map 
> diacritics?  It would be great for to be able to search Latin 1 chars with or 
> without accents.
>
> Thank you!
> Jose
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to