This commit is contained in:
parent
8208ffa666
commit
bb7bff5e30
|
@ -185,7 +185,7 @@ GET icu_sample/_analyze
|
||||||
|
|
||||||
The above `analyze` request returns the following:
|
The above `analyze` request returns the following:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -199,7 +199,7 @@ The above `analyze` request returns the following:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[[analysis-icu-normalization]]
|
[[analysis-icu-normalization]]
|
||||||
==== ICU Normalization Token Filter
|
==== ICU Normalization Token Filter
|
||||||
|
|
|
@ -191,7 +191,7 @@ GET kuromoji_sample/_analyze
|
||||||
|
|
||||||
The above `analyze` request returns the following:
|
The above `analyze` request returns the following:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [ {
|
"tokens" : [ {
|
||||||
|
@ -209,7 +209,7 @@ The above `analyze` request returns the following:
|
||||||
} ]
|
} ]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[[analysis-kuromoji-baseform]]
|
[[analysis-kuromoji-baseform]]
|
||||||
==== `kuromoji_baseform` token filter
|
==== `kuromoji_baseform` token filter
|
||||||
|
@ -247,7 +247,7 @@ GET kuromoji_sample/_analyze
|
||||||
|
|
||||||
which responds with:
|
which responds with:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [ {
|
"tokens" : [ {
|
||||||
|
@ -259,7 +259,7 @@ which responds with:
|
||||||
} ]
|
} ]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[[analysis-kuromoji-speech]]
|
[[analysis-kuromoji-speech]]
|
||||||
==== `kuromoji_part_of_speech` token filter
|
==== `kuromoji_part_of_speech` token filter
|
||||||
|
@ -313,7 +313,7 @@ GET kuromoji_sample/_analyze
|
||||||
|
|
||||||
Which responds with:
|
Which responds with:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [ {
|
"tokens" : [ {
|
||||||
|
@ -331,7 +331,7 @@ Which responds with:
|
||||||
} ]
|
} ]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[[analysis-kuromoji-readingform]]
|
[[analysis-kuromoji-readingform]]
|
||||||
==== `kuromoji_readingform` token filter
|
==== `kuromoji_readingform` token filter
|
||||||
|
@ -504,7 +504,7 @@ GET kuromoji_sample/_analyze
|
||||||
|
|
||||||
The above request returns:
|
The above request returns:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [ {
|
"tokens" : [ {
|
||||||
|
@ -516,7 +516,7 @@ The above request returns:
|
||||||
} ]
|
} ]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[[analysis-kuromoji-number]]
|
[[analysis-kuromoji-number]]
|
||||||
==== `kuromoji_number` token filter
|
==== `kuromoji_number` token filter
|
||||||
|
@ -554,7 +554,7 @@ GET kuromoji_sample/_analyze
|
||||||
|
|
||||||
Which results in:
|
Which results in:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [ {
|
"tokens" : [ {
|
||||||
|
@ -566,4 +566,3 @@ Which results in:
|
||||||
} ]
|
} ]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ GET nori_sample/_analyze
|
||||||
|
|
||||||
The above `analyze` request returns the following:
|
The above `analyze` request returns the following:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [ {
|
"tokens" : [ {
|
||||||
|
@ -150,7 +150,6 @@ The above `analyze` request returns the following:
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
<1> This is a compound token that spans two positions (`mixed` mode).
|
<1> This is a compound token that spans two positions (`mixed` mode).
|
||||||
--
|
--
|
||||||
|
@ -210,7 +209,7 @@ GET _analyze
|
||||||
|
|
||||||
Which responds with:
|
Which responds with:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"detail": {
|
"detail": {
|
||||||
|
@ -297,7 +296,7 @@ Which responds with:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[[analysis-nori-speech]]
|
[[analysis-nori-speech]]
|
||||||
==== `nori_part_of_speech` token filter
|
==== `nori_part_of_speech` token filter
|
||||||
|
@ -371,7 +370,7 @@ GET nori_sample/_analyze
|
||||||
|
|
||||||
Which responds with:
|
Which responds with:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [ {
|
"tokens" : [ {
|
||||||
|
@ -389,7 +388,7 @@ Which responds with:
|
||||||
} ]
|
} ]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[[analysis-nori-readingform]]
|
[[analysis-nori-readingform]]
|
||||||
==== `nori_readingform` token filter
|
==== `nori_readingform` token filter
|
||||||
|
@ -426,7 +425,7 @@ GET nori_sample/_analyze
|
||||||
|
|
||||||
Which responds with:
|
Which responds with:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [ {
|
"tokens" : [ {
|
||||||
|
@ -438,6 +437,5 @@ Which responds with:
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
<1> The Hanja form is replaced by the Hangul translation.
|
<1> The Hanja form is replaced by the Hangul translation.
|
||||||
|
|
|
@ -99,7 +99,7 @@ GET smartcn_example/_analyze
|
||||||
|
|
||||||
The above request returns:
|
The above request returns:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -428,4 +428,3 @@ The above request returns:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
|
@ -94,7 +94,7 @@ GET polish_stop_example/_analyze
|
||||||
|
|
||||||
The above request returns:
|
The above request returns:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [
|
"tokens" : [
|
||||||
|
@ -115,4 +115,3 @@ The above request returns:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -242,7 +242,7 @@ GET /_search
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"aggregations": {
|
"aggregations": {
|
||||||
|
@ -264,7 +264,6 @@ GET /_search
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -91,6 +91,5 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
|
@ -89,7 +89,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -124,7 +124,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -216,7 +215,7 @@ are defined later in the request.
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -251,7 +250,6 @@ are defined later in the request.
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -38,7 +38,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -110,7 +109,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -124,7 +123,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -33,7 +33,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -125,7 +125,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -205,7 +204,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -247,7 +246,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -290,7 +288,7 @@ GET my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -339,7 +337,6 @@ GET my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -103,7 +103,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -106,7 +106,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -176,7 +175,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -253,7 +252,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -90,7 +90,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -154,7 +153,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -217,7 +216,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -96,7 +96,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -36,7 +36,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -103,7 +102,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -117,7 +116,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -90,7 +90,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -143,7 +142,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -185,7 +184,7 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -186,7 +186,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ POST /common_grams_example/_analyze
|
||||||
|
|
||||||
And the response will be:
|
And the response will be:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [
|
"tokens" : [
|
||||||
|
@ -168,4 +168,3 @@ And the response will be:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ POST /condition_example/_analyze
|
||||||
|
|
||||||
And it'd respond:
|
And it'd respond:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -84,7 +84,7 @@ And it'd respond:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
<1> The term `What` has been lowercased, because it is only 4 characters long
|
<1> The term `What` has been lowercased, because it is only 4 characters long
|
||||||
<2> The term `Flapdoodle` has been left in its original case, because it doesn't pass
|
<2> The term `Flapdoodle` has been left in its original case, because it doesn't pass
|
||||||
the predicate
|
the predicate
|
||||||
|
|
|
@ -56,7 +56,7 @@ POST /keep_types_example/_analyze
|
||||||
|
|
||||||
The response will be:
|
The response will be:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -70,7 +70,6 @@ The response will be:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
Note how only the `<NUM>` token is in the output.
|
Note how only the `<NUM>` token is in the output.
|
||||||
|
|
||||||
|
@ -118,7 +117,7 @@ POST /keep_types_exclude_example/_analyze
|
||||||
|
|
||||||
The response will be:
|
The response will be:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -139,4 +138,3 @@ The response will be:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ POST /keyword_marker_example/_analyze
|
||||||
|
|
||||||
And it'd respond:
|
And it'd respond:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -94,7 +94,6 @@ And it'd respond:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
As compared to the `normal` analyzer which has `cats` stemmed to `cat`:
|
As compared to the `normal` analyzer which has `cats` stemmed to `cat`:
|
||||||
|
|
||||||
|
@ -111,7 +110,7 @@ POST /keyword_marker_example/_analyze
|
||||||
|
|
||||||
Response:
|
Response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -139,4 +138,3 @@ Response:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ POST /keyword_repeat_example/_analyze
|
||||||
|
|
||||||
And it'd respond:
|
And it'd respond:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -87,7 +87,6 @@ And it'd respond:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
Which preserves both the `cat` and `cats` tokens. Compare this to the example
|
Which preserves both the `cat` and `cats` tokens. Compare this to the example
|
||||||
on the <<analysis-keyword-marker-tokenfilter>>.
|
on the <<analysis-keyword-marker-tokenfilter>>.
|
||||||
|
|
|
@ -68,7 +68,7 @@ POST /multiplexer_example/_analyze
|
||||||
|
|
||||||
And it'd respond:
|
And it'd respond:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -110,7 +110,6 @@ And it'd respond:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
<1> The stemmer has also emitted a token `home` at position 1, but because it is a
|
<1> The stemmer has also emitted a token `home` at position 1, but because it is a
|
||||||
duplicate of this token it has been removed from the token stream
|
duplicate of this token it has been removed from the token stream
|
||||||
|
|
|
@ -58,7 +58,7 @@ POST /condition_example/_analyze
|
||||||
|
|
||||||
And it'd respond:
|
And it'd respond:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -72,7 +72,6 @@ And it'd respond:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
<1> The token 'What' has been removed from the tokenstream because it does not
|
<1> The token 'What' has been removed from the tokenstream because it does not
|
||||||
match the predicate.
|
match the predicate.
|
||||||
|
|
|
@ -41,7 +41,7 @@ POST _analyze
|
||||||
|
|
||||||
returns
|
returns
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
---------------------------
|
---------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -76,5 +76,3 @@ returns
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
---------------------------
|
---------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -114,7 +114,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -174,7 +173,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -251,7 +250,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -54,7 +54,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -138,7 +137,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -201,7 +200,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -34,7 +34,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -105,7 +105,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -110,7 +110,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -155,7 +155,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -243,7 +242,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -292,7 +291,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -48,7 +48,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -124,7 +123,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -152,7 +151,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -86,7 +86,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -154,7 +153,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -182,7 +181,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -245,7 +243,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -266,7 +264,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [
|
"tokens" : [
|
||||||
|
@ -93,7 +93,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens" : [
|
"tokens" : [
|
||||||
|
@ -94,7 +94,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -105,7 +105,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -165,7 +164,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -256,7 +255,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -88,7 +88,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -54,7 +54,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
@ -121,7 +120,7 @@ POST my_index/_analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -184,7 +183,6 @@ POST my_index/_analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ POST _analyze
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------
|
----------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -96,7 +96,6 @@ POST _analyze
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----------------------------
|
----------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|
|
@ -251,7 +251,7 @@ GET /_cluster/state?filter_path=metadata.indices.*.stat*
|
||||||
|
|
||||||
Responds:
|
Responds:
|
||||||
|
|
||||||
[source,sh]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"metadata" : {
|
"metadata" : {
|
||||||
|
@ -261,7 +261,6 @@ Responds:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
And the `**` wildcard can be used to include fields without knowing the
|
And the `**` wildcard can be used to include fields without knowing the
|
||||||
exact path of the field. For example, we can return the Lucene version
|
exact path of the field. For example, we can return the Lucene version
|
||||||
|
@ -276,7 +275,7 @@ GET /_cluster/state?filter_path=routing_table.indices.**.state
|
||||||
|
|
||||||
Responds:
|
Responds:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"routing_table": {
|
"routing_table": {
|
||||||
|
@ -290,7 +289,6 @@ Responds:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
It is also possible to exclude one or more fields by prefixing the filter with the char `-`:
|
It is also possible to exclude one or more fields by prefixing the filter with the char `-`:
|
||||||
|
|
||||||
|
@ -303,13 +301,12 @@ GET /_count?filter_path=-_shards
|
||||||
|
|
||||||
Responds:
|
Responds:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"count" : 5
|
"count" : 5
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
And for more control, both inclusive and exclusive filters can be combined in the same expression. In
|
And for more control, both inclusive and exclusive filters can be combined in the same expression. In
|
||||||
this case, the exclusive filters will be applied first and the result will be filtered again using the
|
this case, the exclusive filters will be applied first and the result will be filtered again using the
|
||||||
|
@ -324,7 +321,7 @@ GET /_cluster/state?filter_path=metadata.indices.*.state,-metadata.indices.logst
|
||||||
|
|
||||||
Responds:
|
Responds:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"metadata" : {
|
"metadata" : {
|
||||||
|
@ -336,7 +333,6 @@ Responds:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
Note that Elasticsearch sometimes returns directly the raw value of a field,
|
Note that Elasticsearch sometimes returns directly the raw value of a field,
|
||||||
like the `_source` field. If you want to filter `_source` fields, you should
|
like the `_source` field. If you want to filter `_source` fields, you should
|
||||||
|
@ -356,7 +352,7 @@ GET /_search?filter_path=hits.hits._source&_source=title&sort=rating:desc
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"hits" : {
|
"hits" : {
|
||||||
|
@ -370,7 +366,6 @@ GET /_search?filter_path=hits.hits._source&_source=title&sort=rating:desc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
|
@ -585,7 +580,7 @@ POST /twitter/_search?size=surprise_me
|
||||||
|
|
||||||
The response looks like:
|
The response looks like:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
{
|
{
|
||||||
"error" : {
|
"error" : {
|
||||||
|
@ -605,7 +600,6 @@ The response looks like:
|
||||||
"status" : 400
|
"status" : 400
|
||||||
}
|
}
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
But if you set `error_trace=true`:
|
But if you set `error_trace=true`:
|
||||||
|
|
||||||
|
|
|
@ -73,10 +73,9 @@ DELETE /_ccr/auto_follow/my_auto_follow_pattern
|
||||||
|
|
||||||
The API returns the following result:
|
The API returns the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged" : true
|
"acknowledged" : true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ GET /_ccr/auto_follow/my_auto_follow_pattern
|
||||||
|
|
||||||
The API returns the following result:
|
The API returns the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"patterns": [
|
"patterns": [
|
||||||
|
@ -106,4 +106,3 @@ The API returns the following result:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -114,13 +114,12 @@ PUT /_ccr/auto_follow/my_auto_follow_pattern
|
||||||
|
|
||||||
The API returns the following result:
|
The API returns the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged" : true
|
"acknowledged" : true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ GET /follower_index/_ccr/info?filter_path=follower_indices.parameters
|
||||||
The following output from the follow info api describes all the default
|
The following output from the follow info api describes all the default
|
||||||
values for the above described index follow request parameters:
|
values for the above described index follow request parameters:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"follower_indices" : [
|
"follower_indices" : [
|
||||||
|
@ -101,4 +101,3 @@ values for the above described index follow request parameters:
|
||||||
}
|
}
|
||||||
|
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
|
@ -146,7 +146,7 @@ GET /follower_index/_ccr/info
|
||||||
|
|
||||||
The API returns the following results:
|
The API returns the following results:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"follower_indices" : [
|
"follower_indices" : [
|
||||||
|
@ -171,4 +171,3 @@ The API returns the following results:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -70,10 +70,9 @@ POST /follower_index/_ccr/pause_follow
|
||||||
|
|
||||||
The API returns the following result:
|
The API returns the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged" : true
|
"acknowledged" : true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -99,10 +99,9 @@ POST /follower_index/_ccr/resume_follow
|
||||||
|
|
||||||
The API returns the following result:
|
The API returns the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged" : true
|
"acknowledged" : true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -77,10 +77,9 @@ POST /follower_index/_ccr/unfollow
|
||||||
|
|
||||||
The API returns the following result:
|
The API returns the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged" : true
|
"acknowledged" : true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ PUT /follower_index/_ccr/follow?wait_for_active_shards=1
|
||||||
|
|
||||||
The API returns the following result:
|
The API returns the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"follow_index_created" : true,
|
"follow_index_created" : true,
|
||||||
|
@ -118,4 +118,3 @@ The API returns the following result:
|
||||||
"index_following_started" : true
|
"index_following_started" : true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ GET /_remote/info
|
||||||
The API will respond by showing that the local cluster is connected to the
|
The API will respond by showing that the local cluster is connected to the
|
||||||
remote cluster.
|
remote cluster.
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"leader" : {
|
"leader" : {
|
||||||
|
@ -141,8 +141,7 @@ remote cluster.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
// TESTRESPONSE[s/127.0.0.1:9300/$body.leader.seeds.0/]
|
||||||
// TEST[s/127.0.0.1:9300/$body.leader.seeds.0/]
|
|
||||||
// TEST[s/"connected" : true/"connected" : $body.leader.connected/]
|
// TEST[s/"connected" : true/"connected" : $body.leader.connected/]
|
||||||
// TEST[s/"num_nodes_connected" : 1/"num_nodes_connected" : $body.leader.num_nodes_connected/]
|
// TEST[s/"num_nodes_connected" : 1/"num_nodes_connected" : $body.leader.num_nodes_connected/]
|
||||||
<1> This shows the local cluster is connected to the remote cluster with cluster
|
<1> This shows the local cluster is connected to the remote cluster with cluster
|
||||||
|
@ -226,7 +225,7 @@ PUT /server-metrics-copy/_ccr/follow?wait_for_active_shards=1
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"follow_index_created" : true,
|
"follow_index_created" : true,
|
||||||
|
@ -234,7 +233,6 @@ PUT /server-metrics-copy/_ccr/follow?wait_for_active_shards=1
|
||||||
"index_following_started" : true
|
"index_following_started" : true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
|
@ -300,13 +298,12 @@ PUT /_ccr/auto_follow/beats
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged" : true
|
"acknowledged" : true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ GET _tasks?nodes=nodeId1,nodeId2&actions=cluster:* <3>
|
||||||
|
|
||||||
The API returns the following result:
|
The API returns the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"nodes" : {
|
"nodes" : {
|
||||||
|
@ -98,7 +98,6 @@ The API returns the following result:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
===== Retrieve information from a particular task
|
===== Retrieve information from a particular task
|
||||||
|
|
||||||
|
@ -141,7 +140,7 @@ GET _tasks?actions=*search&detailed
|
||||||
|
|
||||||
The API returns the following result:
|
The API returns the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"nodes" : {
|
"nodes" : {
|
||||||
|
@ -166,7 +165,6 @@ The API returns the following result:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
The new `description` field contains human readable text that identifies the
|
The new `description` field contains human readable text that identifies the
|
||||||
particular request that the task is performing such as identifying the search
|
particular request that the task is performing such as identifying the search
|
||||||
|
|
|
@ -53,10 +53,10 @@ DELETE _data_frame/transforms/ecommerce_transform
|
||||||
// TEST[skip:setup kibana sample data]
|
// TEST[skip:setup kibana sample data]
|
||||||
|
|
||||||
When the {dataframe-transform} is deleted, you receive the following results:
|
When the {dataframe-transform} is deleted, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"acknowledged" : true
|
"acknowledged" : true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -119,7 +119,8 @@ GET _data_frame/transforms/ecommerce_transform/_stats
|
||||||
// TEST[skip:todo]
|
// TEST[skip:todo]
|
||||||
|
|
||||||
The API returns the following results:
|
The API returns the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"count" : 1,
|
"count" : 1,
|
||||||
|
@ -172,4 +173,3 @@ The API returns the following results:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -113,7 +113,8 @@ GET _data_frame/transforms/ecommerce_transform
|
||||||
// TEST[skip:setup kibana sample data]
|
// TEST[skip:setup kibana sample data]
|
||||||
|
|
||||||
The API returns the following results:
|
The API returns the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"count" : 1,
|
"count" : 1,
|
||||||
|
@ -158,4 +159,3 @@ The API returns the following results:
|
||||||
}
|
}
|
||||||
|
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -187,10 +187,10 @@ PUT _data_frame/transforms/ecommerce_transform
|
||||||
// TEST[setup:kibana_sample_data_ecommerce]
|
// TEST[setup:kibana_sample_data_ecommerce]
|
||||||
|
|
||||||
When the transform is created, you receive the following results:
|
When the transform is created, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"acknowledged" : true
|
"acknowledged" : true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -69,10 +69,10 @@ POST _data_frame/transforms/ecommerce_transform/_start
|
||||||
// TEST[skip:set up kibana samples]
|
// TEST[skip:set up kibana samples]
|
||||||
|
|
||||||
When the {dataframe-transform} starts, you receive the following results:
|
When the {dataframe-transform} starts, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"acknowledged" : true
|
"acknowledged" : true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -99,10 +99,10 @@ POST _data_frame/transforms/ecommerce_transform/_stop
|
||||||
// TEST[skip:set up kibana samples]
|
// TEST[skip:set up kibana samples]
|
||||||
|
|
||||||
When the {dataframe-transform} stops, you receive the following results:
|
When the {dataframe-transform} stops, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"acknowledged" : true
|
"acknowledged" : true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -472,7 +472,7 @@ POST twitter/_search?size=0&filter_path=hits.total
|
||||||
|
|
||||||
Which results in a sensible `total` like this one:
|
Which results in a sensible `total` like this one:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
{
|
{
|
||||||
"hits": {
|
"hits": {
|
||||||
|
@ -483,7 +483,6 @@ Which results in a sensible `total` like this one:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
[[docs-delete-by-query-automatic-slice]]
|
[[docs-delete-by-query-automatic-slice]]
|
||||||
|
@ -529,7 +528,7 @@ POST twitter/_search?size=0&filter_path=hits.total
|
||||||
|
|
||||||
Which results in a sensible `total` like this one:
|
Which results in a sensible `total` like this one:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
{
|
{
|
||||||
"hits": {
|
"hits": {
|
||||||
|
@ -540,7 +539,6 @@ Which results in a sensible `total` like this one:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
Setting `slices` to `auto` will let {es} choose the number of slices
|
Setting `slices` to `auto` will let {es} choose the number of slices
|
||||||
to use. This setting will use one slice per shard, up to a certain limit. If
|
to use. This setting will use one slice per shard, up to a certain limit. If
|
||||||
|
@ -605,7 +603,7 @@ GET _tasks?detailed=true&actions=*/delete/byquery
|
||||||
|
|
||||||
The response looks like:
|
The response looks like:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"nodes" : {
|
"nodes" : {
|
||||||
|
@ -642,7 +640,7 @@ The response looks like:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
<1> This object contains the actual status. It is just like the response JSON
|
<1> This object contains the actual status. It is just like the response JSON
|
||||||
with the important addition of the `total` field. `total` is the total number
|
with the important addition of the `total` field. `total` is the total number
|
||||||
of operations that the reindex expects to perform. You can estimate the
|
of operations that the reindex expects to perform. You can estimate the
|
||||||
|
|
|
@ -795,7 +795,7 @@ GET _tasks?detailed=true&actions=*reindex
|
||||||
|
|
||||||
The response looks like:
|
The response looks like:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"nodes" : {
|
"nodes" : {
|
||||||
|
@ -841,7 +841,7 @@ The response looks like:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
<1> This object contains the actual status. It is identical to the response JSON
|
<1> This object contains the actual status. It is identical to the response JSON
|
||||||
except for the important addition of the `total` field. `total` is the total number
|
except for the important addition of the `total` field. `total` is the total number
|
||||||
of operations that the `_reindex` expects to perform. You can estimate the
|
of operations that the `_reindex` expects to perform. You can estimate the
|
||||||
|
@ -1032,7 +1032,7 @@ POST new_twitter/_search?size=0&filter_path=hits.total
|
||||||
|
|
||||||
which results in a sensible `total` like this one:
|
which results in a sensible `total` like this one:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
{
|
{
|
||||||
"hits": {
|
"hits": {
|
||||||
|
@ -1043,7 +1043,6 @@ which results in a sensible `total` like this one:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
[[docs-reindex-automatic-slice]]
|
[[docs-reindex-automatic-slice]]
|
||||||
|
@ -1078,7 +1077,7 @@ POST new_twitter/_search?size=0&filter_path=hits.total
|
||||||
|
|
||||||
which results in a sensible `total` like this one:
|
which results in a sensible `total` like this one:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
{
|
{
|
||||||
"hits": {
|
"hits": {
|
||||||
|
@ -1089,7 +1088,6 @@ which results in a sensible `total` like this one:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
Setting `slices` to `auto` will let Elasticsearch choose the number of slices
|
Setting `slices` to `auto` will let Elasticsearch choose the number of slices
|
||||||
to use. This setting will use one slice per shard, up to a certain limit. If
|
to use. This setting will use one slice per shard, up to a certain limit. If
|
||||||
|
|
|
@ -411,7 +411,7 @@ GET /imdb/_termvectors
|
||||||
|
|
||||||
Response:
|
Response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"_index": "imdb",
|
"_index": "imdb",
|
||||||
|
@ -449,4 +449,3 @@ Response:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -365,7 +365,7 @@ GET _tasks?detailed=true&actions=*byquery
|
||||||
|
|
||||||
The responses looks like:
|
The responses looks like:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"nodes" : {
|
"nodes" : {
|
||||||
|
@ -405,7 +405,6 @@ The responses looks like:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
<1> This object contains the actual status. It is just like the response JSON
|
<1> This object contains the actual status. It is just like the response JSON
|
||||||
with the important addition of the `total` field. `total` is the total number
|
with the important addition of the `total` field. `total` is the total number
|
||||||
|
@ -524,7 +523,7 @@ POST twitter/_search?size=0&q=extra:test&filter_path=hits.total
|
||||||
|
|
||||||
Which results in a sensible `total` like this one:
|
Which results in a sensible `total` like this one:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
{
|
{
|
||||||
"hits": {
|
"hits": {
|
||||||
|
@ -535,7 +534,6 @@ Which results in a sensible `total` like this one:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
[[docs-update-by-query-automatic-slice]]
|
[[docs-update-by-query-automatic-slice]]
|
||||||
|
@ -568,7 +566,7 @@ POST twitter/_search?size=0&q=extra:test&filter_path=hits.total
|
||||||
|
|
||||||
Which results in a sensible `total` like this one:
|
Which results in a sensible `total` like this one:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
{
|
{
|
||||||
"hits": {
|
"hits": {
|
||||||
|
@ -579,7 +577,6 @@ Which results in a sensible `total` like this one:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
Setting `slices` to `auto` will let Elasticsearch choose the number of slices
|
Setting `slices` to `auto` will let Elasticsearch choose the number of slices
|
||||||
to use. This setting will use one slice per shard, up to a certain limit. If
|
to use. This setting will use one slice per shard, up to a certain limit. If
|
||||||
|
@ -690,7 +687,7 @@ POST test/_search?filter_path=hits.total
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
// TEST[continued]
|
// TEST[continued]
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"hits" : {
|
"hits" : {
|
||||||
|
@ -701,7 +698,6 @@ POST test/_search?filter_path=hits.total
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
But you can issue an `_update_by_query` request to pick up the new mapping:
|
But you can issue an `_update_by_query` request to pick up the new mapping:
|
||||||
|
|
||||||
|
@ -720,7 +716,7 @@ POST test/_search?filter_path=hits.total
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
// TEST[continued]
|
// TEST[continued]
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"hits" : {
|
"hits" : {
|
||||||
|
@ -731,6 +727,5 @@ POST test/_search?filter_path=hits.total
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
You can do the exact same thing when adding a field to a multifield.
|
You can do the exact same thing when adding a field to a multifield.
|
||||||
|
|
|
@ -237,7 +237,7 @@ POST test/_update/1
|
||||||
If the value of `name` is already `new_name`, the update
|
If the value of `name` is already `new_name`, the update
|
||||||
request is ignored and the `result` element in the response returns `noop`:
|
request is ignored and the `result` element in the response returns `noop`:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"_shards": {
|
"_shards": {
|
||||||
|
@ -254,7 +254,6 @@ request is ignored and the `result` element in the response returns `noop`:
|
||||||
"result": "noop"
|
"result": "noop"
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
You can disable this behavior by setting `"detect_noop": false`:
|
You can disable this behavior by setting `"detect_noop": false`:
|
||||||
|
|
||||||
|
|
|
@ -76,11 +76,9 @@ DELETE _ilm/policy/my_policy
|
||||||
|
|
||||||
When the policy is successfully deleted, you receive the following result:
|
When the policy is successfully deleted, you receive the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -42,11 +42,9 @@ GET _ilm/status
|
||||||
|
|
||||||
If the request succeeds, the body of the response shows the operation mode:
|
If the request succeeds, the body of the response shows the operation mode:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"operation_mode": "RUNNING"
|
"operation_mode": "RUNNING"
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -107,14 +107,12 @@ POST _ilm/move/my_index
|
||||||
|
|
||||||
If the request succeeds, you receive the following result:
|
If the request succeeds, you receive the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
The request will fail if the index is not in the `new` phase as specified
|
The request will fail if the index is not in the `new` phase as specified
|
||||||
by the `current_step`.
|
by the `current_step`.
|
||||||
|
|
|
@ -70,11 +70,10 @@ PUT _ilm/policy/my_policy
|
||||||
// TEST
|
// TEST
|
||||||
|
|
||||||
If the request succeeds, you receive the following result:
|
If the request succeeds, you receive the following result:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -83,12 +83,10 @@ POST my_index/_ilm/remove
|
||||||
|
|
||||||
If the request succeeds, you receive the following result:
|
If the request succeeds, you receive the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"has_failures" : false,
|
"has_failures" : false,
|
||||||
"failed_indexes" : []
|
"failed_indexes" : []
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -77,11 +77,9 @@ POST _ilm/start
|
||||||
|
|
||||||
If the request succeeds, you receive the following result:
|
If the request succeeds, you receive the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -80,14 +80,12 @@ POST _ilm/stop
|
||||||
|
|
||||||
If the request does not encounter errors, you receive the following result:
|
If the request does not encounter errors, you receive the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
|
|
|
@ -61,14 +61,12 @@ GET _ilm/status
|
||||||
|
|
||||||
If the request does not encounter errors, you receive the following result:
|
If the request does not encounter errors, you receive the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"operation_mode": "RUNNING"
|
"operation_mode": "RUNNING"
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
The operating modes of ILM:
|
The operating modes of ILM:
|
||||||
|
|
||||||
|
@ -107,14 +105,12 @@ GET _ilm/status
|
||||||
// TEST[continued]
|
// TEST[continued]
|
||||||
////
|
////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"operation_mode": "STOPPING"
|
"operation_mode": "STOPPING"
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
The ILM service will then, asynchronously, run all policies to a point
|
The ILM service will then, asynchronously, run all policies to a point
|
||||||
where it is safe to stop. After ILM verifies that it is safe, it will
|
where it is safe to stop. After ILM verifies that it is safe, it will
|
||||||
|
@ -131,14 +127,12 @@ GET _ilm/status
|
||||||
// TEST[continued]
|
// TEST[continued]
|
||||||
////
|
////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"operation_mode": "STOPPED"
|
"operation_mode": "STOPPED"
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
=== Starting ILM
|
=== Starting ILM
|
||||||
|
@ -165,11 +159,9 @@ GET _ilm/status
|
||||||
The Start API will send a request to the ILM service to immediately begin
|
The Start API will send a request to the ILM service to immediately begin
|
||||||
normal operations.
|
normal operations.
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"operation_mode": "RUNNING"
|
"operation_mode": "RUNNING"
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -308,7 +308,7 @@ GET /_analyze
|
||||||
|
|
||||||
The request returns the following result:
|
The request returns the following result:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"detail" : {
|
"detail" : {
|
||||||
|
@ -351,7 +351,7 @@ The request returns the following result:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
<1> Output only "keyword" attribute, since specify "attributes" in the request.
|
<1> Output only "keyword" attribute, since specify "attributes" in the request.
|
||||||
|
|
||||||
[[tokens-limit-settings]]
|
[[tokens-limit-settings]]
|
||||||
|
|
|
@ -70,7 +70,7 @@ POST /my_index/_close
|
||||||
|
|
||||||
The API returns following response:
|
The API returns following response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged" : true,
|
"acknowledged" : true,
|
||||||
|
@ -82,4 +82,3 @@ The API returns following response:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -169,7 +169,7 @@ By default, index creation will only return a response to the client when the pr
|
||||||
each shard have been started, or the request times out. The index creation response will indicate
|
each shard have been started, or the request times out. The index creation response will indicate
|
||||||
what happened:
|
what happened:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged": true,
|
"acknowledged": true,
|
||||||
|
@ -177,7 +177,6 @@ what happened:
|
||||||
"index": "test"
|
"index": "test"
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
`acknowledged` indicates whether the index was successfully created in the cluster, while
|
`acknowledged` indicates whether the index was successfully created in the cluster, while
|
||||||
`shards_acknowledged` indicates whether the requisite number of shard copies were started for
|
`shards_acknowledged` indicates whether the requisite number of shard copies were started for
|
||||||
|
|
|
@ -99,7 +99,7 @@ GET /logs_20302801/_alias/*
|
||||||
|
|
||||||
The API returns the following response:
|
The API returns the following response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"logs_20302801" : {
|
"logs_20302801" : {
|
||||||
|
@ -117,7 +117,6 @@ The API returns the following response:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
|
|
||||||
[[get-alias-api-named-ex]]
|
[[get-alias-api-named-ex]]
|
||||||
|
@ -134,7 +133,7 @@ GET /_alias/2030
|
||||||
|
|
||||||
The API returns the following response:
|
The API returns the following response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"logs_20302801" : {
|
"logs_20302801" : {
|
||||||
|
@ -150,7 +149,7 @@ The API returns the following response:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[[get-alias-api-wildcard-ex]]
|
[[get-alias-api-wildcard-ex]]
|
||||||
===== Get aliases based on a wildcard
|
===== Get aliases based on a wildcard
|
||||||
|
@ -166,7 +165,7 @@ GET /_alias/20*
|
||||||
|
|
||||||
The API returns the following response:
|
The API returns the following response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"logs_20302801" : {
|
"logs_20302801" : {
|
||||||
|
@ -182,4 +181,3 @@ The API returns the following response:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ GET publications/_mapping/field/title
|
||||||
|
|
||||||
The API returns the following response:
|
The API returns the following response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"publications": {
|
"publications": {
|
||||||
|
@ -111,7 +111,6 @@ The API returns the following response:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[[get-field-mapping-api-specific-fields-ex]]
|
[[get-field-mapping-api-specific-fields-ex]]
|
||||||
===== Specifying fields
|
===== Specifying fields
|
||||||
|
@ -129,7 +128,7 @@ GET publications/_mapping/field/author.id,abstract,name
|
||||||
|
|
||||||
returns:
|
returns:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"publications": {
|
"publications": {
|
||||||
|
@ -154,7 +153,6 @@ returns:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
The get field mapping API also supports wildcard notation.
|
The get field mapping API also supports wildcard notation.
|
||||||
|
|
||||||
|
@ -167,7 +165,7 @@ GET publications/_mapping/field/a*
|
||||||
|
|
||||||
returns:
|
returns:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"publications": {
|
"publications": {
|
||||||
|
@ -200,7 +198,6 @@ returns:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[[get-field-mapping-api-multi-index-ex]]
|
[[get-field-mapping-api-multi-index-ex]]
|
||||||
===== Multiple indices and fields
|
===== Multiple indices and fields
|
||||||
|
|
|
@ -107,11 +107,10 @@ POST /my_index/_open
|
||||||
|
|
||||||
The API returns the following response:
|
The API returns the following response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged" : true,
|
"acknowledged" : true,
|
||||||
"shards_acknowledged" : true
|
"shards_acknowledged" : true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ POST /_snapshot/my_repository/snap_1/_restore?wait_for_completion=true
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"snapshot": {
|
"snapshot": {
|
||||||
|
@ -59,7 +59,6 @@ POST /_snapshot/my_repository/snap_1/_restore?wait_for_completion=true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ POST /logs_write/_rollover <2>
|
||||||
|
|
||||||
The above request might return the following response:
|
The above request might return the following response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged": true,
|
"acknowledged": true,
|
||||||
|
@ -82,7 +82,7 @@ The above request might return the following response:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
<1> Whether the index was rolled over.
|
<1> Whether the index was rolled over.
|
||||||
<2> Whether the rollover was dry run.
|
<2> Whether the rollover was dry run.
|
||||||
<3> The result of each condition.
|
<3> The result of each condition.
|
||||||
|
@ -162,7 +162,7 @@ GET _alias
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
// TEST[continued]
|
// TEST[continued]
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"logs-2016.10.31-000002": {
|
"logs-2016.10.31-000002": {
|
||||||
|
@ -175,7 +175,6 @@ GET _alias
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
|
@ -305,7 +304,7 @@ PUT logs/_doc/2 <2>
|
||||||
<1> configures `my_logs_index` as the write index for the `logs` alias
|
<1> configures `my_logs_index` as the write index for the `logs` alias
|
||||||
<2> newly indexed documents against the `logs` alias will write to the new index
|
<2> newly indexed documents against the `logs` alias will write to the new index
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"_index" : "my_logs_index-000002",
|
"_index" : "my_logs_index-000002",
|
||||||
|
@ -322,7 +321,6 @@ PUT logs/_doc/2 <2>
|
||||||
"_primary_term" : 1
|
"_primary_term" : 1
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
[source,js]
|
[source,js]
|
||||||
|
@ -336,7 +334,7 @@ GET _alias
|
||||||
After the rollover, the alias metadata for the two indices will have the `is_write_index` setting
|
After the rollover, the alias metadata for the two indices will have the `is_write_index` setting
|
||||||
reflect each index's role, with the newly created index as the write index.
|
reflect each index's role, with the newly created index as the write index.
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"my_logs_index-000002": {
|
"my_logs_index-000002": {
|
||||||
|
@ -351,4 +349,3 @@ reflect each index's role, with the newly created index as the write index.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -34,13 +34,12 @@ DELETE _ingest/pipeline/my-pipeline-id
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
@ -68,12 +67,11 @@ DELETE _ingest/pipeline/*
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
|
@ -33,7 +33,7 @@ GET _ingest/pipeline/my-pipeline-id
|
||||||
|
|
||||||
Example response:
|
Example response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"my-pipeline-id" : {
|
"my-pipeline-id" : {
|
||||||
|
@ -49,7 +49,6 @@ Example response:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
For each returned pipeline, the source and the version are returned.
|
For each returned pipeline, the source and the version are returned.
|
||||||
The version is useful for knowing which version of the pipeline the node has.
|
The version is useful for knowing which version of the pipeline the node has.
|
||||||
|
@ -96,7 +95,7 @@ GET /_ingest/pipeline/my-pipeline-id?filter_path=*.version
|
||||||
|
|
||||||
This should give a small response that makes it both easy and inexpensive to parse:
|
This should give a small response that makes it both easy and inexpensive to parse:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"my-pipeline-id" : {
|
"my-pipeline-id" : {
|
||||||
|
@ -104,7 +103,6 @@ This should give a small response that makes it both easy and inexpensive to par
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
|
@ -115,12 +113,11 @@ DELETE /_ingest/pipeline/my-pipeline-id
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
// TEST[continued]
|
// TEST[continued]
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
|
@ -29,13 +29,12 @@ DELETE /_ingest/pipeline/my-pipeline-id
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
// TEST[continued]
|
// TEST[continued]
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,7 @@ POST test/_doc/1?pipeline=drop_guests_network
|
||||||
|
|
||||||
Results in nothing indexed since the conditional evaluated to `true`.
|
Results in nothing indexed since the conditional evaluated to `true`.
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"_index": "test",
|
"_index": "test",
|
||||||
|
@ -211,7 +211,6 @@ Results in nothing indexed since the conditional evaluated to `true`.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
|
|
||||||
[[ingest-conditional-nullcheck]]
|
[[ingest-conditional-nullcheck]]
|
||||||
|
|
|
@ -196,7 +196,7 @@ GET /my-index/_mapping
|
||||||
|
|
||||||
The API returns the following response:
|
The API returns the following response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"my-index" : {
|
"my-index" : {
|
||||||
|
@ -220,7 +220,6 @@ The API returns the following response:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
|
@ -244,7 +243,7 @@ GET /my-index/_mapping/field/employee-id
|
||||||
|
|
||||||
The API returns the following response:
|
The API returns the following response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"my-index" : {
|
"my-index" : {
|
||||||
|
@ -263,7 +262,6 @@ The API returns the following response:
|
||||||
}
|
}
|
||||||
|
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
||||||
|
|
|
@ -494,7 +494,7 @@ GET index/_mappings?include_type_name=false
|
||||||
|
|
||||||
The above call returns
|
The above call returns
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"index": {
|
"index": {
|
||||||
|
@ -511,7 +511,7 @@ The above call returns
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
<1> Mappings are included directly under the `mappings` key, without a type name.
|
<1> Mappings are included directly under the `mappings` key, without a type name.
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
|
@ -529,7 +529,7 @@ PUT index/_doc/1
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"_index": "index",
|
"_index": "index",
|
||||||
|
@ -546,7 +546,6 @@ PUT index/_doc/1
|
||||||
"_primary_term": 1
|
"_primary_term": 1
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
Similarly, the `get` and `delete` APIs use the path `{index}/_doc/{id}`:
|
Similarly, the `get` and `delete` APIs use the path `{index}/_doc/{id}`:
|
||||||
|
|
||||||
|
@ -624,7 +623,7 @@ GET index/_doc/1
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"_index" : "index",
|
"_index" : "index",
|
||||||
|
@ -639,7 +638,6 @@ GET index/_doc/1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
==== Index templates
|
==== Index templates
|
||||||
|
|
|
@ -311,7 +311,7 @@ POST /test_index/_analyze
|
||||||
|
|
||||||
This results the following response:
|
This results the following response:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tokens": [
|
"tokens": [
|
||||||
|
@ -332,7 +332,6 @@ This results the following response:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
All the tokens in the returned order need to replace the query text in the percolator query:
|
All the tokens in the returned order need to replace the query text in the percolator query:
|
||||||
|
|
||||||
|
|
|
@ -106,10 +106,10 @@ POST _ml/anomaly_detectors/total-requests/_close
|
||||||
// TEST[skip:setup:server_metrics_openjob]
|
// TEST[skip:setup:server_metrics_openjob]
|
||||||
|
|
||||||
When the job is closed, you receive the following results:
|
When the job is closed, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"closed": true
|
"closed": true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -46,11 +46,10 @@ DELETE _ml/calendars/planned-outages/jobs/total-requests
|
||||||
When the job is removed from the calendar, you receive the following
|
When the job is removed from the calendar, you receive the following
|
||||||
results:
|
results:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"calendar_id": "planned-outages",
|
"calendar_id": "planned-outages",
|
||||||
"job_ids": []
|
"job_ids": []
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -45,10 +45,10 @@ DELETE _ml/calendars/planned-outages
|
||||||
// TEST[skip:setup:calendar_outages]
|
// TEST[skip:setup:calendar_outages]
|
||||||
|
|
||||||
When the calendar is deleted, you receive the following results:
|
When the calendar is deleted, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -50,10 +50,10 @@ DELETE _ml/datafeeds/datafeed-total-requests
|
||||||
// TEST[skip:setup:server_metrics_datafeed]
|
// TEST[skip:setup:server_metrics_datafeed]
|
||||||
|
|
||||||
When the {dfeed} is deleted, you receive the following results:
|
When the {dfeed} is deleted, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -40,10 +40,10 @@ DELETE _ml/_delete_expired_data
|
||||||
// TEST
|
// TEST
|
||||||
|
|
||||||
When the expired data is deleted, you receive the following response:
|
When the expired data is deleted, you receive the following response:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"deleted": true
|
"deleted": true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -46,10 +46,10 @@ DELETE _ml/filters/safe_domains
|
||||||
// TEST[skip:setup:ml_filter_safe_domains]
|
// TEST[skip:setup:ml_filter_safe_domains]
|
||||||
|
|
||||||
When the filter is deleted, you receive the following results:
|
When the filter is deleted, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -67,13 +67,13 @@ DELETE _ml/anomaly_detectors/total-requests
|
||||||
// TEST[skip:setup:server_metrics_job]
|
// TEST[skip:setup:server_metrics_job]
|
||||||
|
|
||||||
When the job is deleted, you receive the following results:
|
When the job is deleted, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
||||||
In the next example we delete the `total-requests` job asynchronously:
|
In the next example we delete the `total-requests` job asynchronously:
|
||||||
|
|
||||||
|
|
|
@ -49,10 +49,10 @@ DELETE _ml/anomaly_detectors/farequote/model_snapshots/1491948163
|
||||||
// TEST[skip:todo]
|
// TEST[skip:todo]
|
||||||
|
|
||||||
When the snapshot is deleted, you receive the following results:
|
When the snapshot is deleted, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"acknowledged": true
|
"acknowledged": true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -106,11 +106,11 @@ POST _ml/anomaly_detectors/total-requests/_flush
|
||||||
// TEST[skip:setup:server_metrics_openjob]
|
// TEST[skip:setup:server_metrics_openjob]
|
||||||
|
|
||||||
When the operation succeeds, you receive the following results:
|
When the operation succeeds, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"flushed": true,
|
"flushed": true,
|
||||||
"last_finalized_bucket_end": 1514804400000
|
"last_finalized_bucket_end": 1514804400000
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -76,7 +76,8 @@ GET _ml/calendars/planned-outages
|
||||||
// TEST[skip:setup:calendar_outages_addjob]
|
// TEST[skip:setup:calendar_outages_addjob]
|
||||||
|
|
||||||
The API returns the following results:
|
The API returns the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"count": 1,
|
"count": 1,
|
||||||
|
@ -90,4 +91,3 @@ The API returns the following results:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -74,7 +74,8 @@ GET _ml/filters/safe_domains
|
||||||
// TEST[skip:setup:ml_filter_safe_domains]
|
// TEST[skip:setup:ml_filter_safe_domains]
|
||||||
|
|
||||||
The API returns the following results:
|
The API returns the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"count": 1,
|
"count": 1,
|
||||||
|
@ -90,4 +91,3 @@ The API returns the following results:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -63,10 +63,10 @@ POST _ml/anomaly_detectors/total-requests/_open
|
||||||
// TEST[skip:setup:server_metrics_job]
|
// TEST[skip:setup:server_metrics_job]
|
||||||
|
|
||||||
When the job opens, you receive the following results:
|
When the job opens, you receive the following results:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"opened": true
|
"opened": true
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ POST _ml/calendars/planned-outages/events
|
||||||
|
|
||||||
The API returns the following results:
|
The API returns the following results:
|
||||||
|
|
||||||
[source,js]
|
[source,console-result]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
"events": [
|
"events": [
|
||||||
|
@ -101,4 +101,3 @@ The API returns the following results:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
|
@ -56,7 +56,8 @@ GET _ml/datafeeds/datafeed-farequote/_preview
|
||||||
// TEST[skip:setup:farequote_datafeed]
|
// TEST[skip:setup:farequote_datafeed]
|
||||||
|
|
||||||
The data that is returned for this example is as follows:
|
The data that is returned for this example is as follows:
|
||||||
[source,js]
|
|
||||||
|
[source,console-result]
|
||||||
----
|
----
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -79,4 +80,3 @@ The data that is returned for this example is as follows:
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
----
|
----
|
||||||
// TESTRESPONSE
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue