Hello,

We use solr 7 and use

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

with mapping-ISOLatin1Accent.txt

containing lines like

# À => A
"\u00C0" => "A"

# Á => A
"\u00C1" => "A"

# Â => A
"\u00C2" => "A"

# Ã => A
"\u00C3" => "A"

# Ä => A
"\u00C4" => "A"

# Å => A
"\u00C5" => "A"

# Ā Ă Ą =>
"\u0100" => "A"
"\u0102" => "A"
"\u0104" => "A"

# Æ => AE
"\u00C6" => "AE"

# Ç => C
"\u00C7" => "C"

# é => e
"\u00E9" => "e"

Best regards,
Elisabeth

Le ven. 8 févr. 2019 à 11:18, Gopesh Sharma <gopesh_sha...@gensler.com> a
écrit :

> We have fixed this type of issue by using Synonyms by adding
> SynonymFilterFactory(Before Solr 7).
>
> -----Original Message-----
> From: SAUNIER Maxence <msaun...@q1c1.fr>
> Sent: Friday, February 8, 2019 3:36 PM
> To: solr-user@lucene.apache.org
> Subject: RE: Ignore accent in a request
>
> Hello,
>
> Thanks for you answer.
>
> I have test :
>
> select?defType=dismax&q=je suis avarié&qf=content
> 90.000 results
>
> select?defType=dismax&q=je suis avarie&qf=content
> 60.000 results
>
> With avarié, I dont find documents with avarie and with avarie, I don't
> find documents with avarié.
>
> I want to find they 150.000 documents with avarié or avarie.
>
> Thanks
>
> -----Message d'origine-----
> De : Erick Erickson <erickerick...@gmail.com> Envoyé : jeudi 7 février
> 2019 19:37 À : solr-user <solr-user@lucene.apache.org> Objet : Re: Ignore
> accent in a request
>
> exactly _how_ is it "not working"?
>
> Try building your parameters _up_ rather than starting with a lot, e.g.
> select?defType=dismax&q=je suis avarié&qf=title ^^ assumes you expect a
> match on title. Then:
> select?defType=dismax&q=je suis avarié&qf=title subject
>
> etc.
>
> Because mm=757 looks really wrong. From the docs:
> Defines the minimum number of clauses that must match, regardless of how
> many clauses there are in total.
>
> edismax is used much more than dismax as it's more flexible, but that's
> not germane here.
>
> finally, try adding &debug=query to the url to see exactly how the query
> is parsed.
>
> Best,
> Erick
>
> On Mon, Feb 4, 2019 at 9:09 AM SAUNIER Maxence <msaun...@q1c1.fr> wrote:
> >
> > Hello,
> >
> > How can I ignore accent in the query result ?
> >
> > Request :
> > http://*****:8983/solr/***/select?defType=dismax&q=je+suis+avarié&qf=t
> > itle%5e20+subject%5e15+category%5e1+content%5e0.5&mm=757
> >
> > I want to have doc with avarié and avarie.
> >
> > I have add this in my schema :
> >
> >   {
> >     "name": "string",
> >     "positionIncrementGap": "100",
> >     "analyzer": {
> >       "filters": [
> >         {
> >           "class": "solr.LowerCaseFilterFactory"
> >         },
> >         {
> >           "class": "solr.ASCIIFoldingFilterFactory"
> >         },
> >         {
> >           "class": "solr.EdgeNGramFilterFactory",
> >           "minGramSize": "3",
> >           "maxGramSize": "50"
> >         }
> >       ],
> >       "tokenizer": {
> >         "class": "solr.KeywordTokenizerFactory"
> >       }
> >     },
> >     "stored": true,
> >     "indexed": true,
> >     "sortMissingLast": true,
> >     "class": "solr.TextField"
> >   },
> >
> > But it not working.
> >
> > Thanks.
>

Reply via email to