Is prepareBulk() deprecated?
Here is the exception report during integration testing:
Handler processing failed; nested exception is java.lang.NoSuchMethodError:
org.elasticsearch.client.Client.prepareBulk()Lorg/elasticsearch/action/bulk/BulkRequestBuilder;
org.springframework.web.servlet.DispatcherServlet.doDispatch(
DispatcherServlet.java:972)
org.springframework.web.servlet.DispatcherServlet.doService(
DispatcherServlet.java:852)
org.springframework.web.servlet.FrameworkServlet.processRequest(
FrameworkServlet.java:882)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet
.java:789)
javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause
java.lang.NoSuchMethodError: org.elasticsearch.client.Client.prepareBulk()Lorg/elasticsearch/action/bulk/ BulkRequestBuilder; org.kwince.contribs.osem.dao.OsemManagerImpl.mapping(OsemManagerImpl. java:674) org.kwince.contribs.osem.dao.OsemManagerImpl.save(OsemManagerImpl.java: 167) org.kwince.contribs.osem.dao.OsemManagerImpl.save(OsemManagerImpl.java: 158) com.kwince.crud.CrudController.create(Unknown Source) com.kwince.rest.JsonRpcController.doRpc(Unknown Source) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.springframework.web.method.support.InvocableHandlerMethod.invoke( InvocableHandlerMethod.java:213) org.springframework.web.method.support.InvocableHandlerMethod. invokeForRequest(InvocableHandlerMethod.java:126) org.springframework.web.servlet.mvc.method.annotation. ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod. java:96) org.springframework.web.servlet.mvc.method.annotation. RequestMappingHandlerAdapter.invokeHandlerMethod( RequestMappingHandlerAdapter.java:617) org.springframework.web.servlet.mvc.method.annotation. RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter. java:578) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter. handle(AbstractHandlerMethodAdapter.java:80) org.springframework.web.servlet.DispatcherServlet.doDispatch( DispatcherServlet.java:923) org.springframework.web.servlet.DispatcherServlet.doService( DispatcherServlet.java:852) org.springframework.web.servlet.FrameworkServlet.processRequest( FrameworkServlet.java:882) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet .java:789) javax.servlet.http.HttpServlet.service(HttpServlet.java:641) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)I looked in the code for ESearch 90.5 using grep, andn could not find where
the method was anywhere but in the:./src/main/java/org/elasticsearch/client/Client.java (An Interface)
Here is what I get when I search the 90.5 code for an instantiated version
of 'prepareBulk', nothing!
./src/main/java/org/elasticsearch/client/support/AbstractClient.java:
public BulkRequestBuilder prepareBulk() {
./src/main/java/org/elasticsearch/client/Client.java: BulkRequestBuilderprepareBulk
();
./src/main/java/org/elasticsearch/indices/ttl/IndicesTTLService.java:
BulkRequestBuilder bulkRequest = client.prepareBulk();
./src/main/java/org/elasticsearch/indices/ttl/IndicesTTLService.java:
bulkRequest = client.prepareBulk();
./src/test/java/org/elasticsearch/benchmark/stress/SingleThreadBulkStress.
java: BulkRequestBuilder request = client1.prepareBulk();
./src/test/java/org/elasticsearch/benchmark/search/facet/
QueryFilterFacetSearchBenchmark.java: BulkRequestBuilderrequest
= client.prepareBulk();
./src/test/java/org/elasticsearch/benchmark/search/facet/
HistogramFacetSearchBenchmark.java: BulkRequestBuilderrequest
= client.prepareBulk();
./src/test/java/org/elasticsearch/benchmark/search/facet/
TermsFacetSearchBenchmark.java: BulkRequestBuilder request =client
.prepareBulk();
./src/test/java/org/elasticsearch/benchmark/search/child/
ChildSearchShortCircuitBenchmark.java: BulkRequestBuilderrequest
= client.prepareBulk();
./src/test/java/org/elasticsearch/benchmark/search/child/
ChildSearchAndIndexingBenchmark.java: BulkRequestBuilderrequest
= client.prepareBulk();
./src/test/java/org/elasticsearch/benchmark/search/child/
ChildSearchBenchmark.java: BulkRequestBuilder request =client
.prepareBulk();
./src/test/java/org/elasticsearch/benchmark/search/SuggestSearchBenchMark.
java: BulkRequestBuilder request = client.prepareBulk();
./src/test/java/org/elasticsearch/benchmark/search/nested/
NestedSearchBenchMark.java: BulkRequestBuilder request =client
.prepareBulk();
./src/test/java/org/elasticsearch/update/UpdateTests.java:
client().prepareBulk().add(updateRequestBuilder).execute().
actionGet();
./src/test/java/org/elasticsearch/versioning/SimpleVersioningTests.java:
BulkResponse bulkResponse = client().prepareBulk().add(client().
prepareIndex("test", "type", "1").setSource("field1", "value1_1")).execute
().actionGet();
./src/test/java/org/elasticsearch/document/BulkTests.java:
BulkResponse bulkResponse = client().prepareBulk()
./src/test/java/org/elasticsearch/document/BulkTests.java:
bulkResponse = client().prepareBulk()
./src/test/java/org/elasticsearch/document/BulkTests.java:
bulkResponse = client().prepareBulk()
./src/test/java/org/elasticsearch/document/BulkTests.java:
BulkResponse bulkResponse = run(client().prepareBulk()
./src/test/java/org/elasticsearch/document/BulkTests.java:
bulkResponse = run(client().prepareBulk()
./src/test/java/org/elasticsearch/document/BulkTests.java:
bulkResponse = run(client().prepareBulk()
./src/test/java/org/elasticsearch/document/BulkTests.java:
bulkResponse = run(client().prepareBulk()
./src/test/java/org/elasticsearch/document/BulkTests.java:
BulkResponse bulkResponse = client().prepareBulk()
./src/test/java/org/elasticsearch/document/BulkTests.java:
bulkResponse = client().prepareBulk()
./src/test/java/org/elasticsearch/document/BulkTests.java:
BulkRequestBuilder builder = client().prepareBulk();
./src/test/java/org/elasticsearch/document/BulkTests.java: builder =client
().prepareBulk();
./src/test/java/org/elasticsearch/document/BulkTests.java: builder =client
().prepareBulk();
./src/test/java/org/elasticsearch/document/BulkTests.java: builder =client
().prepareBulk();
./src/test/java/org/elasticsearch/document/BulkTests.java: builder =client
().prepareBulk();
./src/test/java/org/elasticsearch/document/BulkTests.java:
BulkRequestBuilder builder = client().prepareBulk();
./src/test/java/org/elasticsearch/document/BulkTests.java:
BulkRequestBuilder builder = client().prepareBulk();
./src/test/java/org/elasticsearch/document/BulkTests.java:
BulkRequestBuilder requestBuilder = client().prepareBulk();
./src/test/java/org/elasticsearch/document/DocumentActionsTests.java:
BulkResponse bulkResponse = client().prepareBulk()
./src/test/java/org/elasticsearch/test/stress/fullrestart/
FullRestartStressTest.java: BulkRequestBuilder bulk = client.
client().prepareBulk();
./src/test/java/org/elasticsearch/test/stress/indexing/
BulkIndexingStressTest.java: BulkRequestBuilder bulkRequest =client
.prepareBulk();
./src/test/java/org/elasticsearch/routing/AliasRoutingTests.java:
client().prepareBulk().add(Requests.deleteRequest("test").type("type1").id(
"1")).execute().actionGet();
./src/test/java/org/elasticsearch/routing/SimpleRoutingTests.java:
client().prepareBulk().add(Requests.deleteRequest("test").type("type1").id(
"1")).execute().actionGet();
./src/test/java/org/elasticsearch/routing/SimpleRoutingTests.java:
client().prepareBulk().add(
./src/test/java/org/elasticsearch/recovery/RelocationTests.java:
BulkRequestBuilder bulkRequest = perThreadClient.
prepareBulk();
./src/test/java/org/elasticsearch/recovery/RelocationTests.java:
BulkRequestBuilder bulkRequest = perThreadClient.
prepareBulk();
./src/test/java/org/elasticsearch/indexing/IndexActionTests.java:
BulkResponse bulkResponse = client().prepareBulk().add(client().prepareIndex
("test", "type", "1").setSource("field1", "value1_1")).execute().actionGet
();
./src/test/java/org/elasticsearch/search/geo/GeoFilterTests.java:
BulkResponse bulk = client().prepareBulk().add(bulkAction, 0, bulkAction.
length, false, null, null).execute().actionGet();--
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.
For more options, visit https://groups.google.com/groups/opt_out.