May be this? https://github.com/dadoonet/fsriver/blob/master/src/main/java/fr/pilato/elasticsearch/river/fs/river/FsRiver.java#L315 https://github.com/dadoonet/fsriver/blob/master/src/main/java/fr/pilato/elasticsearch/river/fs/river/FsRiver.java#L211
-- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 21 sept. 2014 à 22:53, [email protected] a écrit : Appreciate the quick response! These are large projects. Could you identify the file in each project that does what I am looking for? > On Sunday, September 21, 2014 4:40:32 PM UTC-4, David Pilato wrote: > 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/03de8921-9f97-4267-952c-f9e4b4ff6a7c%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/57174F36-32FC-4A14-9837-E6972F78B909%40pilato.fr. For more options, visit https://groups.google.com/d/optout.
