Class LuceneLegacyIdReaderWriter

    • Method Detail

      • idDocValues

        public org.apache.lucene.index.BinaryDocValues idDocValues​(org.apache.lucene.index.LeafReader reader)
                                                            throws IOException
        Description copied from interface: LuceneIdReader
        Creates a BinaryDocValues backed up by a specific field depending on a configured ID read/write strategy.
        Specified by:
        idDocValues in interface LuceneIdReader
        Parameters:
        reader - The reader to retrieve IDs from.
        Returns:
        Returns BinaryDocValues for the ID field.
        Throws:
        IOException - On I/O error occurred while creating doc values.
        See Also:
        LuceneBackendSettings.SCHEMA_ID_STRATEGY
      • write

        public void write​(String id,
                          org.apache.lucene.document.Document document)
        Description copied from interface: LuceneIdWriter
        Writes an ID to the document. Implementations chose which filed name to use and how many fields are used to represent the ID.
        Specified by:
        write in interface LuceneIdWriter
        Parameters:
        id - The id to add to the document.
        document - The document to write to.
        See Also:
        LuceneBackendSettings.SCHEMA_ID_STRATEGY