Advertisement
SergeyKlimov

Структура индекса ES

Jul 23rd, 2021
960
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.35 KB | None | 0 0
  1. {
  2.   "movies" : {
  3.     "mappings" : {
  4.       "properties" : {
  5.         "actors" : {
  6.           "type" : "text",
  7.           "fields" : {
  8.             "keyword" : {
  9.               "type" : "keyword",
  10.               "ignore_above" : 256
  11.             }
  12.           }
  13.         },
  14.         "creation_date" : {
  15.           "type" : "date"
  16.         },
  17.         "description" : {
  18.           "type" : "text",
  19.           "fields" : {
  20.             "keyword" : {
  21.               "type" : "keyword",
  22.               "ignore_above" : 256
  23.             }
  24.           }
  25.         },
  26.         "directors" : {
  27.           "type" : "text",
  28.           "fields" : {
  29.             "keyword" : {
  30.               "type" : "keyword",
  31.               "ignore_above" : 256
  32.             }
  33.           }
  34.         },
  35.         "genres" : {
  36.           "type" : "text",
  37.           "fields" : {
  38.             "keyword" : {
  39.               "type" : "keyword",
  40.               "ignore_above" : 256
  41.             }
  42.           }
  43.         },
  44.         "rating" : {
  45.           "type" : "float"
  46.         },
  47.         "title" : {
  48.           "type" : "text",
  49.           "fields" : {
  50.             "keyword" : {
  51.               "type" : "keyword",
  52.               "ignore_above" : 256
  53.             }
  54.           }
  55.         },
  56.         "type" : {
  57.           "type" : "text",
  58.           "fields" : {
  59.             "keyword" : {
  60.               "type" : "keyword",
  61.               "ignore_above" : 256
  62.             }
  63.           }
  64.         },
  65.         "writers" : {
  66.           "type" : "text",
  67.           "fields" : {
  68.             "keyword" : {
  69.               "type" : "keyword",
  70.               "ignore_above" : 256
  71.             }
  72.           }
  73.         }
  74.       }
  75.     }
  76.   },
  77.   "genres" : {
  78.     "mappings" : {
  79.       "properties" : {
  80.         "name" : {
  81.           "type" : "text",
  82.           "fields" : {
  83.             "keyword" : {
  84.               "type" : "keyword",
  85.               "ignore_above" : 256
  86.             }
  87.           }
  88.         }
  89.       }
  90.     }
  91.   },
  92.   "persons" : {
  93.     "mappings" : {
  94.       "properties" : {
  95.         "actor" : {
  96.           "type" : "text",
  97.           "fields" : {
  98.             "keyword" : {
  99.               "type" : "keyword",
  100.               "ignore_above" : 256
  101.             }
  102.           }
  103.         },
  104.         "birth_date" : {
  105.           "type" : "date"
  106.         },
  107.         "director" : {
  108.           "type" : "text",
  109.           "fields" : {
  110.             "keyword" : {
  111.               "type" : "keyword",
  112.               "ignore_above" : 256
  113.             }
  114.           }
  115.         },
  116.         "first_name" : {
  117.           "type" : "text",
  118.           "fields" : {
  119.             "keyword" : {
  120.               "type" : "keyword",
  121.               "ignore_above" : 256
  122.             }
  123.           }
  124.         },
  125.         "last_name" : {
  126.           "type" : "text",
  127.           "fields" : {
  128.             "keyword" : {
  129.               "type" : "keyword",
  130.               "ignore_above" : 256
  131.             }
  132.           }
  133.         },
  134.         "producer" : {
  135.           "type" : "text",
  136.           "fields" : {
  137.             "keyword" : {
  138.               "type" : "keyword",
  139.               "ignore_above" : 256
  140.             }
  141.           }
  142.         },
  143.         "screenwriter" : {
  144.           "type" : "text",
  145.           "fields" : {
  146.             "keyword" : {
  147.               "type" : "keyword",
  148.               "ignore_above" : 256
  149.             }
  150.           }
  151.         }
  152.       }
  153.     }
  154.   }
  155. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement