Interface LuceneFieldCodec<F>

    • Method Detail

      • addToDocument

        void addToDocument​(LuceneDocumentContent documentBuilder,
                           String absoluteFieldPath,
                           F value)
        Encode the given value in the document by adding new fields to the Lucene document.
        Parameters:
        documentBuilder - The document builder.
        absoluteFieldPath - The absolute path of the field.
        value - The value to encode.
      • decode

        F decode​(org.apache.lucene.index.IndexableField field)
        Extract the value from the given stored field.

        Typically used in projections.

        Parameters:
        field - The document field. Never null.
        Returns:
        The decoded value.