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 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:
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 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6b0d8a31-e171-4027-acb3-491942bea782%40googlegroups.com.
For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to 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.
For more options, visit 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.
To view this discussion on the web visit 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.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/E20E27C9-44B4-4E42-95B9-86E1DE817AB4%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.