Skip to content

Commit a8aeabc

Browse files
authored
Update search-indexer-field-mappings.md
Addressing all comments.
1 parent 8cf2eb2 commit a8aeabc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Performs *URL-safe* Base64 encoding of the input string. Assumes that the input
119119

120120
#### Example - document key lookup
121121

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 convertion) can not be longer than 1024 characters.
123123

124124
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.
125125

@@ -292,6 +292,8 @@ When you retrieve the encoded key at search time, you can then use the `urlDecod
292292
}]
293293
```
294294

295+
<a name="fixedLengthEncodeFunction"></a>
296+
295297
### fixedLengthEncode function
296298

297299
This function converts a string of any length to a fixed length string.
@@ -305,7 +307,7 @@ When facing errors complaining about document key being longer than 1024 charact
305307
"fieldMappings" : [
306308
{
307309
"sourceFieldName" : "metadata_storage_path",
308-
"targetFieldName" : <your key field>,
310+
"targetFieldName" : "your key field",
309311
"mappingFunction" : {
310312
"name" : "fixedLengthEncode"
311313
}

0 commit comments

Comments
 (0)