File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1010
1111#### Using curl
1212
13- curl 'http://localhost:9200/enron/_search?pretty&q=subject:monetary&fields =subject'
13+ curl 'http://localhost:9200/enron/_search?pretty&q=subject:monetary&_source_include =subject'
1414
1515#### Using Console (fka Sense)
1616
17- GET /enron/_search?q=subject:monetary&fields =subject
17+ GET /enron/_search?q=subject:monetary&_source_include =subject
1818
1919## Search for text in multiple fields
2020
2626
2727#### Using curl
2828
29- curl 'http://localhost:9200/enron/_search?pretty&q=subject:monetary+body:monetary&fields =subject'
29+ curl 'http://localhost:9200/enron/_search?pretty&q=subject:monetary+body:monetary&_source_include =subject'
3030
3131#### Using Console (fka Sense)
3232
33- GET /enron/_search?q=subject:monetary+body:monetary&fields =subject
33+ GET /enron/_search?q=subject:monetary+body:monetary&_source_include =subject
3434
3535## Search for a phrase
3636
4242
4343#### Using curl
4444
45- curl -XPOST 'http://localhost:9200/enron/_search?pretty&fields =subject' -d'
45+ curl -XPOST 'http://localhost:9200/enron/_search?pretty&_source_include =subject' -d'
4646 {
4747 "query": {
4848 "match_phrase": {
5353
5454#### Using Console (fka Sense)
5555
56- POST /enron/_search
56+ POST /enron/_search?_source_include=subject
5757 {
5858 "query": {
5959 "match_phrase": {
6060 "body": "monetary fund"
6161 }
62- },
63- "fields": [
64- "subject"
65- ]
62+ }
6663 }
You can’t perform that action at this time.
0 commit comments