# What's the default analyze type for my custom mappings

**URL:** <https://discuss.elastic.co/t/whats-the-default-analyze-type-for-my-custom-mappings/164119>\
**Category:** Elasticsearch\
**Created:** [January 14, 2019, 9:47am UTC](https://discuss.elastic.co/t/whats-the-default-analyze-type-for-my-custom-mappings/164119 "2019-01-14T09:47:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ea6bdb5e93c55c655ec0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ea6bdb5e93c55c655ec0/32/39755_2.png) [@ea6bdb5e93c55c655ec0](https://discuss.elastic.co/u/ea6bdb5e93c55c655ec0)\
**Post date:** [January 14, 2019, 9:47am UTC](https://discuss.elastic.co/t/whats-the-default-analyze-type-for-my-custom-mappings/164119/1 "2019-01-14T09:47:41Z")

</div>

hi all, here is my custom mappings

```auto
PUT /viewhistory
{
  "mappings": {
      "user": {
        "properties": {
          "@timestamp": {
            "type": "date"
          },
          "@version": {
            "type": "long"
          },
          "albumCategory": {
            "type": "long"
          },
          "cleanStatus": {
            "type": "long"
          },
          "coverUrl": {
            "type": "text"
          },
          "host": {
            "type": "text"
          },
          "index": {
            "type": "text"
          },
          "oid": {
            "type": "long"
          },
          "photoAlbumId": {
            "type": "long"
          },
          "photoCount": {
            "type": "long"
          },
          "port": {
            "type": "long"
          },
          "shootingTimeStart": {
            "type": "long"
          },
          "sourceFrom": {
           "type": "text"
          },
          "sourceFromType": {
            "type": "text"
          },
          "title": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "type": {
            "type": "text"
          },
          "uId": {
            "type": "long"
          },
          "uid": {
            "type": "long"
          },
          "viewTime": {
            "type": "long"
          },
          "wechatid": {
            "type": "text"
          }
        }
      }
    }
}

```

and i use terms api query this viewhistory documents,hava no result.

```auto
GET /viewhistory/user/_search
{
  "query": {"terms": {
    "wechatid": [
      "0D2749A7BF19AFF1111260346768DE26",
      "D877C3B09AFC20DD9DEDBFC0469F07A7"
    ]
  }
  }
}

```

and i know `Filters documents that have fields that match any of the provided terms ( **not analyzed** )`

so should i explicit set the wechatid analyze type to not analyzed?

how can i do. thanks all!

---

<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:** [February 11, 2019, 9:47am UTC](https://discuss.elastic.co/t/whats-the-default-analyze-type-for-my-custom-mappings/164119/2 "2019-02-11T09:47:51Z")

</div>

Closed on February 11, 2019, 9:47am UTC

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