Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elasticfusion

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticfusion

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Elasticfusion

Build Status Test Coverage Gem Version

Elasticfusion provides additional functionality on top of elasticsearch-rails.

It includes:

  • a keyword-based case-insensitive search engine supporting boolean expressions (conjunction, disjunction, negation) and field queries (range);
  • background jobs to carry out index updates.

It was written with a specific use case in mind and as such places a number of restrictions on the allowed use of Elasticsearch. For instance, partial updates are not supported, and _source field in general is encouraged to be disabled.

Requirements

  • Rails 5
  • Elasticsearch 5

Setup

  1. Place your index definitions in app/indexes directory.

  2. Drop Elasticfusion.load_index_definitions in app/models/application_record.rb (or any autoloaded file, really).

  3. Add indexing queue to your Active Job backend.

Usage examples

Elasticfusion was written specifically for fanuniverse. Refer to it for real-world usage examples.

Aknowledgements

This gem was largely inspired by search handling in booru-on-rails (Derpibooru).

FAQs

Package last updated on 23 Apr 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc