Class: XapianDb::IndexWriters::NoOpWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/xapian_db/index_writers/no_op_writer.rb

Class Method Summary collapse

Class Method Details

.delete_doc_with(xapian_id, commit = true) ⇒ Object

Remove an object from the index



19
# File 'lib/xapian_db/index_writers/no_op_writer.rb', line 19

def delete_doc_with(xapian_id, commit=true); end

.index(obj, commit = true, changed_attrs: []) ⇒ Object

Update an object in the index



15
# File 'lib/xapian_db/index_writers/no_op_writer.rb', line 15

def index(obj, commit=true, changed_attrs: []); end

.reindex_class(klass, options = {}) ⇒ Object

Reindex all objects of a given class

Options Hash (options):

  • :verbose (Boolean) — default: false

    Should the reindexing give status informations?



25
26
27
# File 'lib/xapian_db/index_writers/no_op_writer.rb', line 25

def reindex_class(klass, options={})
  raise "rebuild_xapian_index is not supported inside a block with auto indexing disabled"
end