You could give a look at https://github.com/scrutmydocs/scrutmydocs which basically does that. Or FSRiver: https://github.com/dadoonet/fsriver
Also Elasticsearch unit tests are a good place to find Java code. HTH -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 21 sept. 2014 à 22:28, [email protected] a écrit : Very new to elasticsearch, so please be kind. Would like to find working code example in Java that: (1) creates an index (2) creates a mapping (3) specifies an analyzer (4) converts text files to json (5) loads the json into elasticsearch I have successfully created an index using curl and head. I successfully wrote a java program that converts (a directory of) text files to json and loads them into elasticsearch. However the mapping is implied and the analyzer is implied (default?). I would like to programmatically specify the index creation, mapping, and analysis. My searches usually result in an example using curl or something off-topic. I suspect what I am trying to do is a very common task, could someone please point me to a working code example ? arkerpay -- 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/b9be9cd1-65d6-4309-a753-b7791d0b12bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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/049F9A22-F98A-4916-AF02-EE19470EDCBB%40pilato.fr. For more options, visit https://groups.google.com/d/optout.
