KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to create an index and specify a custom analyzer using the Java API? It supports adding mappings at index creation, but I can't find a way to do something like this without sending the JSON via HTTP PUT: curl -XPUT localhost:9200/twitter?pretty=true -d '{ "analysis": { "analyzer": { "steak" : { "type" : "custom", "tokenizer" : "standard", "filter" : ["snowball", "standard", "lowercase"] } } } }' I can build such a query using JSONBuilder, but I can't find no place in the API where to run it, CreateIndexRequest doesn't have anything I can use and neither does client.admin().indices() , as far as I can see. What's the right way to do this?
Tags (comma-separated)
Save Edits
Cancel