I've a quick question about a behavior of elasticsearch indexes.
So, I use logstash to import data into my AWS elasticsearch cluster.
When I create a normal index and insert, lets say, 10 rows, everything works fine. docs.count tells me that I have 10 rows, _search request works like normal, everything is fine.
When I do the exact same insert, but prefix the index name by a dot ".", it seems like it's working, but now my docs.count tell me 0. And when I try to GET _search the data, I've nothing inserted. (hits.total : 0)
Why does that happens ? I didn't find anything special on the internet about prefixing the index name by a ".".
What @Christian_Dahlqvist says is right, Elasticsearch generally uses dot-prefixed index names to distinguish "internal" from "external" indices. It's probably best to avoid dot-prefixed names for your own indices.
However, I do not think they behave specially in this regard:
All indices will report that they contain no documents until they are first refreshed. Normally a refresh happens automatically after some time, but it might be disabled by a template that sets refresh_interval to -1. Are you sure that the index still looks empty after a refresh?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.