# Document not matched

**URL:** <https://discuss.elastic.co/t/document-not-matched/107392>\
**Category:** Elasticsearch\
**Created:** [November 13, 2017, 12:57pm UTC](https://discuss.elastic.co/t/document-not-matched/107392 "2017-11-13T12:57:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukas\_Tilch](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@Lukas\_Tilch](https://discuss.elastic.co/u/Lukas_Tilch)\
**Post date:** [November 13, 2017, 12:57pm UTC](https://discuss.elastic.co/t/document-not-matched/107392/1 "2017-11-13T12:57:21Z")

</div>

Hello i have a Document indexed with a custom analyzer.

the string is "MKS-Integrity11.1\_Software-FAQ.docx"

it gets tokenized into

```
{
  "tokens": [
    {
      "token": "mks",
      "start_offset": 0,
      "end_offset": 3,
      "type": "<ALPHANUM>",
      "position": 0
    },
    {
      "token": "integrity",
      "start_offset": 4,
      "end_offset": 13,
      "type": "<ALPHANUM>",
      "position": 1
    },
    {
      "token": "11",
      "start_offset": 13,
      "end_offset": 15,
      "type": "<ALPHANUM>",
      "position": 2
    },
    {
      "token": "1",
      "start_offset": 16,
      "end_offset": 17,
      "type": "<ALPHANUM>",
      "position": 3
    },
    {
      "token": "software",
      "start_offset": 18,
      "end_offset": 26,
      "type": "<ALPHANUM>",
      "position": 4
    },
    {
      "token": "faq",
      "start_offset": 27,
      "end_offset": 30,
      "type": "<ALPHANUM>",
      "position": 5
    },
    {
      "token": "docx",
      "start_offset": 31,
      "end_offset": 35,
      "type": "<ALPHANUM>",
      "position": 6
    }
  ]
}

```

for the Query i use a phrase\_prefix with a slop of 50

If i query for anything that contains software i.e. "software faq" i get zero matches.  
if i query for "MKS faq" i get the match, "mks software faq" no match.  
I wonder why that happens, the term software itself is tokenized correctly.

thanks in advance  
Lukas

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 11, 2017, 12:57pm UTC](https://discuss.elastic.co/t/document-not-matched/107392/2 "2017-12-11T12:57:28Z")

</div>

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