Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@lexagosto

Description

@lexagosto

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions