ElasticSearch语法学习(二)

眼君

关注

阅读 49

2022-01-05

#指定英文分词器的index创建
PUT /movie
{
  "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 1
  },
  "mappings": {
    "properties": {
      "name" :{
        "type": "text",
        "analyzer": "english"
      }
    }
  }
}
#tmdb海量数据测试
DELETE /movie
GET /movie/_search
PUT /movie
{
   "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 1
  },
  "mappings": {
    "properties": {
      "title" :{
        "type": "text",
        "analyzer": "english"
      },
      "tagline":{
        "type": "text",
 

精彩评论(0)

0 0 举报