mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
[DOCS] Defined es-test-dir and plugins-examples-dir in index.asciidoc. (#25232)
Use these attributes when specifying the location of included tests.
This commit is contained in:
parent
7a3155368c
commit
c161d90524
@ -46,7 +46,7 @@ Where the file looks like:
|
||||
|
||||
[source,stemmer_override]
|
||||
--------------------------------------------------
|
||||
include::{docdir}/../src/test/cluster/config/analysis/stemmer_override.txt[]
|
||||
include::{es-test-dir}/cluster/config/analysis/stemmer_override.txt[]
|
||||
--------------------------------------------------
|
||||
|
||||
You can also define the overrides rules inline:
|
||||
|
@ -65,7 +65,7 @@ The following is a sample format of the file:
|
||||
|
||||
[source,synonyms]
|
||||
--------------------------------------------------
|
||||
include::{docdir}/../src/test/cluster/config/analysis/synonym.txt[]
|
||||
include::{es-test-dir}/cluster/config/analysis/synonym.txt[]
|
||||
--------------------------------------------------
|
||||
|
||||
You can also define synonyms for the filter directly in the
|
||||
|
@ -49,7 +49,7 @@ The following is a sample format of the file:
|
||||
|
||||
[source,synonyms]
|
||||
--------------------------------------------------
|
||||
include::{docdir}/../src/test/cluster/config/analysis/synonym.txt[]
|
||||
include::{es-test-dir}/cluster/config/analysis/synonym.txt[]
|
||||
--------------------------------------------------
|
||||
|
||||
You can also define synonyms for the filter directly in the
|
||||
|
@ -1,4 +1,7 @@
|
||||
[[elasticsearch-reference]]
|
||||
= Elasticsearch Reference
|
||||
|
||||
:es-test-dir: {docdir}/../src/test
|
||||
:plugins-examples-dir: {docdir}/../../plugins/examples
|
||||
|
||||
include::index-shared.asciidoc[]
|
||||
|
@ -17,7 +17,7 @@ the document frequency of a provided term.
|
||||
|
||||
["source","java",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{docdir}/../../plugins/examples/script-expert-scoring/src/main/java/org/elasticsearch/example/expertscript/ExpertScriptPlugin.java[expert_engine]
|
||||
include-tagged::{plugins-examples-dir}/script-expert-scoring/src/main/java/org/elasticsearch/example/expertscript/ExpertScriptPlugin.java[expert_engine]
|
||||
--------------------------------------------------
|
||||
|
||||
You can execute the script by specifying its `lang` as `expert_scripts`, and the name
|
||||
|
Loading…
x
Reference in New Issue
Block a user