Package version:

Interface SearchIndexerIndexProjectionSelector

Description for what data to store in the designated search index.

interface SearchIndexerIndexProjectionSelector {
    mappings: InputFieldMappingEntry[];
    parentKeyFieldName: string;
    sourceContext: string;
    targetIndexName: string;
}

Properties

Mappings for the projection, or which source should be mapped to which field in the target index.

parentKeyFieldName: string

Name of the field in the search index to map the parent document's key value to. Must be a string field that is filterable and not the key field.

sourceContext: string

Source context for the projections. Represents the cardinality at which the document will be split into multiple sub documents.

targetIndexName: string

Name of the search index to project to. Must have a key field with the 'keyword' analyzer set.