Skip to content

Commit

Permalink
Fix query example.
Browse files Browse the repository at this point in the history
  • Loading branch information
afoucret authored Oct 30, 2024
1 parent 314bfc8 commit fd003c8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/reference/scripting/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,15 @@ PUT my-index-000001/_doc/2?refresh
GET my-index-000001/_search
{
"query": { <1>
"function_score": {
"query": {
"query": {
"script_score": {
"query": { <1>
"match": {
"text": "quick brown fox"
}
},
"script_score": {
"script": {
"source": "_termStats.termFreq().getAverage()" <2>
}
"script": {
"source": "_termStats.termFreq().getAverage()" <2>
}
}
}
Expand Down

0 comments on commit fd003c8

Please sign in to comment.