mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
Add documentation about disabling _field_names
. (#26813)
This field has significant index-time overhead. Closes #26779
This commit is contained in:
parent
100e3c9a8a
commit
4e1ff8d086
@ -114,6 +114,13 @@ The default is `10%` which is often plenty: for example, if you give the JVM
|
||||
10GB of memory, it will give 1GB to the index buffer, which is enough to host
|
||||
two shards that are heavily indexing.
|
||||
|
||||
[float]
|
||||
=== Disable `_field_names`
|
||||
|
||||
The <<mapping-field-names-field,`_field_names` field>> introduces some
|
||||
index-time overhead, so you might want to disable it if you never need to
|
||||
run `exists` queries.
|
||||
|
||||
[float]
|
||||
=== Additional optimizations
|
||||
|
||||
|
@ -35,3 +35,25 @@ GET my_index/_search
|
||||
// CONSOLE
|
||||
|
||||
<1> Querying on the `_field_names` field (also see the <<query-dsl-exists-query,`exists`>> query)
|
||||
|
||||
|
||||
==== Disabling `_field_names`
|
||||
|
||||
Because `_field_names` introduce some index-time overhead, you might want to
|
||||
disable this field if you want to optimize for indexing speed and do not need
|
||||
`exists` queries.
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
PUT tweets
|
||||
{
|
||||
"mappings": {
|
||||
"tweet": {
|
||||
"_field_names": {
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
--------------------------------------------------
|
||||
// CONSOLE
|
||||
|
Loading…
x
Reference in New Issue
Block a user