lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SAUNIER Maxence <MSAUN...@q1c1.fr>
Subject Ignore accent in a request
Date Mon, 04 Feb 2019 14:26:03 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message