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.
