
Security News
New CNA Scorecard Tool Ranks CVE Data Quality Across the Ecosystem
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Background search indexing using existing worker systems.
$ gem install sunspot-queue
In your Gemfile
gem "sunspot-queue"
gem "resque"
In config/initializers/sunspot.rb
require "sunspot/queue/resque"
backend = Sunspot::Queue::Resque::Backend.new
Sunspot.session = Sunspot::Queue::SessionProxy.new(Sunspot.session, backend)
Start Resque
$ QUEUE=sunspot rake resque:work
In your Gemfile
gem "sunspot-queue"
gem "sidekiq"
In config/initializers/sunspot.rb
require "sunspot/queue/sidekiq"
backend = Sunspot::Queue::Sidekiq::Backend.new
Sunspot.session = Sunspot::Queue::SessionProxy.new(Sunspot.session, backend)
Start Sidekiq
$ sidekiq -q sunspot
In your Gemfile
gem "sunspot-queue"
gem "delayed_job"
gem "delayed_job_active_record" # or choose another backend
In config/initializers/sunspot.rb
require "sunspot/queue/delayed_job"
backend = Sunspot::Queue::DelayedJob::Backend.new
Sunspot.session = Sunspot::Queue::SessionProxy.new(Sunspot.session, backend)
Start Delayed::Job
$ rake jobs:work
In config/initializers/sunspot.rb
Sunspot::Queue.configure do |config|
# Override default job classes
config.index_job = CustomIndexJob
config.removal_job = CustomRemovalJob
end
The sunspot-queue jobs update the Solr index but those changes don't appear in search results until Solr commits those changes. Solr supports automatically commiting changes based on either the number of changes and / or time between commits.
Add (or uncomment) the following in solrconfig.xml
<autoCommit>
<maxDocs>10000</maxDocs>
<maxTime>30000</maxTime>
</autoCommit>
See Solr's documentation for more information.
Please don't make changes to the Rakefile, version, or history.
$ gem install bundler
$ bundle
$ guard
See LICENSE for details.
FAQs
Unknown package
We found that sunspot-queue 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
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.