Skip to content
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

Programmatically adding search indexes to CRDTs [JIRA: CLIENTS-1028] #331

Open
mikrofusion opened this issue Nov 10, 2016 · 0 comments
Open

Comments

@mikrofusion
Copy link

It appears I can use ````riakc_pb_socket.set_search_index``` to set a search index to a bucket within a bucket type, but not to the overall type programatically.

I am trying to find a way to get the same behavior I can get using riak-admin on the command line.

For example, if I run

riak-admin bucket-type update counters '{"props":{"search_index":"counter_search"}}'

I can see that the counter_search index gets added to the console:

screen shot 2016-11-10 at 4 34 15 pm

But, if I do this via code:

  :ok = :riakc_pb_socket.set_search_index(shared.pid, {"counters", shared.bucket}, "counter_search")

The result is that no index is found:

screen shot 2016-11-10 at 4 33 41 pm

I've tried variations of set_search_index with no avail:

  :ok = :riakc_pb_socket.set_search_index(shared.pid, "counters", "counter_search")

Thanks in advance for any help you can provide.

@Basho-JIRA Basho-JIRA changed the title Programmatically adding search indexes to CRDTs Programmatically adding search indexes to CRDTs [JIRA: CLIENTS-1028] Nov 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants