File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ curl -XPOST 'http://localhost:9200/cities/_search?pretty' -d'
35
35
'
36
36
37
37
38
- ## With ` not_analyzed ` mapping
38
+ ## With ` keyword ` mapping
39
39
40
40
### Cleanup
41
41
curl -XDELETE 'http://localhost:9200/cities '
@@ -47,8 +47,7 @@ curl -XPUT 'http://localhost:9200/cities' -d'
47
47
"city": {
48
48
"properties": {
49
49
"city": {
50
- "type": "string",
51
- "index": "not_analyzed"
50
+ "type": "keyword"
52
51
}
53
52
}
54
53
}
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ curl -XPOST 'http://localhost:9200/enron' -d'
9
9
"mappings": {
10
10
"email": {
11
11
"properties": {
12
- "sender": { "type": "string", "index": "not_analyzed " },
13
- "recipients": { "type": "string", "index": "not_analyzed " },
14
- "cc": { "type": "string", "index": "not_analyzed " },
15
- "bcc": { "type": "string", "index": "not_analyzed " },
12
+ "sender": { "type": "keyword " },
13
+ "recipients": { "type": "keyword " },
14
+ "cc": { "type": "keyword " },
15
+ "bcc": { "type": "keyword " },
16
16
"subject": { "type": "string", "analyzer": "english" },
17
17
"body": { "type": "string", "analyzer": "english" }
18
18
}
You can’t perform that action at this time.
0 commit comments