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

Create filter queries as hashmaps #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create filter queries as hashmaps #12

wants to merge 1 commit into from

Conversation

fedragon
Copy link

@fedragon fedragon commented Apr 3, 2015

Hello,
thank you for this nice library!

I thought it would be nice if filter queries could be expressed as a hashmap rather than as a vector of strings, and if range queries could be expressed as vectors. Here comes an example:

(flux/query "*:*" {:fq {:text "blah" :days [1 10]}})

the :fq hashmap will be converted to

["text:blah" "days:[1 TO 10]"]

before it is sent to create-solr-params.
I'm still not very fluent in Clojure so the code might be a bit naive but I hope it clarifies the intention :)

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

Successfully merging this pull request may close these issues.

1 participant