Skip to content

Commit 01cb598

Browse files
Merge pull request #284264 from gmndrg/main
Updates for field mappings - including index projections scenarios
2 parents 817393a + 20c649f commit 01cb598

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

articles/search/search-indexer-field-mappings.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.service: cognitive-search
1111
ms.custom:
1212
- ignite-2023
1313
ms.topic: how-to
14-
ms.date: 07/29/2024
14+
ms.date: 08/09/2024
1515
---
1616

1717
# Field mappings and transformations using Azure AI Search indexers
@@ -30,8 +30,8 @@ Field mappings apply to:
3030

3131
+ Physical data structures on both sides of the data path. Logical data structures created by skills reside only in memory. Use [outputFieldMappings](cognitive-search-output-field-mapping.md) to map in-memory nodes to output fields in a search index.
3232

33-
+ Search indexes only. To populate a [knowledge store](knowledge-store-concept-intro.md), use [projections](knowledge-store-projections-examples.md) for data path configuration.
34-
33+
+ Parent AI Search indexes only. For "secondary" indexes with "child" documents or "chunks", refer to the [advanced field mapping scenarios](#advancedFieldMappingScenarios).
34+
3535
+ Top-level search fields only, where the `targetFieldName` is either a simple field or a collection. A target field can't be a complex type.
3636

3737
## Supported scenarios
@@ -449,6 +449,27 @@ The field mapping needs to be specified as shown below.
449449
]
450450
```
451451

452+
<a name="advancedFieldMappingScenarios"></a>
453+
## Advanced field mapping scenarios
454+
455+
In scenarios where you have "one-to-many" document relationships, such as data chunking or splitting, follow these guidelines for mapping fields from parent documents to "child" documents (chunks):
456+
457+
### 1. Skipping parent document indexing
458+
459+
If you are skipping the indexing of parent documents (by setting `projectionMode` to `skipIndexingParentDocuments` in the skillset's `indexProjections`), use [index projections](index-projections-concept-intro.md) to map fields from the parent documents to the "child" documents.
460+
461+
### 2. Indexing both parent and "child" documents
462+
463+
If you are indexing both parent documents and "child" documents:
464+
+ Use field mappings to map fields to the parent documents.
465+
+ Use [index projections](index-projections-concept-intro.md) to map fields to the "child" documents.
466+
467+
### 3. Mapping function-transformed values to parent and/or "child" documents
468+
469+
If a field in the parent document requires a transformation (using the [mapping functions](#mappingFunctions) such as encoding) and needs to be mapped to the parent and/or "child" documents:
470+
+ Apply the transformation using field mappings' [functions](#mappingFunctions) in the indexer.
471+
+ Use [index projections](index-projections-concept-intro.md) in the skillset to map the transformed field to the "child" documents.
472+
452473
## See also
453474

454475
+ [Supported data types in Azure AI Search](/rest/api/searchservice/supported-data-types)

0 commit comments

Comments
 (0)