-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index creation - :settings requires string keys, but docs suggest keywords. #70
Comments
This is because the docs were effectively ported from the HTTP client. AFAIR The Daily Mail folks contributed some performance improvements that involved giving up on I'd say lets use strings everywhere in the docs. There is no real upside to using keywords. Feel free to submit a pull request. |
Another point: HTTP client eventually delegates to clj-http which assumes maps can have keyword keys. ES native client expects string keys. |
Know a leaky abstraction. Where are the docs? Trying to figure out where to make a PR to. |
Aha! Another repo. https://github.com/clojurewerkz/elastisch.docs |
elastisch.native.index/create
works fine with string keys:But the docs suggest using keywords, like so:
Which throws ClassCastException from
native.conversion/->create-index-request
Incorrect docs? Should we change the code?
The text was updated successfully, but these errors were encountered: