Skip to content

Instantly share code, notes, and snippets.

@Amice13
Created May 16, 2018 13:55
Show Gist options
  • Save Amice13/c6a326c806b44cdd2088c767616a8751 to your computer and use it in GitHub Desktop.
Save Amice13/c6a326c806b44cdd2088c767616a8751 to your computer and use it in GitHub Desktop.
some gist
{
"drv" : {
"aliases" : { },
"mappings" : {
"drv" : {
"properties" : {
"ATOCode" : {
"type" : "keyword"
},
"all" : {
"type" : "text",
"fields" : {
"shingle" : {
"type" : "text",
"analyzer" : "shingleAnalyzer"
}
},
"analyzer" : "ukrainian"
},
"code" : {
"type" : "keyword"
},
"district" : {
"type" : "keyword",
"copy_to" : [
"all"
]
},
"districtNum" : {
"type" : "keyword"
},
"level" : {
"type" : "keyword"
},
"locality" : {
"type" : "keyword",
"copy_to" : [
"all"
]
},
"oldDistrict" : {
"type" : "keyword",
"copy_to" : [
"all"
]
},
"oldLocality" : {
"type" : "keyword",
"copy_to" : [
"all"
]
},
"oldStreet" : {
"type" : "keyword",
"copy_to" : [
"all"
]
},
"parentCode" : {
"type" : "keyword"
},
"postalCode" : {
"type" : "keyword",
"copy_to" : [
"all"
]
},
"precinctNum" : {
"type" : "keyword"
},
"region" : {
"type" : "keyword",
"copy_to" : [
"all"
]
},
"regionCode" : {
"type" : "keyword"
},
"street" : {
"type" : "keyword",
"copy_to" : [
"all"
]
},
"streetCode" : {
"type" : "keyword"
}
}
}
},
"settings" : {
"index" : {
"mapping" : {
"nested_fields" : {
"limit" : "500"
},
"total_fields" : {
"limit" : "5000"
}
},
"number_of_shards" : "1",
"blocks" : {
"read_only_allow_delete" : "true"
},
"provided_name" : "drv",
"creation_date" : "1520939978173",
"analysis" : {
"filter" : {
"russianHunspell" : {
"locale" : "ru_RU",
"type" : "hunspell"
},
"russianStop" : {
"type" : "stop",
"stopwords" : "_russian_"
},
"shingleFilter" : {
"max_shingle_size" : "5",
"min_shingle_size" : "2",
"output_unigrams" : "true",
"type" : "shingle"
},
"ukrainianHunspell" : {
"locale" : "uk_UA",
"type" : "hunspell"
}
},
"analyzer" : {
"nGramAnalyzer" : {
"filter" : [
"lowercase"
],
"tokenizer" : "nGramTokenizer"
},
"ukrainian" : {
"type" : "ukrainian"
},
"default" : {
"type" : "ukrainian"
},
"russian" : {
"filter" : [
"lowercase",
"russianStop",
"russianHunspell"
],
"tokenizer" : "standard"
},
"ukrainianShingleAnalyzer" : {
"filter" : [
"lowercase",
"ukrainianHunspell",
"shingleFilter"
],
"tokenizer" : "ukrainianTokenizer"
},
"autocomplete" : {
"filter" : [
"lowercase"
],
"tokenizer" : "autocomplete"
},
"shingleAnalyzer" : {
"filter" : [
"shingleFilter",
"lowercase"
],
"tokenizer" : "ukrainianTokenizer"
},
"ukrainianWithoutProcessing" : {
"filter" : [
"lowercase"
],
"tokenizer" : "ukrainianTokenizer"
},
"empty" : {
"type" : "custom",
"char_filter" : [ ],
"tokenizer" : "standard"
}
},
"tokenizer" : {
"nGramTokenizer" : {
"type" : "nGram",
"min_gram" : "3",
"max_gram" : "8"
},
"autocomplete" : {
"token_chars" : [
"letter",
"digit"
],
"min_gram" : "2",
"type" : "edge_ngram",
"max_gram" : "20"
},
"ukrainianTokenizer" : {
"pattern" : "[А-ЯЄІЇҐа-яєіїґA-Za-z0-9']+",
"type" : "simple_pattern"
}
}
},
"number_of_replicas" : "1",
"uuid" : "NH10HHj8QQKfxCm-A5tNlQ",
"version" : {
"created" : "6020299"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment