Sha256: 7c94918e0a5a68c0bd8a035c0d2550d205ca53efc9c3db0aea671541c22e107d

Contents?: true

Size: 940 Bytes

Versions: 28

Compression:

Stored size: 940 Bytes

Contents

# encoding: utf-8

# This writer is a dummy writer that simply does nothing.
# @author Gernot Kogler

module XapianDb
  module IndexWriters

    class NoOpWriter

      class << self

        # Update an object in the index
        # @param [Object] obj An instance of a class with a blueprint configuration
        def index(obj, commit=true); end

        # Remove an object from the index
        # @param [String] xapian_id The document id
        def delete_doc_with(xapian_id, commit=true); end

        # Reindex all objects of a given class
        # @param [Class] klass The class to reindex
        # @param [Hash] options Options for reindexing
        # @option options [Boolean] :verbose (false) Should the reindexing give status informations?
        def reindex_class(klass, options={})
          raise "rebuild_xapian_index is not supported inside a block with auto indexing disabled"
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
xapian_db-1.3.5.4 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.3.5.3 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.3.5.2 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.3.5.1 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.3.5 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.3.4 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.3.3.1 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.3.3 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.3.2 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.3.1 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.3 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.2.5.1 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.2.5 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.2.4.7 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.2.4.6 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.2.4.5 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.2.4.4 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.2.4.3 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.2.4.2 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-1.2.4.1 lib/xapian_db/index_writers/no_op_writer.rb