
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.