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

How to perform "range with terms" queries on 2i #209

Open
lexagosto opened this issue Feb 7, 2014 · 0 comments
Open

How to perform "range with terms" queries on 2i #209

lexagosto opened this issue Feb 7, 2014 · 0 comments

Comments

@lexagosto
Copy link

Hello,

I'd need to perform a range query against a string secondary index to get all matching records using a partial value (e.g. by searching "data" I want to be able also to get "data-1", "data-2" and so on).

This is possible in Riak itself by using the Range with Terms, that simply requires to append return_terms=true to the 2i query (you can check an example here -search for the section "Range with terms"-).

By the way I was not able to find out how to perform this kind of query in riak-js. I would like to avoid to use riak search for that.

How can I perform this kind of query? If it's not supported by the library API's is there a way I can use the built-in client to perform custom queries?

Thanks,
Alex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant