Here is another example that uses CreateIndexRequestBuilder that Ivan
By the way, you can learn a lot about using Java API by looking at the
integration tests of elasticsearch.
On Tuesday, September 25, 2012 12:23:02 PM UTC-4, Ivan Brusic wrote:
The number of shards and replicas are part of the source object you
pass in. I prefer to use CreateIndexRequests over using the
IndexRequestBuilder directly. The number of shards and replicas are
specified in the settings object that is passed into the
Settings settings =
P.S. When using Java, you should follow the Java Style Guidelines.
On Tue, Sep 25, 2012 at 4:56 AM, Percival Xavier
How do I configure the above using Java API just before the below
is called ?
IndexResponse response = _client.prepareIndex(obj.get_srch_index(),