mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
[DOCS] Replace twitter
dataset in docs (#60604)
This commit is contained in:
parent
41a93d7fd8
commit
ae01606785
34 changed files with 151 additions and 117 deletions
|
@ -163,7 +163,7 @@ POST _scripts/calculate-score
|
|||
}
|
||||
}
|
||||
-----------------------------------
|
||||
// TEST[setup:twitter]
|
||||
// TEST[setup:my_index]
|
||||
|
||||
You may also specify a context as part of the url path to compile a
|
||||
stored script against that specific context in the form of
|
||||
|
@ -179,7 +179,7 @@ POST _scripts/calculate-score/score
|
|||
}
|
||||
}
|
||||
-----------------------------------
|
||||
// TEST[setup:twitter]
|
||||
// TEST[setup:my_index]
|
||||
|
||||
This same script can be retrieved with:
|
||||
|
||||
|
@ -193,7 +193,7 @@ Stored scripts can be used by specifying the `id` parameters as follows:
|
|||
|
||||
[source,console]
|
||||
--------------------------------------------------
|
||||
GET twitter/_search
|
||||
GET my-index-000001/_search
|
||||
{
|
||||
"query": {
|
||||
"script_score": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue