lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Ignore accent in a request
Date Thu, 07 Feb 2019 18:37:08 GMT
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 <MSAUNIER@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=title%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.

Mime
View raw message