# Missing Documents

**URL:** <https://discuss.elastic.co/t/missing-documents/19609>\
**Category:** Elasticsearch\
**Created:** [September 3, 2014, 9:57pm UTC](https://discuss.elastic.co/t/missing-documents/19609 "2014-09-03T21:57:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luan\_Garrido](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@Luan\_Garrido](https://discuss.elastic.co/u/Luan_Garrido)\
**Post date:** [September 3, 2014, 9:57pm UTC](https://discuss.elastic.co/t/missing-documents/19609/1 "2014-09-03T21:57:12Z")

</div>

Hi all,

Im new at here, and Im facing a problem.  
First of all, I need to say that I took a look before send this post, and I  
did not find the answer.  
Im using normally elastichsearch through JAVA API, and I indexed 20  
documents.  
After some searchs in theese, it become only 13 documents.... I really dont  
know why.  
Can someone help me? I just dont know what to do.

Thanks =D

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [September 4, 2014, 12:58am UTC](https://discuss.elastic.co/t/missing-documents/19609/2 "2014-09-04T00:58:14Z")

</div>

Hello Luan ,

This is not possible.  
Either you have deleted some documents.  
Or there was another machine in the cluster to which the index shared the  
documents.  
And when the other machine went down , you lose data with it.

Hence I would recommend to add a unique name here - cluster.name ( This is  
a config variable in config/elasticsearch.yml file)  
If the problem persist , please paste the entire set of steps you followed.

Thanks  
Vineeth

On Thu, Sep 4, 2014 at 3:27 AM, Luan Garrido [lbgarrido89@gmail.com](mailto:lbgarrido89@gmail.com) wrote:

> Hi all,
> 
> Im new at here, and Im facing a problem.  
> First of all, I need to say that I took a look before send this post, and  
> I did not find the answer.  
> Im using normally elastichsearch through JAVA API, and I indexed 20  
> documents.  
> After some searchs in theese, it become only 13 documents.... I really  
> dont know why.  
> Can someone help me? I just dont know what to do.
> 
> Thanks =D
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L\_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Luan\_Garrido](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@Luan\_Garrido](https://discuss.elastic.co/u/Luan_Garrido)\
**Post date:** [September 4, 2014, 10:28am UTC](https://discuss.elastic.co/t/missing-documents/19609/3 "2014-09-04T10:28:39Z")

</div>

Hi, Im waiting until it happens again, because it is not every time.  
I have just one pc on my cluster =D.

Can you answer others questions until this?  
1- Im using JAVA API, and Im deleting index using  
"client().admin().indices().delete(new  
DeleteIndexRequest("\_all")).actionGet();". This is really removing all  
indexes, but, when I restart ES theese index come back. I also tried to  
remove manually it from the directories, and nothing happened.

Last question, I promisse =D  
2- Im using a brazilian analyzer to index my documents, something like this:

"local5" : {  
"settings" : {  
"index" : {  
"uuid" : "1qCOtEZQQ4Cd6lbu-0GB5A",  
"analysis" : {  
"analyzer" : {  
"brazilian" : {  
"filter" : ["lowercase", "brazilian\_stop", "brazilian\_stemmer"],  
"tokenizer" : "standard"  
}  
},  
"filter" : {  
"brazilian\_stop" : {  
"type" : "stop",  
"stopwords" : "_brazilian_"  
},  
"brazilian\_stemmer" : {  
"type" : "stemmer",  
"language" : "brazilian"  
}  
}  
},  
"number\_of\_replicas" : "1",  
"number\_of\_shards" : "5",  
"version" : {  
"created" : "1030299"  
}  
}  
}  
}

And Im tring to recovever theese documents using  
client.prepareSearch("local5").setType("\_all").setQuery(QueryBuilders.queryString(KEY+":"+VALUE)).

Im not able to identify words like "melhorias"(plural) using  
"melhoria"(singular).

Can yo help me? I really appretiace. I didnt sleep until now hahahahaha

* * *

Luan Barbosa Garrido

CAPGov - Centro de Apoio a Políticas de Governo  
PESC / COPPE / UFRJ

Bacharel em Ciência da Computação - DCC / IM / UFRJ  
Mestrando em Banco de Dados - PESC / COPPE / UFRJ

2014-09-03 21:58 GMT-03:00 vineeth mohan [vm.vineethmohan@gmail.com](mailto:vm.vineethmohan@gmail.com):

> Hello Luan ,
> 
> This is not possible.  
> Either you have deleted some documents.  
> Or there was another machine in the cluster to which the index shared the  
> documents.  
> And when the other machine went down , you lose data with it.
> 
> Hence I would recommend to add a unique name here - cluster.name ( This  
> is a config variable in config/elasticsearch.yml file)  
> If the problem persist , please paste the entire set of steps you  
> followed.
> 
> Thanks  
> Vineeth
> 
> On Thu, Sep 4, 2014 at 3:27 AM, Luan Garrido [lbgarrido89@gmail.com](mailto:lbgarrido89@gmail.com)  
> wrote:
> 
> > Hi all,
> > 
> > Im new at here, and Im facing a problem.  
> > First of all, I need to say that I took a look before send this post, and  
> > I did not find the answer.  
> > Im using normally elastichsearch through JAVA API, and I indexed 20  
> > documents.  
> > After some searchs in theese, it become only 13 documents.... I really  
> > dont know why.  
> > Can someone help me? I just dont know what to do.
> > 
> > Thanks =D
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > 
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/QhpNIabG2es/unsubscribe](https://groups.google.com/d/topic/elasticsearch/QhpNIabG2es/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L\_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L\_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALESzpRoFf65qM\_p3%3DbAo0nHXfhiY5KAS1hiHZwf7%3DbbzKn%2B3w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALESzpRoFf65qM_p3%3DbAo0nHXfhiY5KAS1hiHZwf7%3DbbzKn%2B3w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Luan\_Garrido](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@Luan\_Garrido](https://discuss.elastic.co/u/Luan_Garrido)\
**Post date:** [September 4, 2014, 10:42am UTC](https://discuss.elastic.co/t/missing-documents/19609/4 "2014-09-04T10:42:47Z")

</div>

Hi, Im waiting until it happens again, because it is not every time.  
I have just one pc on my cluster =D.

Can you answer others questions until this?  
1- Im using JAVA API, and Im deleting index using  
"client().admin().indices().delete(new  
DeleteIndexRequest("\_all")).actionGet();". This is really removing all  
indexes, but, when I restart ES theese index come back. I also tried to  
remove manually it from the directories, and nothing happened.

Last question, I promisse =D  
2- Im using a brazilian analyzer to index my documents, something like this:

"local5" : {  
"settings" : {  
"index" : {  
"uuid" : "1qCOtEZQQ4Cd6lbu-0GB5A",  
"analysis" : {  
"analyzer" : {  
"brazilian" : {  
"filter" : ["lowercase", "brazilian\_stop", "brazilian\_stemmer"],  
"tokenizer" : "standard"  
}  
},  
"filter" : {  
"brazilian\_stop" : {  
"type" : "stop",  
"stopwords" : "_brazilian_"  
},  
"brazilian\_stemmer" : {  
"type" : "stemmer",  
"language" : "brazilian"  
}  
}  
},  
"number\_of\_replicas" : "1",  
"number\_of\_shards" : "5",  
"version" : {  
"created" : "1030299"  
}  
}  
}  
}

And Im tring to recovever theese documents using client.prepareSearch("local5").setType("\_all").setQuery(QueryBuilders.queryString(KEY+":"+VALUE)).

Im not able to identify words like "melhorias"(plural) using "melhoria"(singular).

Can yo help me? I really appretiace. I didnt sleep until now hahahahaha

Em quarta-feira, 3 de setembro de 2014 21h58min34s UTC-3, vineeth mohan  
escreveu:

> Hello Luan ,
> 
> This is not possible.  
> Either you have deleted some documents.  
> Or there was another machine in the cluster to which the index shared the  
> documents.  
> And when the other machine went down , you lose data with it.
> 
> Hence I would recommend to add a unique name here - cluster.name ( This  
> is a config variable in config/elasticsearch.yml file)  
> If the problem persist , please paste the entire set of steps you  
> followed.
> 
> Thanks  
> Vineeth
> 
> On Thu, Sep 4, 2014 at 3:27 AM, Luan Garrido \<[lbgar...@gmail.com](mailto:lbgar...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Hi all,
> > 
> > Im new at here, and Im facing a problem.  
> > First of all, I need to say that I took a look before send this post, and  
> > I did not find the answer.  
> > Im using normally elastichsearch through JAVA API, and I indexed 20  
> > documents.  
> > After some searchs in theese, it become only 13 documents.... I really  
> > dont know why.  
> > Can someone help me? I just dont know what to do.
> > 
> > Thanks =D
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2610a7ad-3605-4695-a9a2-3213152b9db2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2610a7ad-3605-4695-a9a2-3213152b9db2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [September 4, 2014, 1:15pm UTC](https://discuss.elastic.co/t/missing-documents/19609/5 "2014-09-04T13:15:29Z")

</div>

1. How did you come to the conclusion that every index was deleted ? If  
you are using head or some othedr UI , please paste the screenshot.
2. Which folder are you deleting to remove the data ?
3. Please check if multiple instances of Elasticsearch is running on  
your machine

Thanks  
Vineeth

On Thu, Sep 4, 2014 at 4:12 PM, Luan Garrido [lbgarrido89@gmail.com](mailto:lbgarrido89@gmail.com) wrote:

> Hi, Im waiting until it happens again, because it is not every time.  
> I have just one pc on my cluster =D.
> 
> Can you answer others questions until this?  
> 1- Im using JAVA API, and Im deleting index using  
> "client().admin().indices().delete(new DeleteIndexRequest("\_all")).actionGet();".  
> This is really removing all indexes, but, when I restart ES theese index  
> come back. I also tried to remove manually it from the directories, and  
> nothing happened.
> 
> Last question, I promisse =D  
> 2- Im using a brazilian analyzer to index my documents, something like  
> this:
> 
> "local5" : {  
> "settings" : {  
> "index" : {  
> "uuid" : "1qCOtEZQQ4Cd6lbu-0GB5A",  
> "analysis" : {  
> "analyzer" : {  
> "brazilian" : {  
> "filter" : ["lowercase", "brazilian\_stop", "brazilian\_stemmer"],  
> "tokenizer" : "standard"  
> }  
> },  
> "filter" : {  
> "brazilian\_stop" : {  
> "type" : "stop",  
> "stopwords" : "_brazilian_"  
> },  
> "brazilian\_stemmer" : {  
> "type" : "stemmer",  
> "language" : "brazilian"  
> }  
> }  
> },  
> "number\_of\_replicas" : "1",  
> "number\_of\_shards" : "5",  
> "version" : {  
> "created" : "1030299"  
> }  
> }  
> }  
> }
> 
> And Im tring to recovever theese documents using client.prepareSearch("local5").setType("\_all").setQuery(QueryBuilders.queryString(KEY+":"+VALUE)).
> 
> Im not able to identify words like "melhorias"(plural) using "melhoria"(singular).
> 
> Can yo help me? I really appretiace. I didnt sleep until now hahahahaha
> 
> Em quarta-feira, 3 de setembro de 2014 21h58min34s UTC-3, vineeth mohan  
> escreveu:
> 
> > Hello Luan ,
> > 
> > This is not possible.  
> > Either you have deleted some documents.  
> > Or there was another machine in the cluster to which the index shared the  
> > documents.  
> > And when the other machine went down , you lose data with it.
> > 
> > Hence I would recommend to add a unique name here - cluster.name ( This  
> > is a config variable in config/elasticsearch.yml file)  
> > If the problem persist , please paste the entire set of steps you  
> > followed.
> > 
> > Thanks  
> > Vineeth
> > 
> > On Thu, Sep 4, 2014 at 3:27 AM, Luan Garrido [lbgar...@gmail.com](mailto:lbgar...@gmail.com) wrote:
> > 
> > > Hi all,
> > > 
> > > Im new at here, and Im facing a problem.  
> > > First of all, I need to say that I took a look before send this post,  
> > > and I did not find the answer.  
> > > Im using normally elastichsearch through JAVA API, and I indexed 20  
> > > documents.  
> > > After some searchs in theese, it become only 13 documents.... I really  
> > > dont know why.  
> > > Can someone help me? I just dont know what to do.
> > > 
> > > Thanks =D
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > 
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/2610a7ad-3605-4695-a9a2-3213152b9db2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2610a7ad-3605-4695-a9a2-3213152b9db2%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/2610a7ad-3605-4695-a9a2-3213152b9db2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2610a7ad-3605-4695-a9a2-3213152b9db2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5nMe%2BAe1zT4SPDkuY8PtJVX\_KVMCQaqUriD\_JEGFhpGtg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5nMe%2BAe1zT4SPDkuY8PtJVX_KVMCQaqUriD_JEGFhpGtg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Luan\_Garrido](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@Luan\_Garrido](https://discuss.elastic.co/u/Luan_Garrido)\
**Post date:** [September 4, 2014, 7:55pm UTC](https://discuss.elastic.co/t/missing-documents/19609/6 "2014-09-04T19:55:06Z")

</div>

Hi Vineeth,  
I made it. I manually deleted the folders in $ES$/data/elasticsearch, but  
it have being created every time.  
I took a look, We need to delete it from project workspace and from jboss  
data.  
Remove theese 3 directory and everything will work =D  
Thank you

Em quinta-feira, 4 de setembro de 2014 10h15min40s UTC-3, vineeth mohan  
escreveu:

> 1. How did you come to the conclusion that every index was deleted ?  
> If you are using head or some othedr UI , please paste the screenshot.
> 2. Which folder are you deleting to remove the data ?
> 3. Please check if multiple instances of Elasticsearch is running on  
> your machine
> 
> Thanks  
> Vineeth
> 
> On Thu, Sep 4, 2014 at 4:12 PM, Luan Garrido \<[lbgar...@gmail.com](mailto:lbgar...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Hi, Im waiting until it happens again, because it is not every time.  
> > I have just one pc on my cluster =D.
> > 
> > Can you answer others questions until this?  
> > 1- Im using JAVA API, and Im deleting index using  
> > "client().admin().indices().delete(new DeleteIndexRequest("\_all")).actionGet();".  
> > This is really removing all indexes, but, when I restart ES theese index  
> > come back. I also tried to remove manually it from the directories, and  
> > nothing happened.
> > 
> > Last question, I promisse =D  
> > 2- Im using a brazilian analyzer to index my documents, something like  
> > this:
> > 
> > "local5" : {  
> > "settings" : {  
> > "index" : {  
> > "uuid" : "1qCOtEZQQ4Cd6lbu-0GB5A",  
> > "analysis" : {  
> > "analyzer" : {  
> > "brazilian" : {  
> > "filter" : ["lowercase", "brazilian\_stop", "brazilian\_stemmer"],  
> > "tokenizer" : "standard"  
> > }  
> > },  
> > "filter" : {  
> > "brazilian\_stop" : {  
> > "type" : "stop",  
> > "stopwords" : "_brazilian_"  
> > },  
> > "brazilian\_stemmer" : {  
> > "type" : "stemmer",  
> > "language" : "brazilian"  
> > }  
> > }  
> > },  
> > "number\_of\_replicas" : "1",  
> > "number\_of\_shards" : "5",  
> > "version" : {  
> > "created" : "1030299"  
> > }  
> > }  
> > }  
> > }
> > 
> > And Im tring to recovever theese documents using client.prepareSearch("local5").setType("\_all").setQuery(QueryBuilders.queryString(KEY+":"+VALUE)).
> > 
> > Im not able to identify words like "melhorias"(plural) using "melhoria"(singular).
> > 
> > Can yo help me? I really appretiace. I didnt sleep until now hahahahaha
> > 
> > Em quarta-feira, 3 de setembro de 2014 21h58min34s UTC-3, vineeth mohan  
> > escreveu:
> > 
> > > Hello Luan ,
> > > 
> > > This is not possible.  
> > > Either you have deleted some documents.  
> > > Or there was another machine in the cluster to which the index shared  
> > > the documents.  
> > > And when the other machine went down , you lose data with it.
> > > 
> > > Hence I would recommend to add a unique name here - cluster.name ( This  
> > > is a config variable in config/elasticsearch.yml file)  
> > > If the problem persist , please paste the entire set of steps you  
> > > followed.
> > > 
> > > Thanks  
> > > Vineeth
> > > 
> > > On Thu, Sep 4, 2014 at 3:27 AM, Luan Garrido [lbgar...@gmail.com](mailto:lbgar...@gmail.com) wrote:
> > > 
> > > > Hi all,
> > > > 
> > > > Im new at here, and Im facing a problem.  
> > > > First of all, I need to say that I took a look before send this post,  
> > > > and I did not find the answer.  
> > > > Im using normally elastichsearch through JAVA API, and I indexed 20  
> > > > documents.  
> > > > After some searchs in theese, it become only 13 documents.... I really  
> > > > dont know why.  
> > > > Can someone help me? I just dont know what to do.
> > > > 
> > > > Thanks =D
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > 
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/2610a7ad-3605-4695-a9a2-3213152b9db2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2610a7ad-3605-4695-a9a2-3213152b9db2%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/2610a7ad-3605-4695-a9a2-3213152b9db2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2610a7ad-3605-4695-a9a2-3213152b9db2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8c07cc22-b873-4b4f-8deb-a6bbcfb74371%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8c07cc22-b873-4b4f-8deb-a6bbcfb74371%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 5, 2014, 4:44am UTC](https://discuss.elastic.co/t/missing-documents/19609/7 "2014-09-05T04:44:36Z")

</div>

Does this really work?

client().admin().indices().delete(new DeleteIndexRequest("\_all")).actionGet();

Was expecting something like :  
client().admin().indices().delete(new DeleteIndexRequest("\_all")).get();  
Or  
client().admin().indices().delete(new DeleteIndexRequest("\_all")).execute().actionGet();

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 4 sept. 2014 à 12:28, Luan Garrido [lbgarrido89@gmail.com](mailto:lbgarrido89@gmail.com) a écrit :

Hi, Im waiting until it happens again, because it is not every time.  
I have just one pc on my cluster =D.

Can you answer others questions until this?  
1- Im using JAVA API, and Im deleting index using "client().admin().indices().delete(new DeleteIndexRequest("\_all")).actionGet();". This is really removing all indexes, but, when I restart ES theese index come back. I also tried to remove manually it from the directories, and nothing happened.

Last question, I promisse =D  
2- Im using a brazilian analyzer to index my documents, something like this:  
"local5" : {  
"settings" : {  
"index" : {  
"uuid" : "1qCOtEZQQ4Cd6lbu-0GB5A",  
"analysis" : {  
"analyzer" : {  
"brazilian" : {  
"filter" : ["lowercase", "brazilian\_stop", "brazilian\_stemmer"],  
"tokenizer" : "standard"  
}  
},  
"filter" : {  
"brazilian\_stop" : {  
"type" : "stop",  
"stopwords" : "_brazilian_"  
},  
"brazilian\_stemmer" : {  
"type" : "stemmer",  
"language" : "brazilian"  
}  
}  
},  
"number\_of\_replicas" : "1",  
"number\_of\_shards" : "5",  
"version" : {  
"created" : "1030299"  
}  
}  
}  
}  
And Im tring to recovever theese documents using client.prepareSearch("local5").setType("\_all").setQuery(QueryBuilders.queryString(KEY+":"+VALUE)).  
Im not able to identify words like "melhorias"(plural) using "melhoria"(singular).  
Can yo help me? I really appretiace. I didnt sleep until now hahahahaha

* * *

Luan Barbosa Garrido

CAPGov - Centro de Apoio a Políticas de Governo  
PESC / COPPE / UFRJ

Bacharel em Ciência da Computação - DCC / IM / UFRJ  
Mestrando em Banco de Dados - PESC / COPPE / UFRJ

2014-09-03 21:58 GMT-03:00 vineeth mohan [vm.vineethmohan@gmail.com](mailto:vm.vineethmohan@gmail.com):

> Hello Luan ,
> 
> This is not possible.  
> Either you have deleted some documents.  
> Or there was another machine in the cluster to which the index shared the documents.  
> And when the other machine went down , you lose data with it.
> 
> Hence I would recommend to add a unique name here - cluster.name ( This is a config variable in config/elasticsearch.yml file)  
> If the problem persist , please paste the entire set of steps you followed.
> 
> Thanks  
> Vineeth
> 
> > On Thu, Sep 4, 2014 at 3:27 AM, Luan Garrido [lbgarrido89@gmail.com](mailto:lbgarrido89@gmail.com) wrote:  
> > Hi all,
> > 
> > Im new at here, and Im facing a problem.  
> > First of all, I need to say that I took a look before send this post, and I did not find the answer.  
> > Im using normally elastichsearch through JAVA API, and I indexed 20 documents.  
> > After some searchs in theese, it become only 13 documents.... I really dont know why.  
> > Can someone help me? I just dont know what to do.
> > 
> > ## Thanks =D
> > 
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > 
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/QhpNIabG2es/unsubscribe](https://groups.google.com/d/topic/elasticsearch/QhpNIabG2es/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L\_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com).
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALESzpRoFf65qM\_p3%3DbAo0nHXfhiY5KAS1hiHZwf7%3DbbzKn%2B3w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALESzpRoFf65qM_p3%3DbAo0nHXfhiY5KAS1hiHZwf7%3DbbzKn%2B3w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/E20E27C9-44B4-4E42-95B9-86E1DE817AB4%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/E20E27C9-44B4-4E42-95B9-86E1DE817AB4%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Luan\_Garrido](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@Luan\_Garrido](https://discuss.elastic.co/u/Luan_Garrido)\
**Post date:** [September 5, 2014, 11:10am UTC](https://discuss.elastic.co/t/missing-documents/19609/8 "2014-09-05T11:10:09Z")

</div>

Yes, It worked, but it only deleted the directories on %ES%/data/...  
When I removed the others that I talk, they didnt come back.

* * *

Luan Barbosa Garrido

CAPGov - Centro de Apoio a Políticas de Governo  
PESC / COPPE / UFRJ

Bacharel em Ciência da Computação - DCC / IM / UFRJ  
Mestrando em Banco de Dados - PESC / COPPE / UFRJ

2014-09-05 1:44 GMT-03:00 David Pilato [david@pilato.fr](mailto:david@pilato.fr):

> Does this really work?
> 
> client().admin().indices().delete(new  
> DeleteIndexRequest("\_all")).actionGet();
> 
> Was expecting something like :  
> client().admin().indices().delete(new DeleteIndexRequest("\_all")).get();  
> Or  
> client().admin().indices().delete(new  
> DeleteIndexRequest("\_all")).execute().actionGet();
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 4 sept. 2014 à 12:28, Luan Garrido [lbgarrido89@gmail.com](mailto:lbgarrido89@gmail.com) a écrit :
> 
> Hi, Im waiting until it happens again, because it is not every time.  
> I have just one pc on my cluster =D.
> 
> Can you answer others questions until this?  
> 1- Im using JAVA API, and Im deleting index using  
> "client().admin().indices().delete(new  
> DeleteIndexRequest("\_all")).actionGet();". This is really removing all  
> indexes, but, when I restart ES theese index come back. I also tried to  
> remove manually it from the directories, and nothing happened.
> 
> Last question, I promisse =D  
> 2- Im using a brazilian analyzer to index my documents, something like  
> this:
> 
> "local5" : {  
> "settings" : {  
> "index" : {  
> "uuid" : "1qCOtEZQQ4Cd6lbu-0GB5A",  
> "analysis" : {  
> "analyzer" : {  
> "brazilian" : {  
> "filter" : ["lowercase", "brazilian\_stop", "brazilian\_stemmer"],  
> "tokenizer" : "standard"  
> }  
> },  
> "filter" : {  
> "brazilian\_stop" : {  
> "type" : "stop",  
> "stopwords" : "_brazilian_"  
> },  
> "brazilian\_stemmer" : {  
> "type" : "stemmer",  
> "language" : "brazilian"  
> }  
> }  
> },  
> "number\_of\_replicas" : "1",  
> "number\_of\_shards" : "5",  
> "version" : {  
> "created" : "1030299"  
> }  
> }  
> }  
> }
> 
> And Im tring to recovever theese documents using client.prepareSearch("local5").setType("\_all").setQuery(QueryBuilders.queryString(KEY+":"+VALUE)).
> 
> Im not able to identify words like "melhorias"(plural) using "melhoria"(singular).
> 
> Can yo help me? I really appretiace. I didnt sleep until now hahahahaha
> 
> * * *
> 
> Luan Barbosa Garrido
> 
> CAPGov - Centro de Apoio a Políticas de Governo  
> PESC / COPPE / UFRJ
> 
> Bacharel em Ciência da Computação - DCC / IM / UFRJ  
> Mestrando em Banco de Dados - PESC / COPPE / UFRJ
> 
> 2014-09-03 21:58 GMT-03:00 vineeth mohan [vm.vineethmohan@gmail.com](mailto:vm.vineethmohan@gmail.com):
> 
> > Hello Luan ,
> > 
> > This is not possible.  
> > Either you have deleted some documents.  
> > Or there was another machine in the cluster to which the index shared the  
> > documents.  
> > And when the other machine went down , you lose data with it.
> > 
> > Hence I would recommend to add a unique name here - cluster.name ( This  
> > is a config variable in config/elasticsearch.yml file)  
> > If the problem persist , please paste the entire set of steps you  
> > followed.
> > 
> > Thanks  
> > Vineeth
> > 
> > On Thu, Sep 4, 2014 at 3:27 AM, Luan Garrido [lbgarrido89@gmail.com](mailto:lbgarrido89@gmail.com)  
> > wrote:
> > 
> > > Hi all,
> > > 
> > > Im new at here, and Im facing a problem.  
> > > First of all, I need to say that I took a look before send this post,  
> > > and I did not find the answer.  
> > > Im using normally elastichsearch through JAVA API, and I indexed 20  
> > > documents.  
> > > After some searchs in theese, it become only 13 documents.... I really  
> > > dont know why.  
> > > Can someone help me? I just dont know what to do.
> > > 
> > > Thanks =D
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > > 
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/QhpNIabG2es/unsubscribe](https://groups.google.com/d/topic/elasticsearch/QhpNIabG2es/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L\_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L\_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m-g7vzzqgn%2BKT7cai-L_E%3D6eisdbyPTbo8Zc5skc93WQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CALESzpRoFf65qM\_p3%3DbAo0nHXfhiY5KAS1hiHZwf7%3DbbzKn%2B3w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALESzpRoFf65qM_p3%3DbAo0nHXfhiY5KAS1hiHZwf7%3DbbzKn%2B3w%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CALESzpRoFf65qM\_p3%3DbAo0nHXfhiY5KAS1hiHZwf7%3DbbzKn%2B3w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALESzpRoFf65qM_p3%3DbAo0nHXfhiY5KAS1hiHZwf7%3DbbzKn%2B3w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/QhpNIabG2es/unsubscribe](https://groups.google.com/d/topic/elasticsearch/QhpNIabG2es/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/E20E27C9-44B4-4E42-95B9-86E1DE817AB4%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/E20E27C9-44B4-4E42-95B9-86E1DE817AB4%40pilato.fr)  
> [https://groups.google.com/d/msgid/elasticsearch/E20E27C9-44B4-4E42-95B9-86E1DE817AB4%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/E20E27C9-44B4-4E42-95B9-86E1DE817AB4%40pilato.fr?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALESzpTAHPkzWuMoWfAnJYA41pT18b\_F%2B%3DKDk92V%2BiXhwfBfNg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALESzpTAHPkzWuMoWfAnJYA41pT18b_F%2B%3DKDk92V%2BiXhwfBfNg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:04am UTC](https://discuss.elastic.co/t/missing-documents/19609/9 "2017-07-06T01:04:08Z")

</div>


