Package org.elasticsearch.action.update

Examples of org.elasticsearch.action.update.UpdateRequestBuilder.execute()


          .setScriptParams(query.getUpdateRequest().scriptParams())
          .setScriptLang(query.getUpdateRequest().scriptLang());
    } else {
      updateRequestBuilder.setDoc(query.getUpdateRequest().doc());
    }
    return updateRequestBuilder.execute().actionGet();
  }

  @Override
  public void bulkIndex(List<IndexQuery> queries) {
    BulkRequestBuilder bulkRequest = client.prepareBulk();
View Full Code Here


                            boolean needUpsert = !mutation.hasDeletions();
                            XContentBuilder builder = getContent(mutation.getAdditions());
                            UpdateRequestBuilder update = client.prepareUpdate(indexName, storename, docid).setDoc(builder);
                            if (needUpsert) update.setUpsert(builder);
                            log.trace("Updating document {} with upsert {}", docid, needUpsert);
                            update.execute().actionGet();
                        }
                    }

                }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.