Sha256: c3a289616e5b85555a4d0336525b3396f7723c71c1d8bcc5936b8d7aa348fd7d

Contents?: true

Size: 845 Bytes

Versions: 1

Compression:

Stored size: 845 Bytes

Contents

# TODO Extract duplicate code from base bundle classes.
#
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 < ::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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picky-2.7.0 lib/picky/indexed/bundle/base.rb