Sha256: 07c7235036bb3c25d31a8030f53e415fa61c5f58ff9f1922ee9f387079997561
Contents?: true
Size: 963 Bytes
Versions: 4
Compression:
Stored size: 963 Bytes
Contents
module Index # An index that is persisted in files, loaded at startup and kept in memory at runtime. # class Memory < Base # Create a new memory index for indexing and for querying. # # Parameters: # * name: The identifier of the index. Used: # - to identify an index (e.g. by you in Rake tasks: Indexes[:the_identifier]). # - in the frontend to describe which index a result came from. # - index directory naming (index/development/the_identifier/<lots of indexes>) # * source: The source the data comes from. See Sources::Base. # # Options: # * result_identifier: Use if you'd like a different identifier/name in the results JSON than the name of the index. # def initialize name, options = {} super name, options options[:indexing_bundle_class] ||= Internals::Indexing::Bundle::Memory options[:indexed_bundle_class] ||= Internals::Indexed::Bundle::Memory end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
picky-2.4.0 | lib/picky/index/memory.rb |
picky-2.3.0 | lib/picky/index/memory.rb |
picky-2.2.1 | lib/picky/index/memory.rb |
picky-2.2.0 | lib/picky/index/memory.rb |