I've been having difficulties with creating custom ES indices with the Java API. At this point, I'm going to write-off the Java API and just use the REST endpoints for index management. Please let me know if you see anything wrong with my process below:
We create the index + settings where client is a TransportClient:
settings is a String variable that contains this:
After executing this Java code, I want to verify that the index is created with the above settings:
Looks good, right? Let's test the analyzer:
Hmm, didn't work. Let's blow this index away and recreate it using the REST api.
And we'll verify that the settings look the same as they did when we used the Java API, except for some values in a different order:
Finally, we see the expected result after recreating the index with the REST api:
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
|Powered by Nabble||Edit this page|