You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/search-indexer-field-mappings.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.service: cognitive-search
11
11
ms.custom:
12
12
- ignite-2023
13
13
ms.topic: how-to
14
-
ms.date: 07/29/2024
14
+
ms.date: 08/09/2024
15
15
---
16
16
17
17
# Field mappings and transformations using Azure AI Search indexers
@@ -30,8 +30,8 @@ Field mappings apply to:
30
30
31
31
+ 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.
32
32
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
+
35
35
+ 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.
36
36
37
37
## Supported scenarios
@@ -449,6 +449,27 @@ The field mapping needs to be specified as shown below.
449
449
]
450
450
```
451
451
452
+
<aname="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
+
452
473
## See also
453
474
454
475
+[Supported data types in Azure AI Search](/rest/api/searchservice/supported-data-types)
0 commit comments