arclight 0.1.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. checksums.yaml +5 -5
  2. data/.all-contributorsrc +450 -0
  3. data/.codeclimate.yml +5 -0
  4. data/.eslintrc +14 -4
  5. data/.github/workflows/ruby.yml +51 -0
  6. data/.gitignore +2 -0
  7. data/.rspec +0 -1
  8. data/.rubocop.yml +503 -48
  9. data/.rubocop_todo.yml +122 -0
  10. data/.solr_wrapper +2 -1
  11. data/CONTRIBUTING.md +5 -5
  12. data/CONTRIBUTORS.md +79 -0
  13. data/Gemfile +15 -10
  14. data/README.md +47 -32
  15. data/Rakefile +0 -1
  16. data/app/assets/images/blacklight/bookmark.svg +1 -0
  17. data/app/assets/images/blacklight/collection.svg +5 -0
  18. data/app/assets/images/blacklight/compact.svg +1 -25
  19. data/app/assets/images/blacklight/container.svg +5 -0
  20. data/app/assets/images/blacklight/ead.svg +1 -0
  21. data/app/assets/images/blacklight/file.svg +5 -0
  22. data/app/assets/images/blacklight/folder.svg +1 -0
  23. data/app/assets/images/blacklight/list.svg +1 -0
  24. data/app/assets/images/blacklight/minus.svg +1 -0
  25. data/app/assets/images/blacklight/online.svg +5 -0
  26. data/app/assets/images/blacklight/pdf.svg +1 -0
  27. data/app/assets/images/blacklight/plus.svg +1 -0
  28. data/app/assets/images/blacklight/repository.svg +1 -0
  29. data/app/assets/javascripts/arclight/arclight.js +4 -9
  30. data/app/assets/javascripts/arclight/oembed_controller.js +58 -0
  31. data/app/assets/javascripts/arclight/truncate_controller.js +27 -0
  32. data/app/assets/stylesheets/arclight/application.scss +4 -3
  33. data/app/assets/stylesheets/arclight/build.scss +4 -0
  34. data/app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss +117 -136
  35. data/app/assets/stylesheets/arclight/modules/highlights.scss +3 -2
  36. data/app/assets/stylesheets/arclight/modules/icons.scss +20 -0
  37. data/app/assets/stylesheets/arclight/modules/layout.scss +203 -16
  38. data/app/assets/stylesheets/arclight/modules/mastheads.scss +27 -45
  39. data/app/assets/stylesheets/arclight/modules/repositories.scss +3 -7
  40. data/app/assets/stylesheets/arclight/modules/repository_card.scss +5 -50
  41. data/app/assets/stylesheets/arclight/modules/search_form.scss +9 -0
  42. data/app/assets/stylesheets/arclight/modules/search_results.scss +200 -25
  43. data/app/assets/stylesheets/arclight/modules/show_collection.scss +21 -61
  44. data/app/assets/stylesheets/arclight/modules/truncator.scss +58 -0
  45. data/app/assets/stylesheets/arclight/responsive.scss +13 -0
  46. data/app/assets/stylesheets/arclight/variables.scss +25 -2
  47. data/app/components/arclight/access_component.html.erb +14 -0
  48. data/app/components/arclight/access_component.rb +25 -0
  49. data/app/components/arclight/bookmark_component.html.erb +25 -0
  50. data/app/components/arclight/bookmark_component.rb +9 -0
  51. data/app/components/arclight/breadcrumb_component.rb +50 -0
  52. data/app/components/arclight/breadcrumbs_hierarchy_component.html.erb +34 -0
  53. data/app/components/arclight/breadcrumbs_hierarchy_component.rb +25 -0
  54. data/app/components/arclight/collection_context_component.html.erb +12 -0
  55. data/app/components/arclight/collection_context_component.rb +27 -0
  56. data/app/components/arclight/collection_info_component.html.erb +28 -0
  57. data/app/components/arclight/collection_info_component.rb +26 -0
  58. data/app/components/arclight/collection_sidebar_component.html.erb +15 -0
  59. data/app/components/arclight/collection_sidebar_component.rb +39 -0
  60. data/app/{views/catalog/_search_results_repository.html.erb → components/arclight/constraints_component.html.erb} +2 -1
  61. data/app/components/arclight/constraints_component.rb +17 -0
  62. data/app/components/arclight/document_collection_context_component.html.erb +29 -0
  63. data/app/components/arclight/document_collection_context_component.rb +28 -0
  64. data/app/components/arclight/document_collection_hierarchy_component.html.erb +50 -0
  65. data/app/components/arclight/document_collection_hierarchy_component.rb +62 -0
  66. data/app/components/arclight/document_component.html.erb +39 -0
  67. data/app/components/arclight/document_component.rb +49 -0
  68. data/app/components/arclight/document_components_hierarchy_component.html.erb +20 -0
  69. data/app/components/arclight/document_components_hierarchy_component.rb +34 -0
  70. data/app/components/arclight/document_download_component.html.erb +24 -0
  71. data/app/components/arclight/document_download_component.rb +71 -0
  72. data/app/components/arclight/embed_component.html.erb +10 -0
  73. data/app/components/arclight/embed_component.rb +43 -0
  74. data/app/components/arclight/expand_hierarchy_button_component.html.erb +5 -0
  75. data/app/components/arclight/expand_hierarchy_button_component.rb +16 -0
  76. data/app/components/arclight/group_component.html.erb +34 -0
  77. data/app/components/arclight/group_component.rb +23 -0
  78. data/app/components/arclight/header_component.html.erb +5 -0
  79. data/app/components/arclight/header_component.rb +10 -0
  80. data/app/components/arclight/index_metadata_field_component.html.erb +16 -0
  81. data/app/components/arclight/index_metadata_field_component.rb +20 -0
  82. data/app/components/arclight/masthead_component.html.erb +17 -0
  83. data/app/components/arclight/masthead_component.rb +10 -0
  84. data/app/components/arclight/metadata_section_component.html.erb +13 -0
  85. data/app/components/arclight/metadata_section_component.rb +22 -0
  86. data/app/components/arclight/oembed_viewer_component.html.erb +5 -0
  87. data/app/components/arclight/oembed_viewer_component.rb +16 -0
  88. data/app/components/arclight/online_content_filter_component.html.erb +15 -0
  89. data/app/components/arclight/online_content_filter_component.rb +17 -0
  90. data/app/components/arclight/online_status_indicator_component.rb +19 -0
  91. data/app/components/arclight/repository_breadcrumb_component.html.erb +10 -0
  92. data/app/components/arclight/repository_breadcrumb_component.rb +17 -0
  93. data/app/components/arclight/repository_location_component.html.erb +20 -0
  94. data/app/components/arclight/repository_location_component.rb +10 -0
  95. data/app/components/arclight/search_bar_component.html.erb +27 -0
  96. data/app/components/arclight/search_bar_component.rb +32 -0
  97. data/app/components/arclight/search_result_breadcrumbs_component.html.erb +6 -0
  98. data/app/components/arclight/search_result_breadcrumbs_component.rb +37 -0
  99. data/app/components/arclight/search_result_component.html.erb +20 -0
  100. data/app/components/arclight/search_result_component.rb +18 -0
  101. data/app/components/arclight/search_result_title_component.html.erb +15 -0
  102. data/app/components/arclight/search_result_title_component.rb +15 -0
  103. data/app/components/arclight/sidebar_component.html.erb +9 -0
  104. data/app/components/arclight/sidebar_component.rb +19 -0
  105. data/app/components/arclight/upper_metadata_layout_component.rb +10 -0
  106. data/app/components/blacklight/icons/bookmark_component.rb +12 -0
  107. data/app/components/blacklight/icons/collection_component.rb +14 -0
  108. data/app/components/blacklight/icons/compact_component.rb +12 -0
  109. data/app/components/blacklight/icons/container_component.rb +14 -0
  110. data/app/components/blacklight/icons/ead_component.rb +12 -0
  111. data/app/components/blacklight/icons/file_component.rb +14 -0
  112. data/app/components/blacklight/icons/folder_component.rb +12 -0
  113. data/app/components/blacklight/icons/online_component.rb +15 -0
  114. data/app/components/blacklight/icons/pdf_component.rb +12 -0
  115. data/app/components/blacklight/icons/repository_component.rb +12 -0
  116. data/app/controllers/arclight/repositories_controller.rb +4 -4
  117. data/app/helpers/arclight/ead_format_helpers.rb +309 -0
  118. data/app/helpers/arclight/field_config_helpers.rb +26 -0
  119. data/app/helpers/arclight_helper.rb +55 -120
  120. data/app/models/arclight/document_downloads.rb +122 -0
  121. data/app/models/arclight/parent.rb +9 -9
  122. data/app/models/arclight/parents.rb +9 -4
  123. data/app/models/arclight/requests/aeon_external_request.rb +42 -0
  124. data/app/models/arclight/requests/aeon_web_ead.rb +52 -0
  125. data/app/models/arclight/requests/google_form.rb +8 -3
  126. data/app/models/concerns/arclight/catalog.rb +33 -11
  127. data/app/models/concerns/arclight/search_behavior.rb +22 -21
  128. data/app/models/concerns/arclight/solr_document.rb +88 -59
  129. data/app/presenters/arclight/show_presenter.rb +34 -7
  130. data/app/views/arclight/_requests.html.erb +7 -0
  131. data/app/views/arclight/repositories/_repository.html.erb +22 -41
  132. data/app/views/arclight/repositories/index.html.erb +5 -0
  133. data/app/views/arclight/repositories/show.html.erb +7 -8
  134. data/app/views/arclight/requests/_aeon_external_request_endpoint.html.erb +8 -0
  135. data/app/views/arclight/requests/_aeon_web_ead.html.erb +6 -0
  136. data/app/views/arclight/requests/_google_form.html.erb +4 -5
  137. data/app/views/catalog/_document_list.html.erb +8 -0
  138. data/app/views/catalog/_group.html.erb +4 -0
  139. data/app/views/catalog/_group_toggle.html.erb +10 -0
  140. data/app/views/catalog/_search_results_header.html.erb +3 -0
  141. data/app/views/catalog/hierarchy.html.erb +19 -0
  142. data/app/views/catalog/index.html.erb +16 -7
  143. data/app/views/shared/_breadcrumbs.html.erb +3 -15
  144. data/app/views/shared/_main_menu_links.html.erb +1 -1
  145. data/arclight.gemspec +22 -17
  146. data/config/breadcrumbs.rb +24 -0
  147. data/config/i18n-tasks.yml +134 -0
  148. data/config/importmap.rb +3 -0
  149. data/config/locales/arclight.en.yml +90 -55
  150. data/config/routes.rb +1 -1
  151. data/docker-compose.yml +16 -0
  152. data/lib/arclight/digital_object.rb +2 -1
  153. data/lib/arclight/engine.rb +23 -31
  154. data/lib/arclight/exceptions.rb +1 -0
  155. data/lib/arclight/hash_absolute_xpath.rb +62 -0
  156. data/lib/arclight/level_label.rb +46 -0
  157. data/lib/arclight/missing_id_strategy.rb +21 -0
  158. data/lib/arclight/normalized_date.rb +24 -20
  159. data/lib/arclight/normalized_id.rb +7 -2
  160. data/lib/arclight/normalized_title.rb +3 -0
  161. data/lib/arclight/repository.rb +72 -47
  162. data/lib/arclight/routes/hierarchy.rb +19 -0
  163. data/lib/arclight/routes.rb +8 -0
  164. data/lib/arclight/traject/ead2_component_config.rb +335 -0
  165. data/lib/arclight/traject/ead2_config.rb +316 -0
  166. data/lib/arclight/traject/nokogiri_namespaceless_reader.rb +22 -0
  167. data/lib/arclight/version.rb +1 -1
  168. data/lib/arclight/year_range.rb +13 -4
  169. data/lib/arclight.rb +6 -1
  170. data/lib/generators/arclight/install_generator.rb +110 -10
  171. data/lib/generators/arclight/templates/arclight.scss +6 -3
  172. data/lib/generators/arclight/templates/catalog_controller.rb +249 -173
  173. data/lib/generators/arclight/templates/config/downloads.yml +12 -0
  174. data/lib/generators/arclight/templates/config/locales/arclight.en.yml +61 -0
  175. data/lib/generators/arclight/templates/config/repositories.yml +42 -31
  176. data/lib/generators/arclight/update_generator.rb +1 -1
  177. data/lib/tasks/index.rake +25 -28
  178. data/package.json +15 -9
  179. data/solr/conf/schema.xml +101 -332
  180. data/solr/conf/solrconfig.xml +99 -164
  181. data/tasks/arclight.rake +22 -11
  182. data/template.rb +6 -11
  183. metadata +230 -105
  184. data/.travis.yml +0 -33
  185. data/app/assets/javascripts/arclight/collection_context.js +0 -18
  186. data/app/assets/javascripts/arclight/collection_navigation.js +0 -114
  187. data/app/assets/javascripts/arclight/collection_scrollspy.js +0 -6
  188. data/app/assets/javascripts/arclight/component_ancestors.js +0 -56
  189. data/app/assets/javascripts/arclight/oembed_viewer.js +0 -39
  190. data/app/assets/javascripts/arclight/truncator.js.erb +0 -23
  191. data/app/assets/stylesheets/arclight/bootstrap_overrides.scss +0 -3
  192. data/app/assets/stylesheets/arclight/modules/sidebar.scss +0 -16
  193. data/app/controllers/concerns/arclight/field_config_helpers.rb +0 -86
  194. data/app/factories/blacklight_field_configuration_factory.rb +0 -29
  195. data/app/views/arclight/repositories/_in_person_repository.html.erb +0 -19
  196. data/app/views/arclight/viewers/_oembed.html.erb +0 -7
  197. data/app/views/catalog/_arclight_document_index_header.html.erb +0 -13
  198. data/app/views/catalog/_arclight_document_index_header_online_contents_default.html.erb +0 -0
  199. data/app/views/catalog/_arclight_document_show_header.html.erb +0 -15
  200. data/app/views/catalog/_arclight_document_show_header_collection.html.erb +0 -12
  201. data/app/views/catalog/_arclight_index_compact_default.html.erb +0 -15
  202. data/app/views/catalog/_arclight_online_content_indicator.html.erb +0 -5
  203. data/app/views/catalog/_arclight_rangelimit.html.erb +0 -24
  204. data/app/views/catalog/_arclight_viewer_default.html.erb +0 -1
  205. data/app/views/catalog/_collection_contents.html.erb +0 -12
  206. data/app/views/catalog/_collection_count.html.erb +0 -7
  207. data/app/views/catalog/_collection_downloads.html.erb +0 -17
  208. data/app/views/catalog/_collection_online_contents.html.erb +0 -17
  209. data/app/views/catalog/_collection_overview.html.erb +0 -7
  210. data/app/views/catalog/_component_overview.html.erb +0 -46
  211. data/app/views/catalog/_context_card.html.erb +0 -27
  212. data/app/views/catalog/_context_sidebar.html.erb +0 -8
  213. data/app/views/catalog/_custom_metadata.html.erb +0 -16
  214. data/app/views/catalog/_home.html.erb +0 -1
  215. data/app/views/catalog/_index_breadcrumb_default.html.erb +0 -3
  216. data/app/views/catalog/_index_default.html.erb +0 -17
  217. data/app/views/catalog/_index_header.html.erb +0 -7
  218. data/app/views/catalog/_index_header_hierarchy_default.html.erb +0 -42
  219. data/app/views/catalog/_index_header_online_contents_default.html.erb +0 -1
  220. data/app/views/catalog/_index_hierarchy_default.html.erb +0 -28
  221. data/app/views/catalog/_index_online_contents_default.html.erb +0 -6
  222. data/app/views/catalog/_results_histogram.html.erb +0 -10
  223. data/app/views/catalog/_search_results.html.erb +0 -31
  224. data/app/views/catalog/_search_within_form.html.erb +0 -16
  225. data/app/views/catalog/_show_breadcrumbs_default.html.erb +0 -7
  226. data/app/views/catalog/_show_collection.html.erb +0 -40
  227. data/app/views/catalog/_show_component_sidebar.html.erb +0 -12
  228. data/app/views/catalog/_show_default.html.erb +0 -32
  229. data/app/views/catalog/_show_header.html.erb +0 -5
  230. data/app/views/catalog/_show_sidebar.html.erb +0 -30
  231. data/app/views/layouts/catalog_result.html.erb +0 -7
  232. data/app/views/shared/_context_sidebar.html.erb +0 -8
  233. data/app/views/shared/_header_navbar.html.erb +0 -54
  234. data/lib/arclight/custom_component.rb +0 -98
  235. data/lib/arclight/custom_document.rb +0 -93
  236. data/lib/arclight/indexer.rb +0 -9
  237. data/lib/arclight/shared_indexing_behavior.rb +0 -97
  238. data/lib/arclight/shared_terminology_behavior.rb +0 -65
  239. data/lib/arclight/solr_ead_indexer_ext.rb +0 -159
  240. data/lib/arclight/viewer.rb +0 -45
  241. data/lib/arclight/viewers/oembed.rb +0 -56
  242. data/lib/generators/arclight/templates/arclight.js +0 -2
  243. data/solr/conf/scripts.conf +0 -24
  244. data/vendor/assets/javascripts/responsiveTruncator.js +0 -69
  245. data/vendor/assets/javascripts/stickyfill.js +0 -480
  246. /data/app/assets/images/{blacklight → arclight}/logo.png +0 -0
  247. /data/{app/views/catalog/_arclight_document_index_header_hierarchy_default.html.erb → config/repositories.yml} +0 -0
data/solr/conf/schema.xml CHANGED
@@ -67,7 +67,7 @@
67
67
  -->
68
68
 
69
69
  <!-- The StrField type is not analyzed, but indexed/stored verbatim. -->
70
- <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
70
+ <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true" docValues="true"/>
71
71
 
72
72
  <!-- boolean type: "true" or "false" -->
73
73
  <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/>
@@ -89,29 +89,14 @@
89
89
  then default lucene sorting will be used which places docs without the
90
90
  field first in an ascending sort and last in a descending sort.
91
91
  -->
92
-
93
- <!--
94
- Default numeric field types. For faster range queries, consider the tint/tfloat/tlong/tdouble types.
95
- -->
96
- <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
97
- <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
98
- <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
99
- <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
100
-
101
92
  <!--
102
- Numeric field types that index each value at various levels of precision
103
- to accelerate range queries when the number of values between the range
104
- endpoints is large. See the javadoc for NumericRangeQuery for internal
105
- implementation details.
106
-
107
- Smaller precisionStep values (specified in bits) will lead to more tokens
108
- indexed per value, slightly larger index size, and faster range queries.
109
- A precisionStep of 0 disables indexing at different precision levels.
93
+ Numeric field types that index values using KD-trees.
94
+ Point fields don't support FieldCache, so they must have docValues="true" if needed for sorting, faceting, functions, etc.
110
95
  -->
111
- <fieldType name="tint" class="solr.TrieIntField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
112
- <fieldType name="tfloat" class="solr.TrieFloatField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
113
- <fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
114
- <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
96
+ <fieldType name="pint" class="solr.IntPointField" docValues="true"/>
97
+ <fieldType name="pfloat" class="solr.FloatPointField" docValues="true"/>
98
+ <fieldType name="plong" class="solr.LongPointField" docValues="true"/>
99
+ <fieldType name="pdouble" class="solr.DoublePointField" docValues="true"/>
115
100
 
116
101
  <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
117
102
  is a more restricted form of the canonical representation of dateTime
@@ -135,10 +120,8 @@
135
120
 
136
121
  Note: For faster range queries, consider the tdate type
137
122
  -->
138
- <fieldType name="date" class="solr.TrieDateField" omitNorms="true" precisionStep="0" positionIncrementGap="0"/>
139
-
140
- <!-- A Trie based date field for faster date range queries and date faceting. -->
141
- <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true" precisionStep="6" positionIncrementGap="0"/>
123
+ <!-- KD-tree versions of date fields -->
124
+ <fieldType name="pdate" class="solr.DatePointField" docValues="true"/>
142
125
 
143
126
  <!-- The "RandomSortField" is not used to store or search any
144
127
  data. You can declare fields of this type it in your schema
@@ -153,154 +136,61 @@
153
136
  -->
154
137
  <fieldType name="random" class="solr.RandomSortField" indexed="true" />
155
138
 
156
- <!-- solr.TextField allows the specification of custom text analyzers
157
- specified as a tokenizer and a list of token filters. Different
158
- analyzers may be specified for indexing and querying.
159
-
160
- The optional positionIncrementGap puts space between multiple fields of
161
- this type on the same document, with the purpose of preventing false phrase
162
- matching across fields.
163
-
164
- For more info on customizing your analyzer chain, please see
165
- http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
166
- -->
167
- <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
168
- <analyzer>
169
- <tokenizer class="solr.StandardTokenizerFactory"/>
170
- <filter class="solr.ICUFoldingFilterFactory" />
171
- <filter class="solr.SnowballPorterFilterFactory" language="English" />
172
- </analyzer>
173
- </fieldType>
174
-
175
- <!-- One can also specify an existing Analyzer class that has a
176
- default constructor via the class attribute on the analyzer element
177
- <fieldType name="text_greek" class="solr.TextField">
178
- <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/>
179
- </fieldType>
180
- -->
181
-
182
- <!-- A text field that only splits on whitespace for exact matching of words -->
183
- <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
139
+ <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
184
140
  <analyzer>
185
- <tokenizer class="solr.WhitespaceTokenizerFactory"/>
186
- </analyzer>
187
- </fieldType>
188
-
189
- <!-- A general text field that has reasonable, generic
190
- cross-language defaults: it tokenizes with StandardTokenizer,
191
- removes stop words from case-insensitive "stopwords.txt"
192
- (empty by default), and down cases. At query time only, it
193
- also applies synonyms. -->
194
- <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
195
- <analyzer type="index">
196
- <tokenizer class="solr.StandardTokenizerFactory"/>
197
- <!-- in this example, we will only use synonyms at query time
198
- <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
199
- -->
200
- <filter class="solr.LowerCaseFilterFactory"/>
201
- </analyzer>
202
- <analyzer type="query">
203
- <tokenizer class="solr.StandardTokenizerFactory"/>
204
- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
205
- <filter class="solr.LowerCaseFilterFactory"/>
141
+ <tokenizer class="solr.ICUTokenizerFactory" />
142
+ <filter class="solr.KeywordRepeatFilterFactory" />
143
+ <filter class="solr.ICUFoldingFilterFactory" />
144
+ <filter class="solr.PorterStemFilterFactory"/>
145
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
206
146
  </analyzer>
207
147
  </fieldType>
208
148
 
209
- <!-- A text field with defaults appropriate for English: it
210
- tokenizes with StandardTokenizer, removes English stop words
211
- (stopwords_en.txt), down cases, protects words from protwords.txt, and
212
- finally applies Porter's stemming. The query time analyzer
213
- also applies synonyms from synonyms.txt. -->
214
149
  <fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
215
150
  <analyzer type="index">
216
- <tokenizer class="solr.StandardTokenizerFactory"/>
217
- <!-- in this example, we will only use synonyms at query time
218
- <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
219
- -->
220
- <filter class="solr.LowerCaseFilterFactory"/>
221
- <filter class="solr.EnglishPossessiveFilterFactory"/>
151
+ <tokenizer class="solr.WhitespaceTokenizerFactory" />
152
+ <filter class="solr.KeywordRepeatFilterFactory" />
153
+ <filter class="solr.WordDelimiterGraphFilterFactory" />
154
+ <filter class="solr.SynonymGraphFilterFactory" synonyms="synonyms.txt" />
155
+ <filter class="solr.EnglishPossessiveFilterFactory"/>
156
+ <filter class="solr.ICUFoldingFilterFactory" />
222
157
  <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
223
- <!-- Optionally you may want to use this less aggressive stemmer instead of PorterStemFilterFactory:
224
- <filter class="solr.EnglishMinimalStemFilterFactory"/>
225
- -->
226
158
  <filter class="solr.PorterStemFilterFactory"/>
159
+ <filter class="solr.FlattenGraphFilterFactory"/> <!-- required on index analyzers after graph filters -->
160
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
227
161
  </analyzer>
228
162
  <analyzer type="query">
229
- <tokenizer class="solr.StandardTokenizerFactory"/>
230
- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
231
- <filter class="solr.LowerCaseFilterFactory"/>
232
- <filter class="solr.EnglishPossessiveFilterFactory"/>
163
+ <tokenizer class="solr.WhitespaceTokenizerFactory" />
164
+ <filter class="solr.KeywordRepeatFilterFactory" />
165
+ <filter class="solr.WordDelimiterGraphFilterFactory"/>
166
+ <filter class="solr.SynonymGraphFilterFactory" synonyms="synonyms.txt" />
167
+ <filter class="solr.ICUFoldingFilterFactory" />
168
+ <filter class="solr.EnglishPossessiveFilterFactory"/>
233
169
  <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
234
- <!-- Optionally you may want to use this less aggressive stemmer instead of PorterStemFilterFactory:
235
- <filter class="solr.EnglishMinimalStemFilterFactory"/>
236
- -->
237
170
  <filter class="solr.PorterStemFilterFactory"/>
171
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
238
172
  </analyzer>
239
173
  </fieldType>
240
174
 
241
- <!-- A text field with defaults appropriate for English, plus
242
- aggressive word-splitting and autophrase features enabled.
243
- This field is just like text_en, except it adds
244
- WordDelimiterFilter to enable splitting and matching of
245
- words on case-change, alpha numeric boundaries, and
246
- non-alphanumeric chars. This means certain compound word
247
- cases will work, for example query "wi fi" will match
248
- document "WiFi" or "wi-fi". However, other cases will still
249
- not match, for example if the query is "wifi" and the
250
- document is "wi fi" or if the query is "wi-fi" and the
251
- document is "wifi".
252
- -->
253
- <fieldType name="text_en_splitting" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
175
+ <fieldType name="identifier_match" class="solr.TextField" positionIncrementGap="100">
254
176
  <analyzer type="index">
255
177
  <tokenizer class="solr.WhitespaceTokenizerFactory"/>
256
- <!-- in this example, we will only use synonyms at query time
257
- <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
258
- -->
259
- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
260
- <filter class="solr.LowerCaseFilterFactory"/>
261
- <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
262
- <filter class="solr.PorterStemFilterFactory"/>
178
+ <filter class="solr.WordDelimiterGraphFilterFactory"
179
+ catenateWords="1"
180
+ catenateNumbers="1"
181
+ catenateAll="1"
182
+ />
183
+ <filter class="solr.ICUFoldingFilterFactory" />
184
+ <filter class="solr.FlattenGraphFilterFactory"/> <!-- required on index analyzers after graph filters -->
263
185
  </analyzer>
264
186
  <analyzer type="query">
265
187
  <tokenizer class="solr.WhitespaceTokenizerFactory"/>
266
- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
267
- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
268
- <filter class="solr.LowerCaseFilterFactory"/>
269
- <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
270
- <filter class="solr.PorterStemFilterFactory"/>
271
- </analyzer>
272
- </fieldType>
273
-
274
- <!-- Less flexible matching, but less false matches. Probably not ideal for product names,
275
- but may be good for SKUs. Can insert dashes in the wrong place and still match. -->
276
- <fieldType name="text_en_splitting_tight" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
277
- <analyzer>
278
- <tokenizer class="solr.WhitespaceTokenizerFactory"/>
279
- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>
280
- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_en.txt"/>
281
- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
282
- <filter class="solr.LowerCaseFilterFactory"/>
283
- <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
284
- <filter class="solr.EnglishMinimalStemFilterFactory"/>
285
- <!-- this filter can remove any duplicate tokens that appear at the same position - sometimes
286
- possible with WordDelimiterFilter in conjuncton with stemming. -->
287
- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
288
- </analyzer>
289
- </fieldType>
290
-
291
- <!-- Just like text_general except it reverses the characters of
292
- each token, to enable more efficient leading wildcard queries. -->
293
- <fieldType name="text_general_rev" class="solr.TextField" positionIncrementGap="100">
294
- <analyzer type="index">
295
- <tokenizer class="solr.StandardTokenizerFactory"/>
296
- <filter class="solr.LowerCaseFilterFactory"/>
297
- <filter class="solr.ReversedWildcardFilterFactory" withOriginal="true"
298
- maxPosAsterisk="3" maxPosQuestion="2" maxFractionAsterisk="0.33"/>
299
- </analyzer>
300
- <analyzer type="query">
301
- <tokenizer class="solr.StandardTokenizerFactory"/>
302
- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
303
- <filter class="solr.LowerCaseFilterFactory"/>
188
+ <filter class="solr.WordDelimiterGraphFilterFactory"
189
+ catenateWords="1"
190
+ catenateNumbers="1"
191
+ catenateAll="1"
192
+ />
193
+ <filter class="solr.ICUFoldingFilterFactory" />
304
194
  </analyzer>
305
195
  </fieldType>
306
196
 
@@ -308,31 +198,19 @@
308
198
  <analyzer>
309
199
  <tokenizer class="solr.StandardTokenizerFactory"/>
310
200
  <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
311
- <filter class="solr.StandardFilterFactory"/>
312
201
  <filter class="solr.LowerCaseFilterFactory"/>
313
202
  <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
314
203
  </analyzer>
315
204
  </fieldType>
316
205
 
317
- <fieldType class="solr.TextField" name="textSuggest" positionIncrementGap="100">
206
+ <fieldType name="textSuggest" class="solr.TextField" positionIncrementGap="100">
318
207
  <analyzer>
319
208
  <tokenizer class="solr.KeywordTokenizerFactory"/>
320
- <filter class="solr.StandardFilterFactory"/>
321
209
  <filter class="solr.LowerCaseFilterFactory"/>
322
210
  <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
323
211
  </analyzer>
324
212
  </fieldType>
325
213
 
326
- <!-- charFilter + WhitespaceTokenizer -->
327
- <!--
328
- <fieldType name="text_char_norm" class="solr.TextField" positionIncrementGap="100" >
329
- <analyzer>
330
- <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
331
- <tokenizer class="solr.WhitespaceTokenizerFactory"/>
332
- </analyzer>
333
- </fieldType>
334
- -->
335
-
336
214
  <!-- This is an example of using the KeywordTokenizer along
337
215
  With various TokenFilterFactories to produce a sortable field
338
216
  that does not include some properties of the source text
@@ -366,70 +244,11 @@
366
244
  </analyzer>
367
245
  </fieldType>
368
246
 
369
- <fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" >
370
- <analyzer>
371
- <tokenizer class="solr.StandardTokenizerFactory"/>
372
- <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
373
- </analyzer>
374
- </fieldtype>
375
-
376
- <fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" >
377
- <analyzer>
378
- <tokenizer class="solr.WhitespaceTokenizerFactory"/>
379
- <!--
380
- The DelimitedPayloadTokenFilter can put payloads on tokens... for example,
381
- a token of "foo|1.4" would be indexed as "foo" with a payload of 1.4f
382
- Attributes of the DelimitedPayloadTokenFilterFactory :
383
- "delimiter" - a one character delimiter. Default is | (pipe)
384
- "encoder" - how to encode the following value into a playload
385
- float -> org.apache.lucene.analysis.payloads.FloatEncoder,
386
- integer -> o.a.l.a.p.IntegerEncoder
387
- identity -> o.a.l.a.p.IdentityEncoder
388
- Fully Qualified class name implementing PayloadEncoder, Encoder must have a no arg constructor.
389
- -->
390
- <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
391
- </analyzer>
392
- </fieldtype>
393
-
394
- <!-- lowercases the entire field value, keeping it as a single token. -->
395
- <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
396
- <analyzer>
397
- <tokenizer class="solr.KeywordTokenizerFactory"/>
398
- <filter class="solr.LowerCaseFilterFactory" />
399
- </analyzer>
400
- </fieldType>
401
-
402
- <fieldType name="text_path" class="solr.TextField" positionIncrementGap="100">
403
- <analyzer>
404
- <tokenizer class="solr.PathHierarchyTokenizerFactory"/>
405
- </analyzer>
406
- </fieldType>
247
+ <!-- A specialized field for geospatial search filters and distance sorting. -->
248
+ <fieldType name="location" class="solr.LatLonPointSpatialField" docValues="true" />
407
249
 
408
- <!-- since fields of this type are by default not stored or indexed,
409
- any data added to them will be ignored outright. -->
410
- <fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
411
-
412
- <!-- This point type indexes the coordinates as separate fields (subFields)
413
- If subFieldType is defined, it references a type, and a dynamic field
414
- definition is created matching *___<typename>. Alternately, if
415
- subFieldSuffix is defined, that is used to create the subFields.
416
- Example: if subFieldType="double", then the coordinates would be
417
- indexed in fields myloc_0___double,myloc_1___double.
418
- Example: if subFieldSuffix="_d" then the coordinates would be indexed
419
- in fields myloc_0_d,myloc_1_d
420
- The subFields are an implementation detail of the fieldType, and end
421
- users normally should not need to know about them.
422
- -->
423
- <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
424
-
425
- <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
426
- <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
250
+ <fieldType name="_nest_path_" class="solr.NestPathField" />
427
251
 
428
- <!--
429
- A Geohash is a compact representation of a latitude longitude pair in a single field.
430
- See http://wiki.apache.org/solr/SpatialSearch
431
- -->
432
- <fieldtype name="geohash" class="solr.GeoHashField"/>
433
252
  </types>
434
253
 
435
254
 
@@ -459,10 +278,15 @@
459
278
 
460
279
  <!-- NOTE: this is not a full list of fields in the index; dynamic fields are also used -->
461
280
  <field name="id" type="string" indexed="true" stored="true" required="true" />
462
- <field name="_version_" type="long" indexed="true" stored="true" multiValued="false" />
463
- <field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>
464
- <!-- default, catch all search field -->
281
+ <field name="_version_" type="plong" indexed="true" stored="true" multiValued="false" />
282
+ <field name="timestamp" type="pdate" indexed="true" stored="true" default="NOW" multiValued="false"/>
283
+ <!-- default, catch all search field, also used for search term highlighting (requires stored="true") -->
465
284
  <field name="text" type="text" indexed="true" stored="true" multiValued="true"/>
285
+ <field name="unitid_identifier_match" type="identifier_match" indexed="true" stored="false" multiValued="true" />
286
+
287
+ <field name="_root_" type="string" indexed="true" stored="true" docValues="false" />
288
+ <field name="_nest_parent_" type="string" indexed="true" stored="true"/>
289
+ <field name="_nest_path_" type="_nest_path_" indexed="true" stored="true"/>
466
290
 
467
291
  <!-- Dynamic field definitions. If a field name is not found, dynamicFields
468
292
  will be used if the name matches any of the patterns.
@@ -471,37 +295,9 @@
471
295
  EXAMPLE: name="*_i" will match any field ending in _i (like myid_i, z_i)
472
296
  Longer patterns will be matched first. if equal size patterns
473
297
  both match, the first appearing in the schema will be used. -->
474
- <dynamicField name="*_i" type="int" indexed="true" stored="true"/>
475
- <dynamicField name="*_s" type="string" indexed="true" stored="true"/>
476
- <dynamicField name="*_l" type="long" indexed="true" stored="true"/>
477
- <dynamicField name="*_t" type="text" indexed="true" stored="true" multiValued="true"/>
478
- <dynamicField name="*_txt" type="text_general" indexed="true" stored="true" multiValued="true"/>
479
- <dynamicField name="*_b" type="boolean" indexed="true" stored="true"/>
480
- <dynamicField name="*_f" type="float" indexed="true" stored="true"/>
481
- <dynamicField name="*_d" type="double" indexed="true" stored="true"/>
482
-
483
- <!-- Type used to index the lat and lon components for the "location" FieldType -->
484
- <dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false"/>
485
-
486
- <dynamicField name="*_dt" type="date" indexed="true" stored="true"/>
487
- <dynamicField name="*_p" type="location" indexed="true" stored="true"/>
488
-
489
- <!-- some trie-coded dynamic fields for faster range queries -->
490
- <dynamicField name="*_ti" type="tint" indexed="true" stored="true"/>
491
- <dynamicField name="*_tl" type="tlong" indexed="true" stored="true"/>
492
- <dynamicField name="*_tf" type="tfloat" indexed="true" stored="true"/>
493
- <dynamicField name="*_td" type="tdouble" indexed="true" stored="true"/>
494
- <dynamicField name="*_tdt" type="tdate" indexed="true" stored="true"/>
495
-
496
- <dynamicField name="ignored_*" type="ignored" multiValued="true"/>
497
- <dynamicField name="attr_*" type="text_general" indexed="true" stored="true" multiValued="true"/>
498
-
499
298
  <dynamicField name="random_*" type="random" />
500
299
 
501
- <dynamicField name="*_display" type="string" indexed="false" stored="true" multiValued="true" />
502
- <dynamicField name="*_facet" type="string" indexed="true" stored="false" multiValued="true" />
503
300
  <dynamicField name="*_sort" type="alphaNumericSort" indexed="true" stored="false" multiValued="false" />
504
- <dynamicField name="*_unstem_search" type="text_general" indexed="true" stored="false" multiValued="true" />
505
301
  <dynamicField name="*spell" type="textSpell" indexed="true" stored="false" multiValued="true" />
506
302
  <dynamicField name="*suggest" type="textSuggest" indexed="true" stored="false" multiValued="true" />
507
303
 
@@ -511,19 +307,19 @@
511
307
  unknown fields indexed and/or stored by default -->
512
308
  <!--dynamicField name="*" type="ignored" multiValued="true" /-->
513
309
 
310
+ <!-- To play nice with atomic updates, only use non-stored fields for copyFields -->
514
311
  <dynamicField name="*_tesim" type="text_en" stored="true" indexed="true" multiValued="true" />
312
+ <dynamicField name="*_tesm" type="text_en" stored="true" indexed="false" multiValued="true" />
515
313
  <dynamicField name="*_teim" type="text_en" stored="false" indexed="true" multiValued="true" />
516
314
  <dynamicField name="*_si" type="string" stored="false" indexed="true" multiValued="false" />
517
315
  <dynamicField name="*_sim" type="string" stored="false" indexed="true" multiValued="true" />
518
316
  <dynamicField name="*_ssm" type="string" stored="true" indexed="false" multiValued="true" />
519
317
  <dynamicField name="*_ssi" type="string" stored="true" indexed="true" multiValued="false" />
520
318
  <dynamicField name="*_ssim" type="string" stored="true" indexed="true" multiValued="true" />
521
- <dynamicField name="*_dtsi" type="date" stored="true" indexed="true" multiValued="false" />
522
- <dynamicField name="*_dtsim" type="date" stored="true" indexed="true" multiValued="true" />
523
- <dynamicField name="*_bsi" type="boolean" stored="true" indexed="true" multiValued="false" />
524
- <dynamicField name="*_isim" type="int" stored="true" indexed="true" multiValued="true" />
525
- <dynamicField name="*_ii" type="int" stored="false" indexed="true" multiValued="false" />
526
-
319
+ <dynamicField name="*_isim" type="pint" stored="true" indexed="true" multiValued="true" />
320
+ <dynamicField name="*_is" type="pint" stored="true" indexed="false" multiValued="false" />
321
+ <dynamicField name="*_ii" type="pint" stored="false" indexed="true" multiValued="false" />
322
+ <dynamicField name="*_isi" type="pint" stored="true" indexed="true" multiValued="false" />
527
323
  </fields>
528
324
 
529
325
  <!-- Field to use to determine and enforce document uniqueness.
@@ -531,11 +327,6 @@
531
327
  -->
532
328
  <uniqueKey>id</uniqueKey>
533
329
 
534
- <!-- field for the QueryParser to use when an explicit fieldname is absent -->
535
- <defaultSearchField>text</defaultSearchField>
536
-
537
- <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
538
- <solrQueryParser defaultOperator="OR"/>
539
330
 
540
331
  <!-- copyField commands copy one field to another at the time a document
541
332
  is added to the index. It's used either to index the same field differently,
@@ -543,47 +334,51 @@
543
334
  <!-- Copy Fields -->
544
335
 
545
336
  <!-- field-based searches -->
546
- <copyField source="normalized_title_ssm" dest="title_tesim"/>
547
- <copyField source="places_ssm" dest="place_tesim"/>
548
- <copyField source="names_ssim" dest="name_tesim"/>
549
- <copyField source="access_subjects_ssim" dest="subject_tesim"/>
337
+ <copyField source="normalized_title_ssm" dest="normalized_title_teim"/>
338
+ <copyField source="places_ssim" dest="place_teim"/>
339
+ <copyField source="names_ssim" dest="name_teim"/>
340
+ <copyField source="access_subjects_ssim" dest="subject_teim"/>
341
+ <copyField source="containers_ssim" dest="container_teim" />
550
342
 
551
343
  <!-- The catch all `text` field -->
552
344
  <!-- grab the fielded searches -->
553
345
  <copyField source="normalized_title_ssm" dest="text" />
554
- <copyField source="places_ssm" dest="text" />
346
+ <copyField source="places_ssim" dest="text" />
555
347
  <copyField source="names_ssim" dest="text" />
556
348
  <copyField source="access_subjects_ssim" dest="text" />
557
- <!-- grab the searchable notes -->
558
- <copyField source="abstract_teim" dest="text" />
559
- <copyField source="accessrestricct_teim" dest="text" />
560
- <copyField source="accruals_teim" dest="text" />
561
- <copyField source="acqinfo_teim" dest="text" />
562
- <copyField source="altformavail_teim" dest="text" />
563
- <copyField source="appraisal_teim" dest="text" />
564
- <copyField source="arrangement_teim" dest="text" />
565
- <copyField source="bibliography_teim" dest="text" />
566
- <copyField source="bioghist_teim" dest="text" />
567
- <copyField source="custodhist_teim" dest="text" />
568
- <copyField source="did_note_teim" dest="text" />
569
- <copyField source="fileplan_teim" dest="text" />
570
- <copyField source="materialspec_teim" dest="text" />
571
- <copyField source="note_teim" dest="text" />
572
- <copyField source="odd_teim" dest="text" />
573
- <copyField source="originalsloc_teim" dest="text" />
574
- <copyField source="physdesc_teim" dest="text" />
575
- <copyField source="physloc_teim" dest="text" />
576
- <copyField source="phystech_teim" dest="text" />
577
- <copyField source="processinfo_teim" dest="text" />
578
- <copyField source="relatedmaterial_teim" dest="text" />
579
- <copyField source="scopecontent_teim" dest="text" />
580
- <copyField source="separatedmaterial_teim" dest="text" />
581
- <copyField source="userestrict_teim" dest="text" />
349
+ <copyField source="containers_ssim" dest="text" />
350
+
351
+ <!-- grab the searchable notes (SEARCHABLE_NOTES_FIELDS) -->
352
+ <copyField source="accessrestrict_tesim" dest="text" />
353
+ <copyField source="accruals_tesim" dest="text" />
354
+ <copyField source="acqinfo_tesim" dest="text" />
355
+ <copyField source="altformavail_tesim" dest="text" />
356
+ <copyField source="appraisal_tesim" dest="text" />
357
+ <copyField source="arrangement_tesim" dest="text" />
358
+ <copyField source="bibliography_tesim" dest="text" />
359
+ <copyField source="bioghist_tesim" dest="text" />
360
+ <copyField source="custodhist_tesim" dest="text" />
361
+ <copyField source="fileplan_tesim" dest="text" />
362
+ <copyField source="indexes_tesim" dest="text" />
363
+ <copyField source="language_ssim" dest="text" />
364
+ <copyField source="odd_tesim" dest="text" />
365
+ <copyField source="originalsloc_tesim" dest="text" />
366
+ <copyField source="parent_unittitles_tesim" dest="text" />
367
+ <copyField source="physdesc_tesim" dest="text" />
368
+ <copyField source="phystech_tesim" dest="text" />
369
+ <copyField source="processinfo_tesim" dest="text" />
370
+ <copyField source="relatedmaterial_tesim" dest="text" />
371
+ <copyField source="scopecontent_tesim" dest="text" />
372
+ <copyField source="separatedmaterial_tesim" dest="text" />
373
+ <copyField source="userestrict_tesim" dest="text" />
374
+ <!-- did searchable notes (DID_SEARCHABLE_NOTES_FIELDS) -->
375
+ <copyField source="abstract_tesim" dest="text" />
376
+ <copyField source="materialspec_tesim" dest="text" />
377
+ <copyField source="physloc_tesim" dest="text" />
378
+ <copyField source="note_tesim" dest="text" />
582
379
  <!-- grab structured data that's important -->
583
380
  <copyField source="unitid_ssm" dest="text" />
584
-
585
- <!-- unstemmed fields -->
586
- <!-- <copyField source="title_t" dest="title_unstem_search"/> -->
381
+ <copyField source="unitid_ssm" dest="unitid_identifier_match" />
587
382
 
588
383
  <!-- sort fields -->
589
384
  <copyField source="normalized_title_ssm" dest="title_sort"/> <!-- TODO: assumes single values -->
@@ -596,36 +391,10 @@
596
391
 
597
392
  <!-- for suggestions -->
598
393
  <copyField source="normalized_title_ssm" dest="suggest"/>
599
- <copyField source="collection_sim" dest="suggest"/>
394
+ <copyField source="collection_ssim" dest="suggest"/>
600
395
  <copyField source="names_ssim" dest="suggest"/>
601
- <copyField source="repository_sim" dest="suggest"/>
396
+ <copyField source="repository_ssim" dest="suggest"/>
602
397
  <copyField source="places_ssim" dest="suggest"/>
603
398
  <copyField source="access_subjects_ssim" dest="suggest"/>
604
399
 
605
- <!-- Above, multiple source fields are copied to the [text] field.
606
- Another way to map multiple source fields to the same
607
- destination field is to use the dynamic field syntax.
608
- copyField also supports a maxChars to copy setting. -->
609
-
610
- <!-- <copyField source="*_t" dest="text" maxChars="3000"/> -->
611
-
612
- <!-- copy name to alphaNameSort, a field designed for sorting by name -->
613
- <!-- <copyField source="name" dest="alphaNameSort"/> -->
614
-
615
-
616
- <!-- Similarity is the scoring routine for each document vs. a query.
617
- A custom similarity may be specified here, but the default is fine
618
- for most applications. -->
619
- <!-- <similarity class="org.apache.lucene.search.DefaultSimilarity"/> -->
620
- <!-- ... OR ...
621
- Specify a SimilarityFactory class name implementation
622
- allowing parameters to be used.
623
- -->
624
- <!--
625
- <similarity class="com.example.solr.CustomSimilarityFactory">
626
- <str name="paramkey">param value</str>
627
- </similarity>
628
- -->
629
-
630
-
631
400
  </schema>