How to use the http HEAD method in elastic search java api

Hi,

   I am writing a program using elastic search java api which inserts 

the JSON documents into elastic search. Insertions are successful but
indexing is done the number of times I execute the program. Is there any
way to avoid this repetitive indexing. I saw that we can use HEAD method in
CURL but is there any way to use HEAD in java api. Please suggest me.

Thanks
vinod

--
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/75b5b974-c5c5-4af5-8862-4fbc1751ec0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Not sure what program you write, but the HEAD in HTTP API uses a Java
GetRequest under the hood, it just suppresses the return of any data in the
response.

So, in Java, you should use the Java GetRequest.

Jörg

On Mon, Sep 22, 2014 at 2:39 PM, Vinod Joseph vinodjoseph91@gmail.com
wrote:

Hi,

   I am writing a program using elastic search java api which inserts

the JSON documents into Elasticsearch. Insertions are successful but
indexing is done the number of times I execute the program. Is there any
way to avoid this repetitive indexing. I saw that we can use HEAD method in
CURL but is there any way to use HEAD in java api. Please suggest me.

Thanks
vinod

--
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/75b5b974-c5c5-4af5-8862-4fbc1751ec0e%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/75b5b974-c5c5-4af5-8862-4fbc1751ec0e%40googlegroups.com?utm_medium=email&utm_source=footer
.
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/CAKdsXoFKGeAGEhYwM9JhH6hS%3Df%3D8XRvmpQ8b6_SM_Q-uZYwG7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.