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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4461d22a5d4531a8ddf037db23a49802daf2809c997ad5004d1df38efd47b3ce
4
- data.tar.gz: fe7b4728cb10b2241b8b45b241d08eb0fa34d5ee9904fd09d8f7665d1fc4f047
3
+ metadata.gz: 6fb827f726a51b3b07fdf75d019a4d73dacbc456b3e98d984c3cdf08bf5ab16c
4
+ data.tar.gz: 7a16c14f3f078640f44fb0a65865867806d8ddb7613b517c9df21781e4ef1f72
5
5
  SHA512:
6
- metadata.gz: c402bf32e0fbb80a87a0204269f9c95a3b772f19e82342be4b35db952e3444398958527ec92b3a61082d0dd6c4c75e14285638941756f6efb02f003e68fc29c5
7
- data.tar.gz: 75210f819de79a6fbcc569bcf4be859d04c1b1f4c8144bbd4783ec4a2d19cb83ddc26fc0e754f7abb8fa5807b2ec48e4278f572252b332c5a8a728804d8d436e
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
- "type": "text"
5
- },
6
- "abstract": {
7
- "type": "text",
8
- "copy_to": "full_text"
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
- "caption": {
23
- "type": "text",
24
- "copy_to": "full_text"
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
- "contributor": {
39
- "type": "nested",
40
- "properties": {
41
- "role": {
42
- "type": "keyword"
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
- "copy_to": ["full_text", "contributor_facet"]
24
+ "fields": {
25
+ "keyword": { "type": "keyword" }
26
+ }
50
27
  }
51
28
  }
52
29
  },
53
- "date": {
54
- "type": "text"
55
- },
56
- "description": {
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
- "location": {
76
- "type": "geo_point"
77
- },
78
- "permalink": {
79
- "type": "keyword"
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
- "subject": {
95
- "type": "nested",
96
- "properties": {
97
- "role": {
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
- "copy_to": ["full_text", "subject_facet"]
47
+ "fields": {
48
+ "keyword": { "type": "keyword" }
49
+ },
50
+ "copy_to": ["full_text"]
106
51
  }
107
52
  }
108
53
  },
109
- "title": {
110
- "type": "object",
111
- "properties": {
112
- "primary": {
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
- "copy_to": "full_text"
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
- "facets": {
139
- "match": "*_facet",
67
+ "labels": {
68
+ "path_match": "*.label",
140
69
  "mapping": {
141
- "type": "keyword"
70
+ "type": "text",
71
+ "fields": {
72
+ "keyword": { "type": "keyword" }
73
+ },
74
+ "copy_to": ["full_text"]
142
75
  }
143
76
  }
144
77
  },
145
78
  {
146
- "nested": {
147
- "match": "*_nested",
79
+ "strings": {
80
+ "match_mapping_type": "string",
148
81
  "mapping": {
149
- "type": "nested"
82
+ "type": "text",
83
+ "fields": {
84
+ "keyword": {
85
+ "type": "keyword",
86
+ "ignore_above": 512
87
+ }
88
+ }
150
89
  }
151
90
  }
152
91
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CommonIndexer
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
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.2.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-23 00:00:00.000000000 Z
12
+ date: 2018-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: active-fedora