Bulk indexing with Java API?


(Jake) #1

Does anyone have any sample code to show me how to do bulk indexing from the Java API?

[jake]


(Lukáš Vlček) #2

Hi,

you can see BulkRequestBuilderhttp://github.com/elasticsearch/elasticsearch/blob/master/modules/elasticsearch/src/main/java/org/elasticsearch/client/action/bulk/BulkRequestBuilder.javain
action for example in
WikipediaRiverhttp://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/wikipedia/src/main/java/org/elasticsearch/river/wikipedia/WikipediaRiver.java
(check
how currentRequest variable is used).
I think it is pretty simple. HTH.

Regards,
Lukas

On Mon, Oct 4, 2010 at 6:25 PM, Jake jakebartlett@gmail.com wrote:

Does anyone have any sample code to show me how to do bulk indexing from
the
Java API?

[jake]

View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Bulk-indexing-with-Java-API-tp1630773p1630773.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(system) #3