5.3 KiB
PUT /social
{
"settings": {
"analysis": {
"filter": {
"hashtag_filter": {
"type": "word_delimiter",
"type_table": [
"# => ALPHANUM"
],
"split_on_numerics": "false",
"stem_english_possessive": "true",
"generate_number_parts": "false",
"catenate_all": "true"
},
"edge_ngram": {
"side": "front",
"max_gram": 30,
"min_gram": 2,
"type": "edgeNGram"
},
"stopwords_eng_remover": {
"type": "stop",
"stopwords": "_english_"
}
},
"tokenizer": {
"filename": {
"pattern": "[^\\p{L}\\d]+",
"type": "pattern"
}
},
"analyzer": {
"filename_search": {
"tokenizer": "filename",
"filter": [
"lowercase",
"asciifolding"
]
},
"filename_index": {
"tokenizer": "filename",
"filter": [
"lowercase",
"edge_ngram",
"asciifolding"
]
},
"feed_comment_text_index_analyzer": {
"type": "custom",
"char_filter": [
"html_strip"
],
"tokenizer": "whitespace",
"filter": [
"lowercase",
"hashtag_filter",
"edge_ngram",
"asciifolding",
"stopwords_eng_remover"
]
},
"feed_comment_text_search_analyzer": {
"type": "custom",
"char_filter": [
"html_strip"
],
"tokenizer": "whitespace",
"filter": [
"lowercase",
"hashtag_filter",
"asciifolding",
"stopwords_eng_remover"
]
},
"author_analyzer": {
"tokenizer": "whitespace",
"filter": [
"asciifolding",
"lowercase"
]
}
}
}
},
"mappings": {
"enhanced_feeds": {
"_timestamp": {
"enabled": true,
"ignore_missing": false
},
"properties": {
"attachments": {
"properties": {
"description": {
"type": "string",
"index": "no"
},
"id": {
"type": "string",
"index": "no"
},
"mimeType": {
"type": "string",
"index": "no"
},
"name": {
"type": "string",
"analyzer": "filename_index",
"search_analyzer": "filename_search"
},
"thumbnailURL": {
"type": "string",
"index": "no"
},
"uri": {
"type": "string",
"index": "no"
}
}
},
"comments": {
"properties": {
"edit": {
"type": "boolean",
"index": "no"
},
"feedid": {
"type": "string",
"index": "no"
},
"fullName": {
"type": "string",
"analyzer": "author_analyzer"
},
"key": {
"type": "string",
"index": "no"
},
"lastEditTime": {
"type": "long",
"index": "no"
},
"text": {
"type": "string",
"analyzer": "feed_comment_text_index_analyzer",
"search_analyzer": "feed_comment_text_search_analyzer"
},
"thumbnailURL": {
"type": "string",
"index": "no"
},
"time": {
"type": "long",
"index": "no"
},
"userid": {
"type": "string",
"index": "no"
}
}
},
"feed": {
"properties": {
"applicationFeed": {
"type": "boolean",
"index": "no"
},
"commentsNo": {
"type": "string",
"index": "no"
},
"description": {
"type": "string",
"analyzer": "feed_comment_text_index_analyzer",
"search_analyzer": "feed_comment_text_search_analyzer"
},
"email": {
"type": "string",
"index": "no"
},
"entityId": {
"type": "string",
"index": "no"
},
"fullName": {
"type": "string",
"analyzer": "author_analyzer"
},
"key": {
"type": "string",
"index": "no"
},
"likesNo": {
"type": "string",
"index": "no"
},
"linkDescription": {
"type": "string",
"index": "no"
},
"linkHost": {
"type": "string",
"index": "no"
},
"linkTitle": {
"type": "string",
"analyzer": "filename_index",
"search_analyzer": "filename_search"
},
"multiFileUpload": {
"type": "boolean",
"index": "no"
},
"privacy": {
"type": "string",
"index": "no"
},
"thumbnailURL": {
"type": "string",
"index": "no"
},
"time": {
"type": "long",
"index": "no"
},
"type": {
"type": "string",
"index": "no"
},
"uri": {
"type": "string",
"index": "no"
},
"uriThumbnail": {
"type": "string",
"index": "no"
},
"vreid": {
"type": "string",
"index": "not_analyzed"
}
}
},
"liked": {
"type": "boolean",
"index": "no"
},
"users": {
"type": "boolean",
"index": "no"
}
}
}
}
}