pub fn add_document(&self, document: Document) -> Opstamp {
        let opstamp = self.stamper.stamp();
        let add_operation = AddOperation { opstamp, document };
        let send_result = self.operation_sender.send(smallvec![add_operation]);
        if let Err(e) = send_result {
            panic!("Failed to index document. Sending to indexing channel failed. This probably means all of the indexing threads have panicked. {:?}", e);
        }
        opstamp
    }
/// Adds a document.
///
/// If the indexing pipeline is full, this call may block.
///
/// The opstamp is an increasing `u64` that can
/// be used by the client to align commits with its own
/// document queue.
///
/// Currently it represents the number of documents that
/// have been added since the creation of the index.
Adds a document.
If the indexing pipeline is full, this call may block.

The opstamp is an increasing `u64` that can
be used by the client to align commits with its own
document queue.

Currently it represents the number of documents that
have been added since the creation of the index.
Adds a document . If the indexing pipeline is full this call may block . The opstamp is an increasing ` u64 ` that can be used by the client to align commits with its own document queue . Currently it represents the number of documents that have been added since the creation of the index .
pub fn add_document(&self, document: Document) -> Opstamp {
        let opstamp = self.stamper.stamp();
        let add_operation = AddOperation { opstamp, document };
        let send_result = self.operation_sender.send(smallvec![add_operation]);
        if let Err(e) = send_result {
            panic!("Failed to index document. Sending to indexing channel failed. This probably means all of the indexing threads have panicked. {:?}", e);
        }
        opstamp
    }
pub fn add_document ( & self , document : Document ) -> Opstamp { let opstamp = self . stamper . stamp ( ) ; let add_operation = AddOperation { opstamp , document } ; let send_result = self . operation_sender . send ( smallvec ! [ add_operation ] ) ; if let Err ( e ) = send_result { panic ! ( " " e ) ; } opstamp }
Adds a document.
Adds a document .
&self
document
Document
&self
document
Document