lib/samvera/nesting_indexer/relationship_reindexer.rb
# Perform a breadth-first tree traversal of the initial document and its descendants.
# We index the document, then queue up each of its children. For each child, queue up the child's children.
Perform a breadth-first tree traversal of the initial document and its descendants.
We index the document, then queue up each of its children. For each child, queue up the child's children.
Perform a breadth - first tree traversal of the initial document and its descendants . We index the document then queue up each of its children . For each child queue up the child ' s children .
def call
        wrap_logging("nested indexing of ID=#{initial_index_document.id.inspect}") do
          enqueue(initial_index_document, maximum_nesting_depth)
          process_each_document
        end
        self
      end
def call wrap_logging ( "nested indexing of ID=#{initial_index_document.id.inspect}" ) do enqueue ( initial_index_document , maximum_nesting_depth ) process_each_document end self end
Perform a breadth-first tree traversal of the initial document and its descendants.
Perform a breadth - first tree traversal of the initial document and its descendants .