common_indexer 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/schema.json +60 -121
- data/lib/common_indexer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fb827f726a51b3b07fdf75d019a4d73dacbc456b3e98d984c3cdf08bf5ab16c
|
4
|
+
data.tar.gz: 7a16c14f3f078640f44fb0a65865867806d8ddb7613b517c9df21781e4ef1f72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e58d21dca8ee65e88f883b5ab006c09df8fadc4a772659f67db5ab5a029c84c0a97c01ab3f23523d99415b6ab27ab74370a228f35ff646bb3ed5f4690d9d3a02
|
7
|
+
data.tar.gz: edc9f062d04b2ea413f3c62d08f77fc5e4b6f78e3032e25ddd17b8f6a6968738b7d3978d08f42194cbeb1f0980adaf3f9c3b054e8b801a5a378791476ebebe8e
|
data/config/schema.json
CHANGED
@@ -1,152 +1,91 @@
|
|
1
1
|
{
|
2
2
|
"properties": {
|
3
|
-
"full_text": {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
"
|
8
|
-
|
9
|
-
|
10
|
-
"admin_set": {
|
11
|
-
"type": "nested",
|
12
|
-
"properties": {
|
13
|
-
"id": {
|
14
|
-
"type": "keyword"
|
15
|
-
},
|
16
|
-
"title": {
|
17
|
-
"type": "text",
|
18
|
-
"copy_to": ["full_text", "admin_set_facet"]
|
19
|
-
}
|
3
|
+
"full_text": { "type": "text" }
|
4
|
+
},
|
5
|
+
"dynamic_templates": [
|
6
|
+
{
|
7
|
+
"facets": {
|
8
|
+
"match": "*_facet",
|
9
|
+
"mapping": { "type": "keyword" }
|
20
10
|
}
|
21
11
|
},
|
22
|
-
|
23
|
-
"
|
24
|
-
|
25
|
-
|
26
|
-
"collection": {
|
27
|
-
"type": "nested",
|
28
|
-
"properties": {
|
29
|
-
"id": {
|
30
|
-
"type": "keyword"
|
31
|
-
},
|
32
|
-
"title": {
|
33
|
-
"type": "text",
|
34
|
-
"copy_to": ["full_text", "collection_facet"]
|
35
|
-
}
|
12
|
+
{
|
13
|
+
"latlong": {
|
14
|
+
"match": "*_geo",
|
15
|
+
"mapping": { "type": "geo_point" }
|
36
16
|
}
|
37
17
|
},
|
38
|
-
|
39
|
-
"
|
40
|
-
|
41
|
-
"
|
42
|
-
|
43
|
-
},
|
44
|
-
"uri": {
|
45
|
-
"type": "keyword"
|
46
|
-
},
|
47
|
-
"label": {
|
18
|
+
{
|
19
|
+
"date_text": {
|
20
|
+
"match_pattern": "regex",
|
21
|
+
"match": "^date",
|
22
|
+
"mapping": {
|
48
23
|
"type": "text",
|
49
|
-
"
|
24
|
+
"fields": {
|
25
|
+
"keyword": { "type": "keyword" }
|
26
|
+
}
|
50
27
|
}
|
51
28
|
}
|
52
29
|
},
|
53
|
-
|
54
|
-
"
|
55
|
-
|
56
|
-
|
57
|
-
"type": "text"
|
58
|
-
},
|
59
|
-
"keyword": {
|
60
|
-
"type": "keyword",
|
61
|
-
"copy_to": "full_text"
|
62
|
-
},
|
63
|
-
"language": {
|
64
|
-
"type": "nested",
|
65
|
-
"properties": {
|
66
|
-
"uri": {
|
67
|
-
"type": "keyword"
|
68
|
-
},
|
69
|
-
"label": {
|
70
|
-
"type": "text",
|
71
|
-
"copy_to": ["full_text", "language_facet"]
|
72
|
-
}
|
30
|
+
{
|
31
|
+
"ids": {
|
32
|
+
"path_match": "*.id",
|
33
|
+
"mapping": { "type": "keyword" }
|
73
34
|
}
|
74
35
|
},
|
75
|
-
|
76
|
-
"
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
},
|
81
|
-
"provenance": {
|
82
|
-
"type": "text"
|
83
|
-
},
|
84
|
-
"publisher": {
|
85
|
-
"type": "text",
|
86
|
-
"copy_to": "publisher_facet"
|
87
|
-
},
|
88
|
-
"rights_holder": {
|
89
|
-
"type": "text"
|
90
|
-
},
|
91
|
-
"source": {
|
92
|
-
"type": "text"
|
36
|
+
{
|
37
|
+
"uris": {
|
38
|
+
"path_match": "*.uri",
|
39
|
+
"mapping": { "type": "keyword" }
|
40
|
+
}
|
93
41
|
},
|
94
|
-
|
95
|
-
"
|
96
|
-
|
97
|
-
"
|
98
|
-
"type": "keyword"
|
99
|
-
},
|
100
|
-
"uri": {
|
101
|
-
"type": "keyword"
|
102
|
-
},
|
103
|
-
"label": {
|
42
|
+
{
|
43
|
+
"titles": {
|
44
|
+
"path_match": "title.*",
|
45
|
+
"mapping": {
|
104
46
|
"type": "text",
|
105
|
-
"
|
47
|
+
"fields": {
|
48
|
+
"keyword": { "type": "keyword" }
|
49
|
+
},
|
50
|
+
"copy_to": ["full_text"]
|
106
51
|
}
|
107
52
|
}
|
108
53
|
},
|
109
|
-
|
110
|
-
"
|
111
|
-
|
112
|
-
"
|
113
|
-
"type": "text",
|
114
|
-
"copy_to": "full_text"
|
115
|
-
},
|
116
|
-
"alternate": {
|
54
|
+
{
|
55
|
+
"nested_titles": {
|
56
|
+
"path_match": "*.title",
|
57
|
+
"mapping": {
|
117
58
|
"type": "text",
|
118
|
-
"
|
59
|
+
"fields": {
|
60
|
+
"keyword": { "type": "keyword" }
|
61
|
+
},
|
62
|
+
"copy_to": ["full_text"]
|
119
63
|
}
|
120
64
|
}
|
121
65
|
},
|
122
|
-
"visibility": {
|
123
|
-
"type": "keyword",
|
124
|
-
"copy_to": "visibility_facet"
|
125
|
-
},
|
126
|
-
"expanded_date": {
|
127
|
-
"type": "date"
|
128
|
-
},
|
129
|
-
"year": {
|
130
|
-
"type": "integer"
|
131
|
-
},
|
132
|
-
"extra_fields": {
|
133
|
-
"type": "nested"
|
134
|
-
}
|
135
|
-
},
|
136
|
-
"dynamic_templates": [
|
137
66
|
{
|
138
|
-
"
|
139
|
-
"
|
67
|
+
"labels": {
|
68
|
+
"path_match": "*.label",
|
140
69
|
"mapping": {
|
141
|
-
"type": "
|
70
|
+
"type": "text",
|
71
|
+
"fields": {
|
72
|
+
"keyword": { "type": "keyword" }
|
73
|
+
},
|
74
|
+
"copy_to": ["full_text"]
|
142
75
|
}
|
143
76
|
}
|
144
77
|
},
|
145
78
|
{
|
146
|
-
"
|
147
|
-
"
|
79
|
+
"strings": {
|
80
|
+
"match_mapping_type": "string",
|
148
81
|
"mapping": {
|
149
|
-
"type": "
|
82
|
+
"type": "text",
|
83
|
+
"fields": {
|
84
|
+
"keyword": {
|
85
|
+
"type": "keyword",
|
86
|
+
"ignore_above": 512
|
87
|
+
}
|
88
|
+
}
|
150
89
|
}
|
151
90
|
}
|
152
91
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: common_indexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Klein
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-08-
|
12
|
+
date: 2018-08-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: active-fedora
|