Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "companies":{
- "mappings":{
- "escompany":{
- "_all":{
- "enabled":false
- },
- "dynamic_templates":[
- {
- "nested_filter":{
- "mapping":{
- "type":"nested",
- "include_in_parent":true
- },
- "match":"filter"
- }
- },
- {
- "nested_template_str":{
- "mapping":{
- "type":"{dynamic_type}",
- "index":"not_analyzed",
- "doc_values":true
- },
- "path_match":"filter.*"
- }
- }
- ],
- "properties":{
- "address":{
- "type":"string",
- "analyzer":"default_index",
- "search_analyzer":"default_search"
- },
- "categoryName":{
- "type":"string",
- "term_vector":"with_positions_offsets",
- "analyzer":"default_index",
- "search_analyzer":"default_search"
- },
- "city":{
- "type":"string",
- "analyzer":"default_index",
- "search_analyzer":"default_search"
- },
- "description":{
- "type":"string",
- "analyzer":"default_search"
- },
- "filter":{
- "type":"nested",
- "include_in_parent":true,
- "properties":{
- "categoryName":{
- "type":"string",
- "index":"not_analyzed"
- },
- "city":{
- "type":"string",
- "index":"not_analyzed"
- },
- "cuisines":{
- "type":"string",
- "index":"not_analyzed"
- },
- "name":{
- "type":"string",
- "index":"not_analyzed"
- },
- "payments":{
- "type":"string",
- "index":"not_analyzed"
- },
- "price":{
- "type":"long"
- },
- "prices":{
- "properties":{
- "from":{
- "type":"long"
- },
- "to":{
- "type":"long"
- }
- }
- },
- "services":{
- "type":"string",
- "index":"not_analyzed"
- },
- "stars":{
- "type":"long"
- },
- "subcategoriesNames":{
- "type":"string",
- "index":"not_analyzed"
- }
- }
- },
- "id":{
- "type":"integer"
- },
- "location":{
- "type":"geo_point"
- },
- "name":{
- "type":"string",
- "term_vector":"with_positions_offsets",
- "analyzer":"default_index",
- "search_analyzer":"default_search"
- },
- "services":{
- "type":"string",
- "analyzer":"default_index",
- "search_analyzer":"default_search"
- },
- "specializationsNames":{
- "type":"string",
- "analyzer":"default_index",
- "search_analyzer":"default_search"
- },
- "subcategoriesNames":{
- "type":"string",
- "term_vector":"with_positions_offsets",
- "analyzer":"default_index",
- "search_analyzer":"default_search"
- },
- "tags":{
- "type":"string",
- "term_vector":"with_positions_offsets",
- "analyzer":"tag_analyzer"
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement