Skip to content

Commit 673adab

Browse files
[DOCS] Typo in Search speed (#91934) (#91998)
* [DOCS] Typo in Search speed The PR #89782 introduced some broken tags to leak in the text * Fix tags * Make all headings discrete Co-authored-by: Abdon Pijpelink <[email protected]> (cherry picked from commit 7c5b648) Co-authored-by: Luca Belluccini <[email protected]>
1 parent 8039973 commit 673adab

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/reference/how-to/search-speed.asciidoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ goes to the filesystem cache so that Elasticsearch can keep hot regions of the
1010
index in physical memory.
1111

1212
[discrete]
13-
tag::readahead[]
13+
// tag::readahead[]
1414
=== Avoid page cache thrashing by using modest readahead values on Linux
1515

1616
Search can cause a lot of randomized read I/O. When the underlying block
@@ -35,7 +35,7 @@ as a transient setting). We recommend a value of `128KiB` for readahead.
3535
WARNING: `blockdev` expects values in 512 byte sectors whereas `lsblk` reports
3636
values in `KiB`. As an example, to temporarily set readahead to `128KiB`
3737
for `/dev/nvme0n1`, specify `blockdev --setra 256 /dev/nvme0n1`.
38-
end::readahead[]
38+
// end::readahead[]
3939

4040
[discrete]
4141
=== Use faster hardware
@@ -358,7 +358,7 @@ PUT index
358358
}
359359
--------------------------------------------------
360360

361-
tag::warm-fs-cache[]
361+
// tag::warm-fs-cache[]
362362
[discrete]
363363
=== Warm up the filesystem cache
364364

@@ -372,7 +372,7 @@ depending on the file extension using the
372372
WARNING: Loading data into the filesystem cache eagerly on too many indices or
373373
too many files will make search _slower_ if the filesystem cache is not large
374374
enough to hold all the data. Use with caution.
375-
end::warm-fs-cache[]
375+
// end::warm-fs-cache[]
376376

377377
[discrete]
378378
=== Use index sorting to speed up conjunctions
@@ -424,6 +424,7 @@ be able to cope with `max_failures` node failures at once at most, then the
424424
right number of replicas for you is
425425
`max(max_failures, ceil(num_nodes / num_primaries) - 1)`.
426426

427+
[discrete]
427428
=== Tune your queries with the Search Profiler
428429

429430
The {ref}/search-profile.html[Profile API] provides detailed information about
@@ -438,6 +439,7 @@ Because the Profile API itself adds significant overhead to the query,
438439
this information is best used to understand the relative cost of the various
439440
query components. It does not provide a reliable measure of actual processing time.
440441

442+
[discrete]
441443
[[faster-phrase-queries]]
442444
=== Faster phrase queries with `index_phrases`
443445

@@ -446,6 +448,7 @@ indexes 2-shingles and is automatically leveraged by query parsers to run phrase
446448
queries that don't have a slop. If your use-case involves running lots of phrase
447449
queries, this can speed up queries significantly.
448450

451+
[discrete]
449452
[[faster-prefix-queries]]
450453
=== Faster prefix queries with `index_prefixes`
451454

@@ -454,6 +457,7 @@ indexes prefixes of all terms and is automatically leveraged by query parsers to
454457
run prefix queries. If your use-case involves running lots of prefix queries,
455458
this can speed up queries significantly.
456459

460+
[discrete]
457461
[[faster-filtering-with-constant-keyword]]
458462
=== Use `constant_keyword` to speed up filtering
459463

0 commit comments

Comments
 (0)