Skip to content

Commit 0bf9b85

Browse files
author
Varsha Muzumdar
committed
Added link for mapping fn in field map doc and note of new support and json in output fmap doc
1 parent 808bd2b commit 0bf9b85

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

articles/search/cognitive-search-output-field-mapping.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ In this article, you learn how to map enriched input fields to output fields in
1717

1818
Output Field Mappings are required for moving content from enriched documents into the index. The enriched document is really a tree of information, and even though there is support for complex types in the index, sometimes you may want to transform the information from the enriched tree into a more simple type (for instance, an array of strings). Output field mappings allow you to perform data shape transformations by flattening information.
1919

20+
> [!NOTE]
21+
> We recently enabled the functionality of mapping functions on output field mappings. For more details on mapping functions, see [Field mapping functions](https://docs.microsoft.com/en-us/azure/search/search-indexer-field-mappings#field-mapping-functions)
22+
2023
## Use outputFieldMappings
2124
To map fields, add `outputFieldMappings` to your indexer definition as shown below:
2225

@@ -46,7 +49,10 @@ The body of the request is structured as follows:
4649
"outputFieldMappings": [
4750
{
4851
"sourceFieldName": "/document/content/organizations/*/description",
49-
"targetFieldName": "descriptions"
52+
"targetFieldName": "descriptions",
53+
"mappingFunction": {
54+
"name": "base64Decode"
55+
}
5056
},
5157
{
5258
"sourceFieldName": "/document/content/organizations",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ A field mapping consists of three parts:
3535

3636
1. A `sourceFieldName`, which represents a field in your data source. This property is required.
3737
2. An optional `targetFieldName`, which represents a field in your search index. If omitted, the same name as in the data source is used.
38-
3. An optional `mappingFunction`, which can transform your data using one of several predefined functions. The full list of functions is [below](#mappingFunctions).
38+
3. An optional `mappingFunction`, which can transform your data using one of several predefined functions. This can be applied on both input and output field mappings. The full list of functions is [below](#mappingFunctions).
3939

4040
Field mappings are added to the `fieldMappings` array of the indexer definition.
4141

0 commit comments

Comments
 (0)