# Word\_delimiter\_graph + preserve\_original = token position matters for "match" query

**URL:** <https://discuss.elastic.co/t/word-delimiter-graph-preserve-original-token-position-matters-for-match-query/225944>\
**Category:** Elasticsearch\
**Created:** [March 31, 2020, 7:43pm UTC](https://discuss.elastic.co/t/word-delimiter-graph-preserve-original-token-position-matters-for-match-query/225944 "2020-03-31T19:43:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jetnet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jetnet](https://discuss.elastic.co/u/jetnet)\
**Post date:** [March 31, 2020, 7:43pm UTC](https://discuss.elastic.co/t/word-delimiter-graph-preserve-original-token-position-matters-for-match-query/225944/1 "2020-03-31T19:43:02Z")

</div>

following issue:

```auto
DELETE test

PUT test
{
  "settings": {
    "number_of_shards": "1",
    "number_of_replicas": "0",
    "analysis": {
      "filter": {
        "word_delimiter_filter": {
          "type": "word_delimiter_graph",
          "preserve_original": true
        }},
      "analyzer": {
        "wordpart_analyzer": {
          "filter": [
            "word_delimiter_filter"
          ],
          "tokenizer": "keyword"
        }}}},
  "mappings": {
    "properties": {
      "title": {
        "type": "text",
            "analyzer": "wordpart_analyzer"
            //,"index_options": "freqs"
        }}}}

PUT test/_bulk
{"index":{}}
{"title":"termA termB termC termD"}

GET test/_search
{
  "query": {
    "match": {
      "title": {
        "query": "termA termB termD"
      }}}}

```

the search does not return the document.  
Workaround: uncomment the `"index_options": "freqs"`

Is it expected behavior?  
Thanks!

---

<div class="post-metadata">

**Author:** ![jetnet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jetnet](https://discuss.elastic.co/u/jetnet)\
**Post date:** [April 1, 2020, 7:29pm UTC](https://discuss.elastic.co/t/word-delimiter-graph-preserve-original-token-position-matters-for-match-query/225944/2 "2020-04-01T19:29:19Z")

</div>

any hints on that?..

---

<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:** [April 29, 2020, 7:29pm UTC](https://discuss.elastic.co/t/word-delimiter-graph-preserve-original-token-position-matters-for-match-query/225944/3 "2020-04-29T19:29:22Z")

</div>

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