hydra-editor 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +13 -5
  2. data/README.md +1 -1
  3. data/app/views/records/new.html.erb +1 -1
  4. data/lib/hydra_editor/version.rb +1 -1
  5. metadata +25 -225
  6. data/spec/dummy/Gemfile +0 -20
  7. data/spec/dummy/Gemfile.lock +0 -247
  8. data/spec/dummy/README.rdoc +0 -261
  9. data/spec/dummy/Rakefile +0 -7
  10. data/spec/dummy/app/assets/images/blacklight/bg.png +0 -0
  11. data/spec/dummy/app/assets/images/blacklight/border.png +0 -0
  12. data/spec/dummy/app/assets/images/blacklight/bul_sq_gry.gif +0 -0
  13. data/spec/dummy/app/assets/images/blacklight/checkmark.gif +0 -0
  14. data/spec/dummy/app/assets/images/blacklight/logo.png +0 -0
  15. data/spec/dummy/app/assets/images/blacklight/magnifying_glass.gif +0 -0
  16. data/spec/dummy/app/assets/images/blacklight/remove.gif +0 -0
  17. data/spec/dummy/app/assets/images/blacklight/separator.gif +0 -0
  18. data/spec/dummy/app/assets/images/blacklight/start_over.gif +0 -0
  19. data/spec/dummy/app/assets/images/rails.png +0 -0
  20. data/spec/dummy/app/assets/javascripts/application.js +0 -18
  21. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  22. data/spec/dummy/app/assets/stylesheets/blacklight.css.scss +0 -4
  23. data/spec/dummy/app/controllers/application_controller.rb +0 -10
  24. data/spec/dummy/app/controllers/catalog_controller.rb +0 -165
  25. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  26. data/spec/dummy/app/models/solr_document.rb +0 -33
  27. data/spec/dummy/app/models/user.rb +0 -22
  28. data/spec/dummy/app/views/devise/confirmations/new.html.erb +0 -12
  29. data/spec/dummy/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
  30. data/spec/dummy/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
  31. data/spec/dummy/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
  32. data/spec/dummy/app/views/devise/passwords/edit.html.erb +0 -16
  33. data/spec/dummy/app/views/devise/passwords/new.html.erb +0 -12
  34. data/spec/dummy/app/views/devise/registrations/edit.html.erb +0 -29
  35. data/spec/dummy/app/views/devise/registrations/new.html.erb +0 -18
  36. data/spec/dummy/app/views/devise/sessions/new.html.erb +0 -17
  37. data/spec/dummy/app/views/devise/shared/_links.erb +0 -25
  38. data/spec/dummy/app/views/devise/unlocks/new.html.erb +0 -12
  39. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  40. data/spec/dummy/config.ru +0 -4
  41. data/spec/dummy/config/SolrMarc/config-test.properties +0 -37
  42. data/spec/dummy/config/SolrMarc/config.properties +0 -37
  43. data/spec/dummy/config/SolrMarc/index.properties +0 -97
  44. data/spec/dummy/config/SolrMarc/index_scripts/dewey.bsh +0 -47
  45. data/spec/dummy/config/SolrMarc/index_scripts/format.bsh +0 -126
  46. data/spec/dummy/config/SolrMarc/translation_maps/README_MAPS +0 -1
  47. data/spec/dummy/config/SolrMarc/translation_maps/callnumber_map.properties +0 -407
  48. data/spec/dummy/config/SolrMarc/translation_maps/composition_era_map.properties +0 -56
  49. data/spec/dummy/config/SolrMarc/translation_maps/country_map.properties +0 -379
  50. data/spec/dummy/config/SolrMarc/translation_maps/format_map.properties +0 -50
  51. data/spec/dummy/config/SolrMarc/translation_maps/instrument_map.properties +0 -101
  52. data/spec/dummy/config/SolrMarc/translation_maps/language_map.properties +0 -490
  53. data/spec/dummy/config/application.rb +0 -72
  54. data/spec/dummy/config/boot.rb +0 -6
  55. data/spec/dummy/config/database.yml +0 -25
  56. data/spec/dummy/config/environment.rb +0 -5
  57. data/spec/dummy/config/environments/development.rb +0 -37
  58. data/spec/dummy/config/environments/production.rb +0 -67
  59. data/spec/dummy/config/environments/test.rb +0 -37
  60. data/spec/dummy/config/fedora.yml +0 -14
  61. data/spec/dummy/config/initializers/action_dispatch_http_upload_monkey_patch.rb +0 -12
  62. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  63. data/spec/dummy/config/initializers/devise.rb +0 -246
  64. data/spec/dummy/config/initializers/hydra_config.rb +0 -28
  65. data/spec/dummy/config/initializers/inflections.rb +0 -15
  66. data/spec/dummy/config/initializers/mime_types.rb +0 -12
  67. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  68. data/spec/dummy/config/initializers/session_store.rb +0 -8
  69. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  70. data/spec/dummy/config/jetty.yml +0 -5
  71. data/spec/dummy/config/locales/devise.en.yml +0 -59
  72. data/spec/dummy/config/locales/en.yml +0 -5
  73. data/spec/dummy/config/role_map_cucumber.yml +0 -10
  74. data/spec/dummy/config/role_map_development.yml +0 -12
  75. data/spec/dummy/config/role_map_production.yml +0 -2
  76. data/spec/dummy/config/role_map_test.yml +0 -15
  77. data/spec/dummy/config/routes.rb +0 -66
  78. data/spec/dummy/config/solr.yml +0 -10
  79. data/spec/dummy/db/development.sqlite3 +0 -0
  80. data/spec/dummy/db/migrate/20130618142846_devise_create_users.rb +0 -46
  81. data/spec/dummy/db/migrate/20130618142855_create_searches.rb +0 -16
  82. data/spec/dummy/db/migrate/20130618142856_create_bookmarks.rb +0 -18
  83. data/spec/dummy/db/migrate/20130618142857_remove_editable_fields_from_bookmarks.rb +0 -12
  84. data/spec/dummy/db/migrate/20130618142858_add_user_types_to_bookmarks_searches.rb +0 -16
  85. data/spec/dummy/db/schema.rb +0 -53
  86. data/spec/dummy/db/seeds.rb +0 -7
  87. data/spec/dummy/db/test.sqlite3 +0 -0
  88. data/spec/dummy/doc/README_FOR_APP +0 -2
  89. data/spec/dummy/fedora_conf/conf/development/fedora.fcfg +0 -953
  90. data/spec/dummy/fedora_conf/conf/test/fedora.fcfg +0 -953
  91. data/spec/dummy/lib/generators/test_app_generator.rb +0 -26
  92. data/spec/dummy/log/development.log +0 -78
  93. data/spec/dummy/log/test.log +0 -119
  94. data/spec/dummy/public/404.html +0 -26
  95. data/spec/dummy/public/422.html +0 -26
  96. data/spec/dummy/public/500.html +0 -25
  97. data/spec/dummy/public/favicon.ico +0 -0
  98. data/spec/dummy/public/index.html +0 -241
  99. data/spec/dummy/public/robots.txt +0 -5
  100. data/spec/dummy/script/rails +0 -6
  101. data/spec/dummy/solr_conf/conf/schema.xml +0 -273
  102. data/spec/dummy/solr_conf/conf/solrconfig.xml +0 -167
  103. data/spec/dummy/solr_conf/solr.xml +0 -35
  104. data/spec/dummy/test/performance/browsing_test.rb +0 -12
  105. data/spec/dummy/test/test_helper.rb +0 -13
@@ -1,5 +0,0 @@
1
- # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
- #
3
- # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-Agent: *
5
- # Disallow: /
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,273 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <schema name="Hydra" version="1.5">
3
- <!-- NOTE: various comments and unused configuration possibilities have been purged
4
- from this file. Please refer to http://wiki.apache.org/solr/SchemaXml,
5
- as well as the default schema file included with Solr -->
6
-
7
- <uniqueKey>id</uniqueKey>
8
-
9
- <fields>
10
- <field name="id" type="string" stored="true" indexed="true" multiValued="false" required="true"/>
11
- <field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>
12
-
13
- <field name="lat" type="tdouble" stored="true" indexed="true" multiValued="false"/>
14
- <field name="lng" type="tdouble" stored="true" indexed="true" multiValued="false"/>
15
-
16
- <!-- NOTE: not all possible Solr field types are represented in the dynamic fields -->
17
-
18
- <!-- text (_t...) -->
19
- <dynamicField name="*_ti" type="text" stored="false" indexed="true" multiValued="false"/>
20
- <dynamicField name="*_tim" type="text" stored="false" indexed="true" multiValued="true"/>
21
- <dynamicField name="*_ts" type="text" stored="true" indexed="false" multiValued="false"/>
22
- <dynamicField name="*_tsm" type="text" stored="true" indexed="false" multiValued="true"/>
23
- <dynamicField name="*_tsi" type="text" stored="true" indexed="true" multiValued="false"/>
24
- <dynamicField name="*_tsim" type="text" stored="true" indexed="true" multiValued="true"/>
25
- <dynamicField name="*_tiv" type="text" stored="false" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
26
- <dynamicField name="*_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
27
- <dynamicField name="*_tsiv" type="text" stored="true" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
28
- <dynamicField name="*_tsimv" type="text" stored="true" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
29
-
30
- <!-- English text (_te...) -->
31
- <dynamicField name="*_tei" type="text_en" stored="false" indexed="true" multiValued="false"/>
32
- <dynamicField name="*_teim" type="text_en" stored="false" indexed="true" multiValued="true"/>
33
- <dynamicField name="*_tes" type="text_en" stored="true" indexed="false" multiValued="false"/>
34
- <dynamicField name="*_tesm" type="text_en" stored="true" indexed="false" multiValued="true"/>
35
- <dynamicField name="*_tesi" type="text_en" stored="true" indexed="true" multiValued="false"/>
36
- <dynamicField name="*_tesim" type="text_en" stored="true" indexed="true" multiValued="true"/>
37
- <dynamicField name="*_teiv" type="text_en" stored="false" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
38
- <dynamicField name="*_teimv" type="text_en" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
39
- <dynamicField name="*_tesiv" type="text_en" stored="true" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
40
- <dynamicField name="*_tesimv" type="text_en" stored="true" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
41
-
42
- <!-- string (_s...) -->
43
- <dynamicField name="*_si" type="string" stored="false" indexed="true" multiValued="false"/>
44
- <dynamicField name="*_sim" type="string" stored="false" indexed="true" multiValued="true"/>
45
- <dynamicField name="*_ss" type="string" stored="true" indexed="false" multiValued="false"/>
46
- <dynamicField name="*_ssm" type="string" stored="true" indexed="false" multiValued="true"/>
47
- <dynamicField name="*_ssi" type="string" stored="true" indexed="true" multiValued="false"/>
48
- <dynamicField name="*_ssim" type="string" stored="true" indexed="true" multiValued="true"/>
49
- <dynamicField name="*_ssort" type="alphaSort" stored="false" indexed="true" multiValued="false"/>
50
-
51
- <!-- integer (_i...) -->
52
- <dynamicField name="*_ii" type="int" stored="false" indexed="true" multiValued="false"/>
53
- <dynamicField name="*_iim" type="int" stored="false" indexed="true" multiValued="true"/>
54
- <dynamicField name="*_is" type="int" stored="true" indexed="false" multiValued="false"/>
55
- <dynamicField name="*_ism" type="int" stored="true" indexed="false" multiValued="true"/>
56
- <dynamicField name="*_isi" type="int" stored="true" indexed="true" multiValued="false"/>
57
- <dynamicField name="*_isim" type="int" stored="true" indexed="true" multiValued="true"/>
58
-
59
- <!-- trie integer (_it...) (for faster range queries) -->
60
- <dynamicField name="*_iti" type="tint" stored="false" indexed="true" multiValued="false"/>
61
- <dynamicField name="*_itim" type="tint" stored="false" indexed="true" multiValued="true"/>
62
- <dynamicField name="*_its" type="tint" stored="true" indexed="false" multiValued="false"/>
63
- <dynamicField name="*_itsm" type="tint" stored="true" indexed="false" multiValued="true"/>
64
- <dynamicField name="*_itsi" type="tint" stored="true" indexed="true" multiValued="false"/>
65
- <dynamicField name="*_itsim" type="tint" stored="true" indexed="true" multiValued="true"/>
66
-
67
- <!-- date (_dt...) -->
68
- <!-- The format for this date field is of the form 1995-12-31T23:59:59Z
69
- Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z -->
70
- <dynamicField name="*_dti" type="date" stored="false" indexed="true" multiValued="false"/>
71
- <dynamicField name="*_dtim" type="date" stored="false" indexed="true" multiValued="true"/>
72
- <dynamicField name="*_dts" type="date" stored="true" indexed="false" multiValued="false"/>
73
- <dynamicField name="*_dtsm" type="date" stored="true" indexed="false" multiValued="true"/>
74
- <dynamicField name="*_dtsi" type="date" stored="true" indexed="true" multiValued="false"/>
75
- <dynamicField name="*_dtsim" type="date" stored="true" indexed="true" multiValued="true"/>
76
-
77
- <!-- trie date (_dtt...) (for faster range queries) -->
78
- <dynamicField name="*_dtti" type="tdate" stored="false" indexed="true" multiValued="false"/>
79
- <dynamicField name="*_dttim" type="tdate" stored="false" indexed="true" multiValued="true"/>
80
- <dynamicField name="*_dtts" type="tdate" stored="true" indexed="false" multiValued="false"/>
81
- <dynamicField name="*_dttsm" type="tdate" stored="true" indexed="false" multiValued="true"/>
82
- <dynamicField name="*_dttsi" type="tdate" stored="true" indexed="true" multiValued="false"/>
83
- <dynamicField name="*_dttsim" type="tdate" stored="true" indexed="true" multiValued="true"/>
84
-
85
- <!-- long (_l...) -->
86
- <dynamicField name="*_li" type="long" stored="false" indexed="true" multiValued="false"/>
87
- <dynamicField name="*_lim" type="long" stored="false" indexed="true" multiValued="true"/>
88
- <dynamicField name="*_ls" type="long" stored="true" indexed="false" multiValued="false"/>
89
- <dynamicField name="*_lsm" type="long" stored="true" indexed="false" multiValued="true"/>
90
- <dynamicField name="*_lsi" type="long" stored="true" indexed="true" multiValued="false"/>
91
- <dynamicField name="*_lsim" type="long" stored="true" indexed="true" multiValued="true"/>
92
-
93
- <!-- trie long (_lt...) (for faster range queries) -->
94
- <dynamicField name="*_lti" type="tlong" stored="false" indexed="true" multiValued="false"/>
95
- <dynamicField name="*_ltim" type="tlong" stored="false" indexed="true" multiValued="true"/>
96
- <dynamicField name="*_lts" type="tlong" stored="true" indexed="false" multiValued="false"/>
97
- <dynamicField name="*_ltsm" type="tlong" stored="true" indexed="false" multiValued="true"/>
98
- <dynamicField name="*_ltsi" type="tlong" stored="true" indexed="true" multiValued="false"/>
99
- <dynamicField name="*_ltsim" type="tlong" stored="true" indexed="true" multiValued="true"/>
100
-
101
- <!-- double (_db...) -->
102
- <dynamicField name="*_dbi" type="double" stored="false" indexed="true" multiValued="false"/>
103
- <dynamicField name="*_dbim" type="double" stored="false" indexed="true" multiValued="true"/>
104
- <dynamicField name="*_dbs" type="double" stored="true" indexed="false" multiValued="false"/>
105
- <dynamicField name="*_dbsm" type="double" stored="true" indexed="false" multiValued="true"/>
106
- <dynamicField name="*_dbsi" type="double" stored="true" indexed="true" multiValued="false"/>
107
- <dynamicField name="*_dbsim" type="double" stored="true" indexed="true" multiValued="true"/>
108
-
109
- <!-- trie double (_dbt...) (for faster range queries) -->
110
- <dynamicField name="*_dbti" type="tdouble" stored="false" indexed="true" multiValued="false"/>
111
- <dynamicField name="*_dbtim" type="tdouble" stored="false" indexed="true" multiValued="true"/>
112
- <dynamicField name="*_dbts" type="tdouble" stored="true" indexed="false" multiValued="false"/>
113
- <dynamicField name="*_dbtsm" type="tdouble" stored="true" indexed="false" multiValued="true"/>
114
- <dynamicField name="*_dbtsi" type="tdouble" stored="true" indexed="true" multiValued="false"/>
115
- <dynamicField name="*_dbtsim" type="tdouble" stored="true" indexed="true" multiValued="true"/>
116
-
117
- <!-- float (_f...) -->
118
- <dynamicField name="*_fi" type="float" stored="false" indexed="true" multiValued="false"/>
119
- <dynamicField name="*_fim" type="float" stored="false" indexed="true" multiValued="true"/>
120
- <dynamicField name="*_fs" type="float" stored="true" indexed="false" multiValued="false"/>
121
- <dynamicField name="*_fsm" type="float" stored="true" indexed="false" multiValued="true"/>
122
- <dynamicField name="*_fsi" type="float" stored="true" indexed="true" multiValued="false"/>
123
- <dynamicField name="*_fsim" type="float" stored="true" indexed="true" multiValued="true"/>
124
-
125
- <!-- trie float (_ft...) (for faster range queries) -->
126
- <dynamicField name="*_fti" type="tfloat" stored="false" indexed="true" multiValued="false"/>
127
- <dynamicField name="*_ftim" type="tfloat" stored="false" indexed="true" multiValued="true"/>
128
- <dynamicField name="*_fts" type="tfloat" stored="true" indexed="false" multiValued="false"/>
129
- <dynamicField name="*_ftsm" type="tfloat" stored="true" indexed="false" multiValued="true"/>
130
- <dynamicField name="*_ftsi" type="tfloat" stored="true" indexed="true" multiValued="false"/>
131
- <dynamicField name="*_ftsim" type="tfloat" stored="true" indexed="true" multiValued="true"/>
132
-
133
- <!-- boolean (_b...) -->
134
- <dynamicField name="*_bi" type="boolean" stored="false" indexed="true" multiValued="false"/>
135
- <dynamicField name="*_bs" type="boolean" stored="true" indexed="false" multiValued="false"/>
136
- <dynamicField name="*_bsi" type="boolean" stored="true" indexed="true" multiValued="false"/>
137
-
138
- <!-- Type used to index the lat and lon components for the "location" FieldType -->
139
- <dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" />
140
-
141
- <!-- location (_ll...) -->
142
- <dynamicField name="*_lli" type="location" stored="false" indexed="true" multiValued="false"/>
143
- <dynamicField name="*_llim" type="location" stored="false" indexed="true" multiValued="true"/>
144
- <dynamicField name="*_lls" type="location" stored="true" indexed="false" multiValued="false"/>
145
- <dynamicField name="*_llsm" type="location" stored="true" indexed="false" multiValued="true"/>
146
- <dynamicField name="*_llsi" type="location" stored="true" indexed="true" multiValued="false"/>
147
- <dynamicField name="*_llsim" type="location" stored="true" indexed="true" multiValued="true"/>
148
-
149
- <!-- you must define copyField source and dest fields explicity or schemaBrowser doesn't work -->
150
- <field name="all_text_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
151
-
152
-
153
- </fields>
154
-
155
-
156
- <!-- Above, multiple source fields are copied to the [text] field.
157
- Another way to map multiple source fields to the same
158
- destination field is to use the dynamic field syntax.
159
- copyField also supports a maxChars to copy setting. -->
160
-
161
- <!-- <copyField source="*_tesim" dest="all_text_timv" maxChars="3000"/> -->
162
-
163
- <types>
164
- <fieldType name="string" class="solr.StrField" sortMissingLast="true" />
165
- <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
166
- <fieldType name="rand" class="solr.RandomSortField" omitNorms="true"/>
167
-
168
- <!-- Default numeric field types. -->
169
- <fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/>
170
- <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" positionIncrementGap="0"/>
171
- <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
172
- <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/>
173
-
174
- <!-- trie numeric field types for faster range queries -->
175
- <fieldType name="tint" class="solr.TrieIntField" precisionStep="8" positionIncrementGap="0"/>
176
- <fieldType name="tfloat" class="solr.TrieFloatField" precisionStep="8" positionIncrementGap="0"/>
177
- <fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" positionIncrementGap="0"/>
178
- <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
179
-
180
- <!-- The format for this date field is of the form 1995-12-31T23:59:59Z
181
- Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
182
- -->
183
- <fieldType name="date" class="solr.TrieDateField" precisionStep="0" positionIncrementGap="0"/>
184
- <!-- A Trie based date field for faster date range queries and date faceting. -->
185
- <fieldType name="tdate" class="solr.TrieDateField" precisionStep="6" positionIncrementGap="0"/>
186
-
187
-
188
- <!-- This point type indexes the coordinates as separate fields (subFields)
189
- If subFieldType is defined, it references a type, and a dynamic field
190
- definition is created matching *___<typename>. Alternately, if
191
- subFieldSuffix is defined, that is used to create the subFields.
192
- Example: if subFieldType="double", then the coordinates would be
193
- indexed in fields myloc_0___double,myloc_1___double.
194
- Example: if subFieldSuffix="_d" then the coordinates would be indexed
195
- in fields myloc_0_d,myloc_1_d
196
- The subFields are an implementation detail of the fieldType, and end
197
- users normally should not need to know about them.
198
- -->
199
- <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
200
-
201
- <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
202
- <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
203
-
204
- <!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.
205
- For more information about this and other Spatial fields new to Solr 4, see:
206
- http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
207
- -->
208
- <fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
209
- geo="true" distErrPct="0.025" maxDistErr="0.000009" units="degrees" />
210
-
211
- <fieldType name="text" class="solr.TextField" omitNorms="false">
212
- <analyzer>
213
- <tokenizer class="solr.ICUTokenizerFactory"/>
214
- <filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
215
- <filter class="solr.TrimFilterFactory"/>
216
- </analyzer>
217
- </fieldType>
218
-
219
- <!-- A text field that only splits on whitespace for exact matching of words -->
220
- <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
221
- <analyzer>
222
- <tokenizer class="solr.WhitespaceTokenizerFactory"/>
223
- <filter class="solr.TrimFilterFactory"/>
224
- </analyzer>
225
- </fieldType>
226
-
227
- <!-- single token analyzed text, for sorting. Punctuation is significant. -->
228
- <fieldtype name="alphaSort" class="solr.TextField" sortMissingLast="true" omitNorms="true">
229
- <analyzer>
230
- <tokenizer class="solr.KeywordTokenizerFactory" />
231
- <filter class="solr.ICUFoldingFilterFactory"/>
232
- <filter class="solr.TrimFilterFactory" />
233
- </analyzer>
234
- </fieldtype>
235
-
236
- <!-- A text field with defaults appropriate for English -->
237
- <fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
238
- <analyzer>
239
- <tokenizer class="solr.ICUTokenizerFactory"/>
240
- <filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
241
- <filter class="solr.EnglishPossessiveFilterFactory"/>
242
- <!-- EnglishMinimalStemFilterFactory is less aggressive than PorterStemFilterFactory: -->
243
- <filter class="solr.EnglishMinimalStemFilterFactory"/>
244
- <!--
245
- <filter class="solr.PorterStemFilterFactory"/>
246
- -->
247
- <filter class="solr.TrimFilterFactory"/>
248
- </analyzer>
249
- </fieldType>
250
-
251
- <!-- queries for paths match documents at that path, or in descendent paths -->
252
- <fieldType name="descendent_path" class="solr.TextField">
253
- <analyzer type="index">
254
- <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
255
- </analyzer>
256
- <analyzer type="query">
257
- <tokenizer class="solr.KeywordTokenizerFactory" />
258
- </analyzer>
259
- </fieldType>
260
-
261
- <!-- queries for paths match documents at that path, or in ancestor paths -->
262
- <fieldType name="ancestor_path" class="solr.TextField">
263
- <analyzer type="index">
264
- <tokenizer class="solr.KeywordTokenizerFactory" />
265
- </analyzer>
266
- <analyzer type="query">
267
- <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
268
- </analyzer>
269
- </fieldType>
270
-
271
- </types>
272
-
273
- </schema>
@@ -1,167 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <config>
3
- <!-- NOTE: various comments and unused configuration possibilities have been purged
4
- from this file. Please refer to http://wiki.apache.org/solr/SolrConfigXml,
5
- as well as the default solrconfig file included with Solr -->
6
-
7
- <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
8
-
9
- <luceneMatchVersion>LUCENE_40</luceneMatchVersion>
10
-
11
- <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
12
-
13
- <!-- solr lib dirs -->
14
- <lib dir="../lib/contrib/analysis-extras/lib" />
15
- <lib dir="../lib/contrib/analysis-extras/lucene-libs" />
16
-
17
- <dataDir>${solr.data.dir:}</dataDir>
18
-
19
- <requestHandler name="search" class="solr.SearchHandler" default="true">
20
- <!-- default values for query parameters can be specified, these
21
- will be overridden by parameters in the request
22
- -->
23
- <lst name="defaults">
24
- <str name="defType">edismax</str>
25
- <str name="echoParams">explicit</str>
26
- <str name="q.alt">*:*</str>
27
- <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
28
- <int name="qs">1</int>
29
- <int name="ps">2</int>
30
- <float name="tie">0.01</float>
31
- <!-- this qf and pf are used by default, if not otherwise specified by
32
- client. The default blacklight_config will use these for the
33
- "keywords" search. See the author_qf/author_pf, title_qf, etc
34
- below, which the default blacklight_config will specify for
35
- those searches. You may also be interested in:
36
- http://wiki.apache.org/solr/LocalParams
37
- -->
38
- <str name="qf">
39
- id
40
- active_fedora_model_ssi
41
- title_tesim
42
- author_tesim
43
- subject_tesim
44
- </str>
45
- <str name="pf">
46
- all_text_timv^10
47
- </str>
48
-
49
- <str name="author_qf">
50
- author_tesim
51
- </str>
52
- <str name="author_pf">
53
- </str>
54
- <str name="title_qf">
55
- title_tesim
56
- </str>
57
- <str name="title_pf">
58
- </str>
59
- <str name="subject_qf">
60
- subject_tesim
61
- </str>
62
- <str name="subject_pf">
63
- </str>
64
-
65
- <str name="fl">
66
- *,
67
- score
68
- </str>
69
-
70
- <str name="facet">true</str>
71
- <str name="facet.mincount">1</str>
72
- <str name="facet.limit">10</str>
73
- <str name="facet.field">active_fedora_model_ssi</str>
74
- <str name="facet.field">subject_sim</str>
75
-
76
- <str name="spellcheck">true</str>
77
- <str name="spellcheck.dictionary">default</str>
78
- <str name="spellcheck.onlyMorePopular">true</str>
79
- <str name="spellcheck.extendedResults">true</str>
80
- <str name="spellcheck.collate">false</str>
81
- <str name="spellcheck.count">5</str>
82
-
83
- </lst>
84
- <arr name="last-components">
85
- <str>spellcheck</str>
86
- </arr>
87
- </requestHandler>
88
-
89
- <requestHandler name="permissions" class="solr.SearchHandler" >
90
- <lst name="defaults">
91
- <str name="facet">off</str>
92
- <str name="echoParams">all</str>
93
- <str name="rows">1</str>
94
- <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
95
- <str name="fl">
96
- id,
97
- access_ssim,
98
- discover_access_group_ssim,discover_access_person_ssim,
99
- read_access_group_ssim,read_access_person_ssim,
100
- edit_access_group_ssim,edit_access_person_ssim,
101
- depositor_ti,
102
- embargo_release_date_dtsi
103
- inheritable_access_ssim,
104
- inheritable_discover_access_group_ssim,inheritable_discover_access_person_ssim,
105
- inheritable_read_access_group_ssim,inheritable_read_access_person_ssim,
106
- inheritable_edit_access_group_ssim,inheritable_edit_access_person_ssim,
107
- inheritable_embargo_release_date_dtsi
108
- </str>
109
- </lst>
110
- </requestHandler>
111
-
112
- <requestHandler name="standard" class="solr.SearchHandler">
113
- <lst name="defaults">
114
- <str name="echoParams">explicit</str>
115
- <str name="defType">lucene</str>
116
- </lst>
117
- </requestHandler>
118
-
119
- <!-- for requests to get a single document; use id=666 instead of q=id:666 -->
120
- <requestHandler name="document" class="solr.SearchHandler" >
121
- <lst name="defaults">
122
- <str name="echoParams">all</str>
123
- <str name="fl">*</str>
124
- <str name="rows">1</str>
125
- <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
126
- </lst>
127
- </requestHandler>
128
-
129
-
130
- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
131
- <str name="queryAnalyzerFieldType">textSpell</str>
132
- <!-- Multiple "Spell Checkers" can be declared and used by this component
133
- (e.g. for title_spell field)
134
- -->
135
- <lst name="spellchecker">
136
- <str name="name">default</str>
137
- <str name="field">spell</str>
138
- <str name="spellcheckIndexDir">./spell</str>
139
- <str name="buildOnOptimize">true</str>
140
- </lst>
141
- </searchComponent>
142
-
143
- <requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />
144
-
145
- <requestDispatcher handleSelect="true" >
146
- <requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048" />
147
- </requestDispatcher>
148
-
149
- <requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
150
- <requestHandler name="/update" class="solr.UpdateRequestHandler" />
151
- <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
152
-
153
- <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
154
- <lst name="invariants">
155
- <str name="q">solrpingquery</str>
156
- </lst>
157
- <lst name="defaults">
158
- <str name="echoParams">all</str>
159
- </lst>
160
- </requestHandler>
161
-
162
- <!-- config for the admin interface -->
163
- <admin>
164
- <defaultQuery>search</defaultQuery>
165
- </admin>
166
-
167
- </config>