-
Notifications
You must be signed in to change notification settings - Fork 0
Elasticsearch
Thierry Lam edited this page Sep 16, 2016
·
2 revisions
-
View index settings at
http://localhost:9200/index_name?pretty
-
Calculate index creation date from
http://localhost:9200/index_name?pretty
"settings": { "index": { "creation_date": "1473791401764"
Calculate the timestamp by removing the last 3 digits:
>>> from datetime import datetime
>>> datetime.fromtimestamp(1473791401)
>>> datetime.datetime(2016, 9, 13, 14, 30, 1)
-
Fold words with accents:
"settings": { "index": { "analysis": { "analyzer": { "word_analyzer": { "filter": ["asciifolding", "lowercase"], "tokenizer": "keyword" }