David,
Using the Java API:
try
{
/* Create using the 3 strings: index, type, and id */
IndexRequestBuilder irb = client.prepareIndex(index, Name, id);
*/* Set the version number (a long integer value) */*
* irb.setVersion(versionNumber);*
*/* Set external versioning */*
* irb.setVersionType(VersionType.EXTERNAL);*
/* Issue the index request */
IndexResponse response = irb.execute().actionGet();
}
catch (Exception e)
{
...
}
Brian
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/ca92bf29-5ed1-42f1-b3c2-f56f1cf62c4b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.