
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
SolrQuery is a ruby library designed to make building nested Solr queries simple and standardized.
It does everything for you, it deals with escaping characters, matching ActiveRecord objects by id.
It'll take an array of strings, an array of ActiveRecords.
Give it a Hash or a Range, and it'll sort out lucene range queries for you!
build a query for solr;
SolrQuery.build(:keyword => "Feather duster") #=> "feather duster"
SolrQuery.build(:keyword => "clean", :organisation => [organisation1, organisation2]) #=> "clean AND organisation:(275 OR 6534)"
SolrQuery.build(:colour => ["red", "pink"], :item_type => ["Toy", "Train"]) #=> "colour:(red OR pink) AND item_type:(Toy OR Train)"
or you can specify a different magical key for keyword;
SolrQuery.build({:keyword => "old one", :new_keyword => "new one"}, :new_keyword) #=> "new one AND keyword:(old one)"
if you need to do range queries;
SolrQuery.build(:salary => {:min => "010000", :max => "050000"}) #=> "salary:([010000 TO 050000])"
SolrQuery.build(:salary => "010000".."050000") #=> "salary:([010000 TO 050000])"
SolrQuery.build(:surname => {:min => "jacobs") #=> "surname:([jacobs TO *])"
Copyright (c) 2008 [Matthew Rudy Jacobs], released under the MIT license
FAQs
Unknown package
We found that solr_query demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.