File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 10
10
11
11
#### Using curl
12
12
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'
14
14
15
15
#### Using Console (fka Sense)
16
16
17
- GET /enron/_search?q=subject:monetary&fields =subject
17
+ GET /enron/_search?q=subject:monetary&_source_include =subject
18
18
19
19
## Search for text in multiple fields
20
20
26
26
27
27
#### Using curl
28
28
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'
30
30
31
31
#### Using Console (fka Sense)
32
32
33
- GET /enron/_search?q=subject:monetary+body:monetary&fields =subject
33
+ GET /enron/_search?q=subject:monetary+body:monetary&_source_include =subject
34
34
35
35
## Search for a phrase
36
36
42
42
43
43
#### Using curl
44
44
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'
46
46
{
47
47
"query": {
48
48
"match_phrase": {
53
53
54
54
#### Using Console (fka Sense)
55
55
56
- POST /enron/_search
56
+ POST /enron/_search?_source_include=subject
57
57
{
58
58
"query": {
59
59
"match_phrase": {
60
60
"body": "monetary fund"
61
61
}
62
- },
63
- "fields": [
64
- "subject"
65
- ]
62
+ }
66
63
}
You can’t perform that action at this time.
0 commit comments