# Empty index after restart

**URL:** <https://discuss.elastic.co/t/empty-index-after-restart/6013>\
**Category:** Elasticsearch\
**Created:** [November 29, 2011, 5:49pm UTC](https://discuss.elastic.co/t/empty-index-after-restart/6013 "2011-11-29T17:49:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlagorce](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vlagorce/32/2764_2.png) [@vlagorce](https://discuss.elastic.co/u/vlagorce)\
**Post date:** [November 29, 2011, 5:49pm UTC](https://discuss.elastic.co/t/empty-index-after-restart/6013/1 "2011-11-29T17:49:05Z")

</div>

Hello,

I don't undestand how to shutdown my embeded ES node and find the  
indexed document after restart.  
.I have a single node without replication (see config at the end).

I index a very small document successfully.  
I run a search and I found it.

I stop my server and restart it.  
I run the previous search again and I found nothing.

Whith Luke I can't see anything... before after restarting.

I have tried to run a flushRequest before closing the node, I have  
tried to not closing the node, ... What I am missing ?

{cluster.name=es._ **, path.home=${..appDir}/** /data/lucene/,  
index.analysis.analyzer.\*\*\*Analyzer.type=_\*\*\*\*\*.elasticsearch.analysis.**AnalyzerProvider,  
name=**, index.number\_of\_shards=1, gateway.local=TRACE,  
index.number\_of\_replicas=0, index.store.type=fs}

Regards,

I read this post ([http://elasticsearch-users.115913.n3.nabble.com/](http://elasticsearch-users.115913.n3.nabble.com/)  
Indexes-deleted-empty-on-cluster-restart-tp3169598p3192053.html) but  
it seems to me quite different.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 29, 2011, 6:16pm UTC](https://discuss.elastic.co/t/empty-index-after-restart/6013/2 "2011-11-29T18:16:13Z")

</div>

What do you see in the logging after restart? Specifically the  
gateway.local logging? Is the path.data location persist between restarts?

On Tue, Nov 29, 2011 at 7:49 PM, vlag [vlagorce@gmail.com](mailto:vlagorce@gmail.com) wrote:

> Hello,
> 
> I don't undestand how to shutdown my embeded ES node and find the  
> indexed document after restart.  
> .I have a single node without replication (see config at the end).
> 
> I index a very small document successfully.  
> I run a search and I found it.
> 
> I stop my server and restart it.  
> I run the previous search again and I found nothing.
> 
> Whith Luke I can't see anything... before after restarting.
> 
> I have tried to run a flushRequest before closing the node, I have  
> tried to not closing the node, ... What I am missing ?
> 
> {cluster.name=es.\*_ **, path.home=${..appDir}/** _/data/lucene/,
> 
> index.analysis.analyzer._ **Analyzer.type=** _\*\*\*.elasticsearch.analysis.**AnalyzerProvider,  
> name=**, index.number\_of\_shards=1, gateway.local=TRACE,  
> index.number\_of\_replicas=0, index.store.type=fs}
> 
> Regards,
> 
> I read this post ([http://elasticsearch-users.115913.n3.nabble.com/](http://elasticsearch-users.115913.n3.nabble.com/)  
> Indexes-deleted-empty-on-cluster-restart-tp3169598p3192053.html) but  
> it seems to me quite different.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:47am UTC](https://discuss.elastic.co/t/empty-index-after-restart/6013/3 "2017-07-06T03:47:03Z")

</div>


