David, Sorry for the confusion, I am doing exactly what you mentioned. I start with our custom files, turn them into JSON and feed/BULK JSON in memory to indexer via native Java API. This topic/thread started by my question about having problem with transport client but not node builder. I haven't been able to get fix the issue, but I have couple of things to check based on the responses I got.
On Thursday, January 23, 2014 2:23:40 PM UTC-5, David Pilato wrote: > > 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 <https://twitter.com/dadoonet> | > @elasticsearchfr<https://twitter.com/elasticsearchfr> > > > Le 23 janvier 2014 at 19:02:12, ZenMaster80 ([email protected]<javascript:>) > 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] <javascript:>. > 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/7e9a818f-8749-41e4-afee-cd36c4d3ecdb%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
