Advertisement
nainy

es_map_json

Dec 17th, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.53 KB | None | 0 0
  1. {
  2.    "companies":{
  3.       "mappings":{
  4.          "escompany":{
  5.             "_all":{
  6.                "enabled":false
  7.             },
  8.             "dynamic_templates":[
  9.                {
  10.                   "nested_filter":{
  11.                      "mapping":{
  12.                         "type":"nested",
  13.                         "include_in_parent":true
  14.                      },
  15.                      "match":"filter"
  16.                   }
  17.                },
  18.                {
  19.                   "nested_template_str":{
  20.                      "mapping":{
  21.                         "type":"{dynamic_type}",
  22.                         "index":"not_analyzed",
  23.                         "doc_values":true
  24.                      },
  25.                      "path_match":"filter.*"
  26.                   }
  27.                }
  28.             ],
  29.             "properties":{
  30.                "address":{
  31.                   "type":"string",
  32.                   "analyzer":"default_index",
  33.                   "search_analyzer":"default_search"
  34.                },
  35.                "categoryName":{
  36.                   "type":"string",
  37.                   "term_vector":"with_positions_offsets",
  38.                   "analyzer":"default_index",
  39.                   "search_analyzer":"default_search"
  40.                },
  41.                "city":{
  42.                   "type":"string",
  43.                   "analyzer":"default_index",
  44.                   "search_analyzer":"default_search"
  45.                },
  46.                "description":{
  47.                   "type":"string",
  48.                   "analyzer":"default_search"
  49.                },
  50.                "filter":{
  51.                   "type":"nested",
  52.                   "include_in_parent":true,
  53.                   "properties":{
  54.                      "categoryName":{
  55.                         "type":"string",
  56.                         "index":"not_analyzed"
  57.                      },
  58.                      "city":{
  59.                         "type":"string",
  60.                         "index":"not_analyzed"
  61.                      },
  62.                      "cuisines":{
  63.                         "type":"string",
  64.                         "index":"not_analyzed"
  65.                      },
  66.                      "name":{
  67.                         "type":"string",
  68.                         "index":"not_analyzed"
  69.                      },
  70.                      "payments":{
  71.                         "type":"string",
  72.                         "index":"not_analyzed"
  73.                      },
  74.                      "price":{
  75.                         "type":"long"
  76.                      },
  77.                      "prices":{
  78.                         "properties":{
  79.                            "from":{
  80.                               "type":"long"
  81.                            },
  82.                            "to":{
  83.                               "type":"long"
  84.                            }
  85.                         }
  86.                      },
  87.                      "services":{
  88.                         "type":"string",
  89.                         "index":"not_analyzed"
  90.                      },
  91.                      "stars":{
  92.                         "type":"long"
  93.                      },
  94.                      "subcategoriesNames":{
  95.                         "type":"string",
  96.                         "index":"not_analyzed"
  97.                      }
  98.                   }
  99.                },
  100.                "id":{
  101.                   "type":"integer"
  102.                },
  103.                "location":{
  104.                   "type":"geo_point"
  105.                },
  106.                "name":{
  107.                   "type":"string",
  108.                   "term_vector":"with_positions_offsets",
  109.                   "analyzer":"default_index",
  110.                   "search_analyzer":"default_search"
  111.                },
  112.                "services":{
  113.                   "type":"string",
  114.                   "analyzer":"default_index",
  115.                   "search_analyzer":"default_search"
  116.                },
  117.                "specializationsNames":{
  118.                   "type":"string",
  119.                   "analyzer":"default_index",
  120.                   "search_analyzer":"default_search"
  121.                },
  122.                "subcategoriesNames":{
  123.                   "type":"string",
  124.                   "term_vector":"with_positions_offsets",
  125.                   "analyzer":"default_index",
  126.                   "search_analyzer":"default_search"
  127.                },
  128.                "tags":{
  129.                   "type":"string",
  130.                   "term_vector":"with_positions_offsets",
  131.                   "analyzer":"tag_analyzer"
  132.                }
  133.             }
  134.          }
  135.       }
  136.    }
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement