Dates and sizes graphs styling

This commit is contained in:
Simon
2018-06-19 19:44:04 -04:00
parent 8236b04c2e
commit 76ed03a82e
2 changed files with 5 additions and 6 deletions

View File

@@ -310,7 +310,7 @@ class ElasticSearchEngine(SearchEngine):
"dates": {
"date_histogram": {
"field": "mtime",
"interval": "1M",
"interval": "1y",
"min_doc_count": 5,
"format": "yyyy"
}
@@ -320,7 +320,6 @@ class ElasticSearchEngine(SearchEngine):
}, index=self.index_name)
es_stats = self.es.indices.stats(self.index_name)
print(size_and_date_histogram)
stats = dict()
stats["es_index_size"] = es_stats["indices"][self.index_name]["total"]["store"]["size_in_bytes"]