I don't get it. You have beans in memory in Java? So basically yes, just serialize them to json (using for example Jackson) and send them to elasticsearch.
Have a look at this for an example: https://github.com/elasticsearchfr/hands-on/blob/answers/src/test/java/org/elasticsearchfr/handson/ex1/IndexTest.java#L107 You don't have to store it on filesystem and then index them… -- David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 23 janvier 2014 at 19:02:12, ZenMaster80 ([email protected]) a écrit: Ok great, I already prepare the files using java, so I thought it would be a great spot to index it as well in java (slight better performance over http I am guessing). I struggled to find decent examples on indexing files via http, I wouldn't mind testing with it as well if you can point to some example. How is this done, do we write curl script that run on the server? So in my case, Assume I have files in some folder ready for indexing, do I write a curl script that would go through the files and index them? On Thursday, January 23, 2014 12:23:27 PM UTC-5, Jörg Prante wrote: Yes, you can query ES with Javascript over HTTP. You can also use HTTP to index tons of files, that does not depend on the native protocol. Jörg -- 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/eab032ba-0572-4c87-9dce-90bada20ee56%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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/etPan.52e16c3d.2ae8944a.8a60%40MacBook-Air-de-David.local. For more options, visit https://groups.google.com/groups/opt_out.
