Interface ValueResolver<T extends ItemModel>

    • Method Detail

      • resolve

        void resolve​(InputDocument document,
                     IndexerBatchContext batchContext,
                     java.util.Collection<IndexedProperty> indexedProperties,
                     T model)
              throws FieldValueProviderException
        Resolves the values to be indexed. The indexed properties that use the same value resolver are grouped and this method is called once for each one of these groups.
        Parameters:
        document - - document that will be indexed, all the resolved values should be added as fields to this document
        batchContext - - the current indexer batch context
        indexedProperties - - the indexed properties that use the same value resolver
        model - - the values should be resolved for this model instance
        Throws:
        FieldValueProviderException - if an error occurs