Edgengram

i have this query

GET product_de/_search
{
              "from" : "0","size":"5",
                  "query": {
                      "match": {
                        "product_title.edgengram": "34151001 "
                      }
                    }
                 }

I always get first products with title that contains 34151003 .. 34151003 and then 34151001 in title.

also

POST product_de/_analyze
{
  "tokenizer": "edge_ngram_tokenizer",
  "text":      "34151001"
}```

{
  "tokens": [
    {
      "token": "341",
      "start_offset": 0,
      "end_offset": 3,
      "type": "word",
      "position": 0
    },
    {
      "token": "3415",
      "start_offset": 0,
      "end_offset": 4,
      "type": "word",
      "position": 1
    },
    {
      "token": "34151",
      "start_offset": 0,
      "end_offset": 5,
      "type": "word",
      "position": 2
    },
    {
      "token": "341510",
      "start_offset": 0,
      "end_offset": 6,
      "type": "word",
      "position": 3
    },
    {
      "token": "3415100",
      "start_offset": 0,
      "end_offset": 7,
      "type": "word",
      "position": 4
    },
    {
      "token": "34151001",
      "start_offset": 0,
      "end_offset": 8,
      "type": "word",
      "position": 5
    }
  ]
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.