-
Notifications
You must be signed in to change notification settings - Fork 0
/
query-verses-text.curl
35 lines (32 loc) · 1.04 KB
/
query-verses-text.curl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FORMATTED
curl -H "kbn-xsrf: reporting" -H "Content-Type: application/json" -XPOST --insecure -u elastic:4NYmsBkxQ11s_1x1diVN https://localhost:9200/bible-book/_search -d "
{
\"_source\": false,
\"query\": {
\"nested\": {
\"path\": \"chapters.verses\",
\"query\": {
\"match\": {
\"chapters.verses.text\": \"consolation\"
}
},
\"inner_hits\": {}
}
}
}"
curl -H "kbn-xsrf: reporting" -H "Content-Type: application/json" -XPOST --insecure -u elastic:4NYmsBkxQ11s_1x1diVN https://localhost:9200/bible-book/_search -d "{ \"_source\": false, \"query\": { \"nested\": { \"path\": \"chapters.verses\", \"query\": { \"match\": { \"chapters.verses.text\": \"consolation\" } }, \"inner_hits\": {} } }}"
POST bible-book/_search
{
"_source": false,
"query": {
"nested": {
"path": "chapters.verses",
"query": {
"match": {
"chapters.verses.text": "consolation"
}
},
"inner_hits": {}
}
}
}