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

add 2i query support #8

Closed
reiddraper opened this issue Dec 31, 2011 · 1 comment
Closed

add 2i query support #8

reiddraper opened this issue Dec 31, 2011 · 1 comment
Labels

Comments

@reiddraper
Copy link
Owner

Usage might look like

; 2i queries
(index-query conn "bucket" :age 25)
(index-query conn "bucket" :age 21 80)
(index-query conn "bucket" :last-name "a" "f")

; is it too much of an abstraction to launch
; a mapreduce query which gets the docs and not
; just the keys?
(index-query conn "bucket" :email "foo@example.com" :return-body true)
@bretthoerner
Copy link
Collaborator

I like it. You might consider putting ranges (I assume that's what those are?) in a vector, but it's pretty minor.

(index-query conn "bucket" :age [21 80])

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

No branches or pull requests

2 participants