Skip to content

Commit 50be03d

Browse files
Fixed bad links
1 parent 62eda78 commit 50be03d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

075_Inside_a_shard/50_Persistent_changes.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ image::images/elas_1109.png["After a flush, the segments are fully commited and
8383
The action of performing a commit and truncating the translog is known in
8484
Elasticsearch as a _flush_. ((("flushes"))) Shards are flushed automatically every 30
8585
minutes, or when the translog becomes too big. See the
86-
{ref}/index-modules-translog.html#_translog_settings[`translog` documentation] for settings
86+
{ref}/index-modules-translog.html[`translog` documentation] for settings
8787
that can be used((("translog (transaction log)", "flushes and"))) to control these thresholds:
8888

8989
The {ref}/indices-flush.html[`flush` API] can ((("indices", "flushing")))((("flush API")))be used to perform a manual flush:

170_Relevance/65_Script_score.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ GET /_search
8080
"discount": 0.1,
8181
"target": 10
8282
},
83-
"script": "price = doc['price'].value; margin = doc['margin'].value;
83+
"script": "price = doc['price'].value; margin = doc['margin'].value;
8484
if (price < threshold) { return price * margin / target };
8585
return price * (1 - discount) * margin / target;" <3>
8686
}
@@ -115,7 +115,7 @@ scripts are not quite fast enough, you have three options:
115115
document.
116116
* Groovy is fast, but not quite as fast as Java.((("Java", "scripting in"))) You could reimplement your
117117
script as a native Java script. (See
118-
{ref}/modules-scripting.html#native-java-scripts[Native Java Scripts]).
118+
{ref}/modules-scripting-native.html[Native Java Scripts]).
119119
* Use the `rescore` functionality((("rescoring"))) described in <<rescore-api>> to apply
120120
your script to only the best-scoring documents.
121121

0 commit comments

Comments
 (0)