RudyGems

Matthew Rudy Jacobs
see me swim
Github
see some of my code
Thought Sauce
Hire me in Hong Kong

SolrQuery - build your solr queries dynamically in Ruby

I’ve been using ActsAsSolr for about 6 months.

And at work I developed some code to make SOLR queries work a bit like the conditions in ActiveRecord.

Check out my library at Github. http://github.com/matthewrudy/solr_query

SolrQuery.build(:keyword => "Feather duster"
=> "feather duster"
SolrQuery.build(:keyword => "clean",
                :organisation => [organisation1, organisation2])
=> "clean AND organisation:(275 OR 6534)"

Wicked!

Check out the readme for more examples.