1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| mapping = { 'settings': { 'index': { 'number_of_replicas': 1, 'number_of_shards': 6, 'refresh_interval': '5s' } }, 'mappings': { '_default_': { '_all': { 'enabled': False } }, doc_type : { 'properties' : { 'day': { 'type': 'string', 'index': 'not_analyzed'}, 'time': { 'type': 'string', 'index': 'not_analyzed'}, 'nanoTime': { 'type': 'string', 'index': 'not_analyzed'}, 'created': { 'type': 'date', 'index': 'not_analyzed'}, 'app': { 'type': 'string', 'index': 'not_analyzed'}, 'host': { 'type': 'string', 'index': 'not_analyzed'}, 'thread': { 'type': 'string', 'index': 'not_analyzed'}, 'level': { 'type': 'string', 'index': 'not_analyzed'}, 'eventType': { 'type': 'string', 'index': 'not_analyzed'}, 'pack': { 'type': 'string', 'index': 'not_analyzed'}, 'clazz': { 'type': 'string', 'index': 'not_analyzed'}, 'line': { 'type': 'string', 'index': 'not_analyzed'}, 'messageSmart': { 'type': 'text', 'analyzer': 'ik_smart', 'search_analyzer': 'ik_smart', 'include_in_all': 'true', 'boost': 8}, 'messageMax': { 'type': 'text', 'analyzer': 'ik_max_word', 'search_analyzer': 'ik_max_word', 'include_in_all': 'true', 'boost': 8} } } } }
|