-
Notifications
You must be signed in to change notification settings - Fork 189
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
Searching data types - map support [JIRA: CLIENTS-1029] #332
Comments
Can you provide the following?
|
Hi @lukebakken - thanks for the response. I am using the default Riak Search schema (_yz_default). I put it into a gist here: https://gist.github.com/mikrofusion/a084a7140f706243dbdd0a64f612990c For some background, we are planning on using Riak + elixir for a large project at work. My spike on testing the riak-erlang-client + Riak + elixir is here: https://github.com/mikrofusion/elixir_riak The spec that is failing is the following:
Found here: https://github.com/mikrofusion/elixir_riak/blob/master/spec/test_spec.exs#L445 Similar specs above (with counters and sets) work fine. Thanks again for all your help. |
I will try to get to this today or tomorrow as time allows. |
Any traction on this? I am facing the same issue with my implementation. |
I think I found a way to make my search work. Had to carefully read this section In there it says
An example is given like : In my case I have a users bucket of type CRDT maps with a register field called username which I am using for my search indexing.
I am calling seach_by_index this way: That gives me the desired results. |
The docs talk to the ability to use search with CRDTs. Their are counters & sets examples which for multiple languages, which works great. Unfortunately the examples on searching maps don't include erlang:
http://docs.basho.com/riak/kv/2.1.4/developing/usage/searching-data-types/#maps-example
Does that mean this client only supports the counter & set data types? If map is supported (hopefully it is), is there somewhere with examples that can be referenced? I attempted to follow the same pattern as searching counters & sets, but was unsuccessful.
Thanks for your help.
The text was updated successfully, but these errors were encountered: