Package org.opensearch.index.mapper
Interface DerivedFieldResolver
- All Known Implementing Classes:
DefaultDerivedFieldResolver
,NoOpDerivedFieldResolver
@PublicApi(since="2.15.0")
public interface DerivedFieldResolver
DerivedFieldResolver is used as a lookup to resolve derived fields from their name.
It is created per search request and needs to be set at
QueryShardContext.setDerivedFieldResolver(DerivedFieldResolver)
for derived fields resolution.-
Method Summary
Modifier and TypeMethodDescriptionResolves the MappedFieldType associated with a derived fieldresolvePattern
(String pattern) Resolves all derived fields matching a given pattern.
-
Method Details
-
resolvePattern
Resolves all derived fields matching a given pattern. It includes derived fields defined both in search requests and index mapping.- Parameters:
pattern
- regex pattern- Returns:
- all derived fields matching the pattern
-
resolve
Resolves the MappedFieldType associated with a derived field- Parameters:
fieldName
- field name to lookup- Returns:
- mapped field type
-