Class DocumentBatch

    • Constructor Detail

      • DocumentBatch

        DocumentBatch()
    • Method Detail

      • of

        public static DocumentBatch of​(Analyzer analyzer,
                                       Document doc)
        Create a DocumentBatch containing a single InputDocument
        Parameters:
        doc - the document to add
        Returns:
        the batch containing the input document
      • of

        public static DocumentBatch of​(Analyzer analyzer,
                                       Document... docs)
        Create a DocumentBatch containing a set of InputDocuments
        Parameters:
        docs - Collection of documents to add. There must be at least one document in the collection.
        Returns:
        the batch containing the input documents