Interface IndexFieldProvider


  • @Deprecated
    public interface IndexFieldProvider
    Deprecated.
    This interface exposes Lucene API directly - it will be removed soon. Use the "dynamicBoost" feature instead.
    Implementations of this interface would get callbacks while indexing documents. It's the responsibility of the implementation to exit as early as possible if it doesn't care about the document being indexed.
    • Field Detail

      • DEFAULT

        static final IndexFieldProvider DEFAULT
        Deprecated.
        Implementation which doesn't do anything useful... yet, abides with the contract.
    • Method Detail

      • getAugmentedFields

        @NotNull
        @NotNull java.lang.Iterable<Field> getAugmentedFields​(java.lang.String path,
                                                              NodeState document,
                                                              NodeState indexDefinition)
        Deprecated.
        This method would get called while indexing a document.
        Parameters:
        path - path of the document being indexed
        document - NodeState of the document being indexed
        indexDefinition - NodeState of index definition
        Returns:
        Iterable of fields that are to be added to Document being prepared