What's the default analyze type for my custom mappings

hi all, here is my custom mappings

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.

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!

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