parent
9e81e4c09b
commit
84636557e1
|
@ -12,7 +12,7 @@ GET /_search
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"template": {
|
"template": {
|
||||||
"query": { "match": { "text": "{{query_string}}" }}},
|
"query": { "match": { "text": "{{query_string}}" }},
|
||||||
"params" : {
|
"params" : {
|
||||||
"query_string" : "all about search"
|
"query_string" : "all about search"
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ GET /_search
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"template": {
|
"template": {
|
||||||
"query": "{ \"match\": { \"text\": \"{{query_string}}\" }}}", <1>
|
"query": "{ \"match\": { \"text\": \"{{query_string}}\" }}", <1>
|
||||||
"params" : {
|
"params" : {
|
||||||
"query_string" : "all about search"
|
"query_string" : "all about search"
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ Alternatively, you can register a query template in the special `.scripts` index
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
PUT /_search/template/my_template
|
PUT /_search/template/my_template
|
||||||
{
|
{
|
||||||
"template": { "match": { "text": "{{query_string}}" }}},
|
"template": { "match": { "text": "{{query_string}}" }},
|
||||||
}
|
}
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue