1

Assume I have an ElasticSearch Mapping as follows

{"mappings": {"post": {"_routing": {"required": true, "path": "user_id"}, "properties": { "user_id": {"type": "integer"}, username": {"type": "string"}, "text": {"type": "string"}}}}}

How do I represent the routing via Hive table? I know there is a property called es.mapping.routing. So do I say es.mapping.routing='user_id'? I tried that but it did not work. Can someone list out the syntax?

Thanks

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.