How to not-analyze in ElasticSearch?

前端 未结 3 1139
攒了一身酷
攒了一身酷 2020-11-30 01:29

I\'ve got a field in an ElasticSearch field which I do not want to have analyzed, i. e. it should be stored and compared verbatim. The values will contain letters, numbers,

3条回答
  •  旧时难觅i
    2020-11-30 02:05

    "my_field2": {
        "properties": {
            "title": {
                "type": "string",
                "index": "not_analyzed"
            }
        }
    }
    

    Check you here, https://www.elastic.co/guide/en/elasticsearch/reference/1.4/mapping-core-types.html, for further info.

提交回复
热议问题