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
description: Configure field mappings in an indexer to account for differences in field names and data representations.
5
5
6
6
manager: nitinme
7
-
author: mgottein
7
+
author: mattmsft
8
8
ms.author: magottei
9
9
ms.devlang: rest-api
10
10
ms.service: cognitive-search
@@ -119,7 +119,7 @@ Performs *URL-safe* Base64 encoding of the input string. Assumes that the input
119
119
120
120
#### Example - document key lookup
121
121
122
-
Only URL-safe characters can appear in an Azure Cognitive Search document key (because customers must be able to address the document using the [Lookup API](https://docs.microsoft.com/rest/api/searchservice/lookup-document) ). If the source field for your key contains URL-unsafe characters, you can use the `base64Encode` function to convert it at indexing time.
122
+
Only URL-safe characters can appear in an Azure Cognitive Search document key (because customers must be able to address the document using the [Lookup API](https://docs.microsoft.com/rest/api/searchservice/lookup-document) ). If the source field for your key contains URL-unsafe characters, you can use the `base64Encode` function to convert it at indexing time. However, a document key (both before and after conversion) can't be longer than 1,024 characters.
123
123
124
124
When you retrieve the encoded key at search time, you can then use the `base64Decode` function to get the original key value, and use that to retrieve the source document.
125
125
@@ -290,4 +290,26 @@ When you retrieve the encoded key at search time, you can then use the `urlDecod
290
290
"name" : "urlDecode"
291
291
}
292
292
}]
293
-
```
293
+
```
294
+
295
+
<aname="fixedLengthEncodeFunction"></a>
296
+
297
+
### fixedLengthEncode function
298
+
299
+
This function converts a string of any length to a fixed length string.
300
+
301
+
### Example - map document keys that are too long
302
+
303
+
When facing errors complaining about document key being longer than 1024 characters, this function can be applied to reduce the length of the document key.
0 commit comments