参考:http://www.cnblogs.com/sheeva/p/4837881.html

 

创建索引:

curl -XPUT 'http://localhost:9200/some_index'

 

创建映射,指定字段为not_analyzed类型。(前提是要创建索引)

curl -XPUT 'http://localhost:9200/some_index/_mapping/some_doc_type?pretty' -d '
{"properties":{
        "some_title":{"type":"string", "index":"not_analyzed"}
    }
}'

 

相关文章:

  • 2022-01-20
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 1970-01-01
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2022-03-02
  • 2021-11-08
相关资源
相似解决方案