-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex_faces.config.js
63 lines (62 loc) · 2.13 KB
/
index_faces.config.js
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"settings": {
"number_of_shards" : 4,
"number_of_replicas" : 0,
"refresh_interval": "5s",
"analysis" : {
"char_filter" : {
"prepare_delimiter": {
"type": "mapping",
"mappings": [
".=>\\u0020",
"-=>\\u0020",
"_=>\\u0020",
"\\uFFFD=>\\u0020",
"\\u005C=>\\u0020"
]
}
},
"analyzer" : {
"lc_text" : {
"char_filter" : ["prepare_delimiter"],
"tokenizer" : "standard",
"filter": ["asciifolding", "lowercase"]
}
},
"normalizer" : {
"lc_facet" : {
"filter": ["asciifolding", "lowercase"]
}
}
}
},
"mappings": {
"_meta": { "lastmod": "" },
"dynamic": false,
"properties": {
"ts": {"type": "date"},
"any_face": {"type": "boolean"},
"first": {"type": "boolean"},
"count": {"type": "integer"},
"w0": {"type": "integer"},
"h0": {"type": "integer"},
"storage_id": {"type": "keyword", "doc_values": false},
"rect": {"type": "keyword", "index": false, "doc_values": false},
"relpos": {"type": "keyword", "index": false, "doc_values": false},
"relpos20": {"type": "keyword", "index": false, "doc_values": false},
"src": {"type": "keyword", "normalizer": "lc_facet"},
"user": {"type": "keyword", "normalizer": "lc_facet"},
"txt": {"type": "text", "analyzer": "lc_text"},
"names": {"type": "nested", "properties": {
"name": {"type": "text", "analyzer": "lc_text", "copy_to":["txt"], "fields": {
"facet": { "type": "keyword", "normalizer": "lc_facet", "doc_values": true }
}},
"id": {"type": "integer"},
"match_score": {"type": "float"},
"face_detect_score": {"type": "float"},
"detected_face_detect_score": {"type": "float"},
"score_all": {"type": "float"}
}}
}
}
}