-
Notifications
You must be signed in to change notification settings - Fork 190
Open
Labels
Milestone
Description
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.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-]Searching data types - map support[/-][+]Searching data types - map support [JIRA: CLIENTS-1029][/+]lukebakken commentedon Nov 11, 2016
Can you provide the following?
mikrofusion commentedon Nov 11, 2016
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.
lukebakken commentedon Nov 14, 2016
I will try to get to this today or tomorrow as time allows.
churcho commentedon Feb 5, 2017
Any traction on this? I am facing the same issue with my implementation.
churcho commentedon Feb 6, 2017
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 :
Maps containing a set called hobbies hobbies_set:*
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:
search_by_index("email", "email_register","myemail@test.com")
That gives me the desired results.