Skip to content

Commit da36b21

Browse files
committed
h2 adjustment
1 parent 297383b commit da36b21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/search/search-how-to-index-markdown-blobs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ This Markdown file would result in three search documents after indexing, due to
202202
}
203203
```
204204

205-
## Map one-to-many fields to search fields
205+
### Map one-to-many fields in a search index
206206

207207
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.
208208

@@ -385,7 +385,7 @@ As you can see, the ordinal position increments based on the location of the con
385385

386386
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`.
387387

388-
## Map one-to-one fields to search fields
388+
### Map one-to-one fields in a search index
389389

390390
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:
391391

@@ -413,7 +413,7 @@ If you would like to extract fields with custom names from the document, you can
413413
}
414414
```
415415

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.
417417

418418
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:
419419

0 commit comments

Comments
 (0)