1、建立一个String类型的字段

curl -XPUT http://192.168.46.163:9200/t_risk_case/_mapping/t_risk_case?pretty -d '{"properties":{"uuid":{"type":"string"}}}' 

2、建一个嵌套型的字段

curl -XPUT http://192.168.46.163:9200/t_risk_case/_mapping/t_risk_case?pretty -d '{"properties":{"case_details":{"type":"nested"}}}'

3、建一个不做分词的字段

 curl -XPUT http://192.168.46.163:9200/t_risk_case/_mapping/t_risk_case?pretty  -d '{"properties":{"title":{"type":"string","index":"not_analyzed"}}}'

 

相关文章:

  • 2021-05-17
  • 2022-12-23
  • 2022-01-25
  • 2021-12-24
  • 2021-12-07
  • 2021-09-09
  • 2021-10-25
  • 2021-10-18
猜你喜欢
  • 2021-07-06
  • 2021-12-31
  • 2022-01-22
  • 2021-12-31
相关资源
相似解决方案