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-how-to-index-markdown-blobs.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,7 +202,7 @@ This Markdown file would result in three search documents after indexing, due to
202
202
}
203
203
```
204
204
205
-
## Map one-to-many fields to search fields
205
+
###Map one-to-many fields in a search index
206
206
207
207
Field mappings associate a source field with a destination field in situations where the field names and types aren't identical. But field mappings can also be used to match parts of a Markdown document and "lift" them into top-level fields of the search document.
208
208
@@ -385,7 +385,7 @@ As you can see, the ordinal position increments based on the location of the con
385
385
386
386
It should also be noted that if header levels are skipped in the content, then structure of the resulting document reflects the headers that are present in the Markdown content, not necessarily containing nested sections for `h1` through `h6` consecutively. For example, when the document begins at `h2`, then the first element in the top-level sections array is `h2`.
387
387
388
-
## Map one-to-one fields to search fields
388
+
###Map one-to-one fields in a search index
389
389
390
390
If you would like to extract fields with custom names from the document, you can use field mappings to do so. Using the same Markdown sample as before, consider the following index configuration:
391
391
@@ -413,7 +413,7 @@ If you would like to extract fields with custom names from the document, you can
413
413
}
414
414
```
415
415
416
-
Extracting specific fields from the parsed Markdown is handled similar to how the document paths are in [outputFieldMappings](cognitive-search-output-field-mapping.md), except the path begins with `/sections`instead of `/document`. So, for example, `/sections/0/content` would map to the content under the item at position 0 in the sections array.
416
+
Extracting specific fields from the parsed Markdown is handled similar to how the document paths are in [outputFieldMappings](cognitive-search-output-field-mapping.md), except the path begins with `/sections` instead of `/document`. So, for example, `/sections/0/content` would map to the content under the item at position 0 in the sections array.
417
417
418
418
An example of a strong use case might look something like this: all Markdown files have a document title in the first `h1`, a subsection title in the first `h2`, and a summary in the content of the final paragraph underneath the final `h1`. You could use the following field mappings to index only that content:
0 commit comments