Skip to content

Instantly share code, notes, and snippets.

@AVVS
Created August 9, 2014 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AVVS/bef59f42760256e2b5e8 to your computer and use it in GitHub Desktop.
Save AVVS/bef59f42760256e2b5e8 to your computer and use it in GitHub Desktop.
{
"mappings": {
"profiles_v1": {
"dynamic": "strict",
"_all": {
"enabled": false
},
"_timestamp": {
"enabled": true
},
"properties": {
"about": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string"
}
}
},
"birthday": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "date",
"format": "yyyyMMdd||yyyy||MM-dd||yyyyMM"
}
}
},
"contacts": {
"type": "nested",
"dynamic": "false",
"properties": {
"fullName": {
"type": "string",
"similarity": "bm25_low_frequency"
},
"id": {
"type": "string",
"index": "not_analyzed"
},
"network": {
"type": "string",
"index": "not_analyzed"
},
"tag": {
"type": "string",
"index": "not_analyzed"
}
}
},
"education": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"degree": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"ngrams_middle": {
"type": "string",
"index_analyzer": "name_ngram_middle",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"degree": {
"type": "string",
"similarity": "bm25_low_frequency"
},
"ngrams_back": {
"type": "string",
"index_analyzer": "name_ngram_back",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_front": {
"type": "string",
"index_analyzer": "name_ngram_front",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
}
}
},
"end": {
"type": "date",
"format": "yyyyMMdd||yyyy||MM-dd||yyyyMM"
},
"network": {
"type": "string",
"index": "not_analyzed"
},
"school": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"ngrams_middle": {
"type": "string",
"index_analyzer": "name_ngram_middle",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_back": {
"type": "string",
"index_analyzer": "name_ngram_back",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"school": {
"type": "string",
"similarity": "bm25_low_frequency"
},
"raw": {
"type": "string",
"index": "not_analyzed"
},
"ngrams_front": {
"type": "string",
"index_analyzer": "name_ngram_front",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
}
}
},
"start": {
"type": "date",
"format": "yyyyMMdd||yyyy||MM-dd||yyyyMM"
}
}
},
"emails": {
"type": "string",
"fields": {
"email": {
"type": "string",
"analyzer": "email_analyzer"
},
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
}
}
},
"experience": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"company": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"ngrams_middle": {
"type": "string",
"index_analyzer": "name_ngram_middle",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_back": {
"type": "string",
"index_analyzer": "name_ngram_back",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"company": {
"type": "string",
"similarity": "bm25_low_frequency"
},
"raw": {
"type": "string",
"index": "not_analyzed"
},
"ngrams_front": {
"type": "string",
"index_analyzer": "name_ngram_front",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
}
}
},
"end": {
"type": "date",
"format": "yyyyMMdd||yyyy||MM-dd||yyyyMM"
},
"network": {
"type": "string",
"index": "not_analyzed"
},
"start": {
"type": "date",
"format": "yyyyMMdd||yyyy||MM-dd||yyyyMM"
},
"title": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"ngrams_middle": {
"type": "string",
"index_analyzer": "name_ngram_middle",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_back": {
"type": "string",
"index_analyzer": "name_ngram_back",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"raw": {
"type": "string",
"index": "not_analyzed"
},
"ngrams_front": {
"type": "string",
"index_analyzer": "name_ngram_front",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"title": {
"type": "string",
"similarity": "bm25_low_frequency"
}
}
}
}
},
"fullName": {
"type": "string",
"fields": {
"transform": {
"type": "string",
"analyzer": "transform_analyzer",
"similarity": "bm25_low_frequency"
},
"shingle_omit_norms": {
"type": "string",
"norms": {
"enabled": false
},
"index_analyzer": "index_shingle_analyzer",
"search_analyzer": "search_shingle_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_middle_omit_norms": {
"type": "string",
"norms": {
"enabled": false
},
"index_analyzer": "name_ngram_middle",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"exact": {
"type": "string",
"index": "not_analyzed"
},
"transform_omit_norms": {
"type": "string",
"norms": {
"enabled": false
},
"analyzer": "transform_analyzer",
"similarity": "bm25_low_frequency"
},
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"fullName_omit_norms": {
"type": "string",
"norms": {
"enabled": false
},
"similarity": "bm25_low_frequency"
},
"ngrams_front_omit_norms": {
"type": "string",
"norms": {
"enabled": false
},
"index_analyzer": "name_ngram_front",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_back": {
"type": "string",
"index_analyzer": "name_ngram_back",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_back_omit_norms": {
"type": "string",
"norms": {
"enabled": false
},
"index_analyzer": "name_ngram_back",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_middle": {
"type": "string",
"index_analyzer": "name_ngram_middle",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"shingle": {
"type": "string",
"index_analyzer": "index_shingle_analyzer",
"search_analyzer": "search_shingle_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_front": {
"type": "string",
"index_analyzer": "name_ngram_front",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"fullName": {
"type": "string",
"similarity": "bm25_low_frequency"
}
}
},
"groups": {
"type": "nested",
"dynamic": "false",
"properties": {
"id": {
"type": "string",
"include_in_all": false
},
"name": {
"type": "string",
"include_in_all": false
},
"network": {
"type": "string",
"index": "not_analyzed",
"include_in_all": false
}
}
},
"header": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"ngrams_middle": {
"type": "string",
"index_analyzer": "name_ngram_middle",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_back": {
"type": "string",
"index_analyzer": "name_ngram_back",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"raw": {
"type": "string",
"index": "not_analyzed"
},
"shingle": {
"type": "string",
"index_analyzer": "index_shingle_analyzer",
"search_analyzer": "search_shingle_analyzer",
"similarity": "bm25_low_frequency"
},
"header": {
"type": "string",
"similarity": "bm25_low_frequency"
},
"ngrams_front": {
"type": "string",
"index_analyzer": "name_ngram_front",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
}
}
},
"interests": {
"properties": {
"books": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"dynamic": "true",
"properties": {
"link": {
"type": "string",
"analyzer": "email_analyzer"
},
"tag": {
"type": "string",
"fields": {
"tag": {
"type": "string",
"index": "not_analyzed"
},
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
}
}
},
"title": {
"type": "string"
}
}
}
}
},
"film": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"dynamic": "true",
"properties": {
"tag": {
"type": "string",
"fields": {
"tag": {
"type": "string",
"index": "not_analyzed"
},
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
}
}
},
"title": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"raw": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
},
"games": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"dynamic": "true",
"properties": {
"link": {
"type": "string",
"analyzer": "email_analyzer"
},
"title": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"raw": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
},
"movies": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"dynamic": "true",
"properties": {
"link": {
"type": "string",
"analyzer": "email_analyzer"
},
"title": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"raw": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
},
"music": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"dynamic": "true",
"properties": {
"link": {
"type": "string",
"analyzer": "email_analyzer"
},
"tag": {
"type": "string",
"fields": {
"tag": {
"type": "string",
"index": "not_analyzed"
},
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
}
}
},
"title": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"raw": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
},
"other": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"dynamic": "true",
"properties": {
"link": {
"type": "string",
"analyzer": "email_analyzer"
},
"tag": {
"type": "string",
"fields": {
"tag": {
"type": "string",
"index": "not_analyzed"
},
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
}
}
},
"title": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"raw": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
},
"spotify": {
"type": "nested",
"include_in_parent": true,
"properties": {
"artist": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"raw": {
"type": "string",
"index": "not_analyzed"
},
"artist": {
"type": "string"
}
}
},
"song": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"raw": {
"type": "string",
"index": "not_analyzed"
},
"song": {
"type": "string"
}
}
}
}
}
}
},
"languages": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
}
}
},
"links": {
"type": "string",
"index": "not_analyzed"
},
"merged_by": {
"type": "string",
"index": "not_analyzed"
},
"networks": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"id": {
"type": "string",
"fields": {
"exact": {
"type": "string",
"index": "not_analyzed"
},
"id": {
"type": "string"
}
}
},
"link": {
"type": "string",
"index": "not_analyzed"
},
"network": {
"type": "string",
"index": "not_analyzed"
},
"timestamp": {
"type": "date",
"format": "basic_date_time"
}
}
},
"phones": {
"type": "string",
"index": "not_analyzed"
},
"pictures": {
"type": "nested",
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"tag": {
"type": "string"
},
"url": {
"type": "string",
"analyzer": "email_analyzer"
}
}
},
"places": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"type": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"raw": {
"type": "string",
"index": "not_analyzed"
}
}
},
"value": {
"type": "string",
"fields": {
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
}
}
}
}
},
"relations": {
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"index": "not_analyzed"
}
}
},
"score": {
"type": "double"
},
"sex": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string"
}
}
},
"skills": {
"type": "nested",
"include_in_parent": true,
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"fields": {
"value": {
"type": "string",
"similarity": "bm25_low_frequency"
},
"completion": {
"type": "completion",
"analyzer": "simple_whitespace",
"payloads": false,
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"ngrams_back": {
"type": "string",
"index_analyzer": "name_ngram_back",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"ngrams_middle": {
"type": "string",
"index_analyzer": "name_ngram_middle",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
},
"raw": {
"type": "string",
"index": "not_analyzed"
},
"ngrams_front": {
"type": "string",
"index_analyzer": "name_ngram_front",
"search_analyzer": "search_ngram_analyzer",
"similarity": "bm25_low_frequency"
}
}
}
}
},
"src": {
"type": "string",
"index": "not_analyzed"
},
"videos": {
"type": "nested",
"dynamic": "false",
"properties": {
"network": {
"type": "string",
"index": "not_analyzed",
"include_in_all": false
},
"url": {
"type": "string",
"index": "not_analyzed",
"include_in_all": false
}
}
}
}
}
}
}
{
"settings": {
"index": {
"similarity": {
"bm25_low_frequency": {
"b": "0.1",
"type": "BM25",
"k1": "0.1"
}
},
"routing": {
"allocation": {
"total_shards_per_node": "15"
}
},
"auto_expand_replicas": "0",
"analysis": {
"filter": {
"shingle": {
"type": "shingle",
"max_shingle_size": "3",
"output_unigrams": "false"
},
"any_latin": {
"type": "icu_transform",
"id": "Any-Latin"
},
"ngrams_front": {
"max_gram": "50",
"min_gram": "2",
"type": "edgeNGram",
"side": "front"
},
"ngrams_middle": {
"min_gram": "4",
"type": "nGram",
"max_gram": "15"
},
"ngrams_back": {
"max_gram": "50",
"min_gram": "2",
"type": "edgeNGram",
"side": "back"
}
},
"analyzer": {
"simple_whitespace": {
"type": "custom",
"filter": [
"icu_folding"
],
"tokenizer": "whitespace"
},
"transform_analyzer": {
"type": "custom",
"filter": [
"standard",
"any_latin",
"icu_folding"
],
"tokenizer": "standard"
},
"name_ngram_back": {
"type": "custom",
"filter": [
"standard",
"icu_folding",
"ngrams_back"
],
"tokenizer": "whitespace"
},
"name_ngram_middle": {
"type": "custom",
"filter": [
"standard",
"icu_folding",
"ngrams_middle"
],
"tokenizer": "whitespace"
},
"name_ngram_front": {
"type": "custom",
"filter": [
"standard",
"icu_folding",
"ngrams_front"
],
"tokenizer": "whitespace"
},
"search_shingle_analyzer": {
"type": "custom",
"filter": [
"standard",
"icu_folding"
],
"tokenizer": "whitespace"
},
"email_analyzer": {
"type": "custom",
"filter": [
"standard",
"lowercase"
],
"tokenizer": "uax_url_email"
},
"search_ngram_analyzer": {
"type": "custom",
"filter": [
"standard",
"icu_folding"
],
"tokenizer": "whitespace"
},
"index_shingle_analyzer": {
"type": "custom",
"filter": [
"standard",
"icu_folding",
"shingle"
],
"tokenizer": "whitespace"
}
}
},
"number_of_replicas": "3",
"translog": {
"flush_threshold_ops": "100000",
"interval": "10s",
"flush_threshold_size": "500mb"
},
"number_of_shards": "144",
"refresh_interval": "-1"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment