Sha256: 4841ba37d70996bbbdf149ffb40644981d75439a2813c67cf38ddbd3a995f2d2

Contents?: true

Size: 883 Bytes

Versions: 7

Compression:

Stored size: 883 Bytes

Contents

module Picky

  module Indexed # :nodoc:all

    # An indexed bundle is a number of memory/redis
    # indexes that compose the indexes for a single category:
    #  * core (inverted) index
    #  * weights index
    #  * similarity index
    #  * index configuration
    #
    # Indexed refers to them being indexed.
    # This class notably offers the methods:
    #  * load
    #  * clear
    #
    # To (re)load or clear the current indexes.
    #
    module Bundle

      class Base < Picky::Bundle

        # Loads all indexes.
        #
        def load
          load_inverted
          load_weights
          load_similarity
          load_configuration
        end

        # Clears all indexes.
        #
        def clear
          clear_inverted
          clear_weights
          clear_similarity
          clear_configuration
        end

      end

    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
picky-3.0.1 lib/picky/indexed/bundle/base.rb
picky-3.0.0 lib/picky/indexed/bundle/base.rb
picky-3.0.0.pre5 lib/picky/indexed/bundle/base.rb
picky-3.0.0.pre4 lib/picky/indexed/bundle/base.rb
picky-3.0.0.pre3 lib/picky/indexed/bundle/base.rb
picky-3.0.0.pre2 lib/picky/indexed/bundle/base.rb
picky-3.0.0.pre1 lib/picky/indexed/bundle/base.rb