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.
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.
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.
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.