@@ -10,7 +10,7 @@ goes to the filesystem cache so that Elasticsearch can keep hot regions of the
10
10
index in physical memory.
11
11
12
12
[discrete]
13
- tag::readahead[]
13
+ // tag::readahead[]
14
14
=== Avoid page cache thrashing by using modest readahead values on Linux
15
15
16
16
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.
35
35
WARNING: `blockdev` expects values in 512 byte sectors whereas `lsblk` reports
36
36
values in `KiB`. As an example, to temporarily set readahead to `128KiB`
37
37
for `/dev/nvme0n1`, specify `blockdev --setra 256 /dev/nvme0n1`.
38
- end::readahead[]
38
+ // end::readahead[]
39
39
40
40
[discrete]
41
41
=== Use faster hardware
@@ -358,7 +358,7 @@ PUT index
358
358
}
359
359
--------------------------------------------------
360
360
361
- tag::warm-fs-cache[]
361
+ // tag::warm-fs-cache[]
362
362
[discrete]
363
363
=== Warm up the filesystem cache
364
364
@@ -372,7 +372,7 @@ depending on the file extension using the
372
372
WARNING: Loading data into the filesystem cache eagerly on too many indices or
373
373
too many files will make search _slower_ if the filesystem cache is not large
374
374
enough to hold all the data. Use with caution.
375
- end::warm-fs-cache[]
375
+ // end::warm-fs-cache[]
376
376
377
377
[discrete]
378
378
=== 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
424
424
right number of replicas for you is
425
425
`max(max_failures, ceil(num_nodes / num_primaries) - 1)`.
426
426
427
+ [discrete]
427
428
=== Tune your queries with the Search Profiler
428
429
429
430
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,
438
439
this information is best used to understand the relative cost of the various
439
440
query components. It does not provide a reliable measure of actual processing time.
440
441
442
+ [discrete]
441
443
[[faster-phrase-queries]]
442
444
=== Faster phrase queries with `index_phrases`
443
445
@@ -446,6 +448,7 @@ indexes 2-shingles and is automatically leveraged by query parsers to run phrase
446
448
queries that don't have a slop. If your use-case involves running lots of phrase
447
449
queries, this can speed up queries significantly.
448
450
451
+ [discrete]
449
452
[[faster-prefix-queries]]
450
453
=== Faster prefix queries with `index_prefixes`
451
454
@@ -454,6 +457,7 @@ indexes prefixes of all terms and is automatically leveraged by query parsers to
454
457
run prefix queries. If your use-case involves running lots of prefix queries,
455
458
this can speed up queries significantly.
456
459
460
+ [discrete]
457
461
[[faster-filtering-with-constant-keyword]]
458
462
=== Use `constant_keyword` to speed up filtering
459
463
0 commit comments