enju_leaf 1.1.0.rc15 → 1.1.0.rc16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +2 -2
  3. data/app/assets/javascripts/mobile.js +1 -1
  4. data/app/assets/stylesheets/mobile.css +1 -1
  5. data/app/controllers/my_accounts_controller.rb +5 -5
  6. data/app/controllers/page_controller.rb +10 -2
  7. data/app/models/profile.rb +15 -5
  8. data/app/models/user_export_file.rb +1 -1
  9. data/app/models/user_import_file.rb +2 -2
  10. data/app/views/my_accounts/_edit_credential.html.erb +10 -0
  11. data/app/views/my_accounts/edit.html.erb +2 -4
  12. data/app/views/page/_header.html.erb +3 -3
  13. data/app/views/page/_menu.html.erb +3 -0
  14. data/app/views/page/configuration.html.erb +3 -0
  15. data/app/views/page/opensearch.xml.builder +1 -1
  16. data/app/views/page/system_information.html.erb +23 -0
  17. data/app/views/profiles/_edit_credential.html.erb +10 -0
  18. data/app/views/profiles/edit.html.erb +3 -4
  19. data/app/views/profiles/index.html.erb +4 -4
  20. data/app/views/profiles/new.html.erb +10 -0
  21. data/config/locales/translation_en.yml +3 -0
  22. data/config/locales/translation_ja.yml +3 -0
  23. data/config/routes.rb +1 -0
  24. data/db/migrate/20140524074813_create_user_import_file_transitions.rb +5 -1
  25. data/db/migrate/20140709113905_create_user_export_file_transitions.rb +5 -1
  26. data/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +5 -0
  27. data/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +5 -0
  28. data/lib/enju_leaf/controller.rb +4 -4
  29. data/lib/enju_leaf/helper.rb +7 -0
  30. data/lib/enju_leaf/version.rb +1 -1
  31. data/lib/enju_leaf.rb +0 -48
  32. data/lib/generators/enju_leaf/quick_install/quick_install_generator.rb +1 -1
  33. data/lib/generators/enju_leaf/setup/setup_generator.rb +9 -0
  34. data/lib/generators/enju_leaf/setup/templates/Procfile +1 -1
  35. data/lib/tasks/enju_leaf_tasks.rake +6 -0
  36. data/lib/tasks/profile.rb +1 -1
  37. data/spec/controllers/page_controller_spec.rb +15 -0
  38. data/spec/dummy/config/database.yml +23 -18
  39. data/spec/dummy/db/migrate/001_create_agents.rb +0 -2
  40. data/spec/dummy/db/migrate/005_create_manifestations.rb +1 -2
  41. data/spec/dummy/db/migrate/006_create_items.rb +0 -2
  42. data/spec/dummy/db/migrate/035_create_reserves.rb +0 -1
  43. data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
  44. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
  45. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
  46. data/spec/dummy/db/migrate/20081212151614_create_bookmark_stats.rb +0 -3
  47. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
  48. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
  49. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
  50. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
  51. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +0 -1
  52. data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +5 -1
  53. data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +5 -1
  54. data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +5 -1
  55. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +5 -1
  56. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +5 -1
  57. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +5 -1
  58. data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +5 -1
  59. data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +5 -1
  60. data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +5 -1
  61. data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +5 -1
  62. data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +5 -1
  63. data/spec/dummy/db/migrate/20140529014410_create_item_transitions.rb +5 -1
  64. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +5 -1
  65. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
  66. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
  67. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
  68. data/spec/dummy/db/migrate/{20140810061942_add_user_id_to_stat.rb → 20140810061942_add_user_id_to_user_checkout_stat.rb} +1 -1
  69. data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +5 -0
  70. data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
  71. data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
  72. data/spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb +6 -0
  73. data/spec/dummy/db/schema.rb +674 -663
  74. data/spec/fixtures/agent_import_results.yml +0 -3
  75. data/spec/fixtures/agents.yml +0 -12
  76. data/spec/fixtures/checked_items.yml +4 -4
  77. data/spec/fixtures/checkouts.yml +12 -12
  78. data/spec/fixtures/manifestation_checkout_stats.yml +0 -3
  79. data/spec/fixtures/manifestation_reserve_stats.yml +0 -3
  80. data/spec/fixtures/manifestations.yml +114 -114
  81. data/spec/fixtures/reserves.yml +17 -17
  82. data/spec/fixtures/user_checkout_stats.yml +0 -3
  83. data/spec/fixtures/user_reserve_stats.yml +0 -3
  84. data/spec/fixtures/users.yml +1 -1
  85. data/spec/spec_helper.rb +2 -0
  86. data/vendor/assets/javascripts/{jquery.mobile-1.4.3.js → jquery.mobile-1.4.4.js} +191 -116
  87. data/vendor/assets/stylesheets/{jquery.mobile-1.4.3.css → jquery.mobile-1.4.4.css} +10 -2
  88. metadata +79 -264
  89. data/app/models/local_patron.rb +0 -27
  90. data/lib/enju_leaf/bookmark_url.rb +0 -45
  91. data/spec/dummy/db/development.sqlite3 +0 -0
  92. data/spec/dummy/db/migrate/20111020063828_remove_dsbl_from_library_group.rb +0 -11
  93. data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +0 -5
  94. data/spec/dummy/db/test.sqlite3 +0 -0
  95. data/spec/dummy/private/system/user_import_files/user_imports/980/190/963/original/user_delete_file.tsv +0 -4
  96. data/spec/dummy/private/system/user_import_files/user_imports/980/190/963/original/user_import_file_sample.tsv +0 -7
  97. data/spec/dummy/private/system/user_import_files/user_imports/980/190/963/original/user_update_file.tsv +0 -4
  98. data/spec/dummy/private/system/user_import_files/user_imports/980/190/964/original/user_delete_file.tsv +0 -4
  99. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140815-3963-1s1td26.txt +0 -8
  100. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140815-69229-i0rcty.txt +0 -8
  101. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140816-21120-1w731r8.txt +0 -8
  102. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140818-59118-14fm7df.txt +0 -8
  103. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140818-59989-vmovk5.txt +0 -8
  104. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140818-75062-kpzjyb.txt +0 -8
  105. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140818-75773-1lhgyub.txt +0 -8
  106. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140818-75927-j8wteq.txt +0 -8
  107. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140820-9103-mfcugd.txt +0 -8
  108. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140822-13160-wz7o56.txt +0 -8
  109. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140824-39018-fw3fdj.txt +0 -8
  110. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140828-69043-tbwoqv.txt +0 -8
  111. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140915-22971-1jmyywh.txt +0 -8
  112. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140915-23153-j4x3ru.txt +0 -8
  113. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140915-67244-1uo8pkb.txt +0 -8
  114. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-80298-14af9pc.txt +0 -8
  115. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-80450-1qhv5cf.txt +0 -8
  116. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-80529-1hahtrn.txt +0 -8
  117. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-80725-tqmhnv.txt +0 -8
  118. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-81018-wl1hgj.txt +0 -8
  119. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-81246-wll5s.txt +0 -8
  120. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-81371-8uz50r.txt +0 -8
  121. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-84122-1u96hw6.txt +0 -8
  122. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140926-7716-bbs13d.txt +0 -8
  123. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141002-57000-yu6qop.txt +0 -8
  124. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141002-57206-2j8sg2.txt +0 -8
  125. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141002-57328-p8lryh.txt +0 -8
  126. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141002-57609-1j3dd67.txt +0 -8
  127. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141003-78097-dw5i2k.txt +0 -8
  128. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140711-28652-1dj3e98.txt +0 -148
  129. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140711-29117-13jb6ol.txt +0 -148
  130. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140721-65743-1tnagd4.txt +0 -8
  131. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140815-3963-1kk8o87.txt +0 -8
  132. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140815-69229-188nwub.txt +0 -8
  133. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140816-21120-twzfb6.txt +0 -8
  134. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140818-59118-1lhrtka.txt +0 -8
  135. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140818-59989-1prz707.txt +0 -8
  136. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140818-75062-10bxh78.txt +0 -8
  137. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140818-75773-ekgeho.txt +0 -8
  138. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140818-75927-uay97k.txt +0 -8
  139. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140820-9103-tuuox.txt +0 -8
  140. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140822-13160-17b5dbh.txt +0 -8
  141. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140824-39018-o12xa4.txt +0 -8
  142. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140915-22971-d4ul8o.txt +0 -8
  143. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140915-23153-1qmzqi6.txt +0 -8
  144. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140915-67244-1ps1qsi.txt +0 -8
  145. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-80298-121rh7h.txt +0 -8
  146. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-80450-wdetsg.txt +0 -8
  147. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-80529-lmet02.txt +0 -8
  148. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-80725-1l6tliy.txt +0 -8
  149. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-81018-azm74f.txt +0 -8
  150. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-81246-1rjpksn.txt +0 -8
  151. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-81371-aroaof.txt +0 -8
  152. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-84122-7d6kls.txt +0 -8
  153. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140926-7716-1nap0l.txt +0 -8
  154. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141002-57000-3nb1bj.txt +0 -8
  155. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141002-57206-197ca0p.txt +0 -8
  156. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141002-57328-1kra77f.txt +0 -8
  157. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141002-57609-iymry0.txt +0 -8
  158. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141003-78097-1ocngi2.txt +0 -8
  159. data/spec/dummy/solr/conf/admin-extra.html +0 -31
  160. data/spec/dummy/solr/conf/elevate.xml +0 -36
  161. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +0 -246
  162. data/spec/dummy/solr/conf/protwords.txt +0 -21
  163. data/spec/dummy/solr/conf/schema.xml +0 -255
  164. data/spec/dummy/solr/conf/scripts.conf +0 -24
  165. data/spec/dummy/solr/conf/solrconfig.xml +0 -667
  166. data/spec/dummy/solr/conf/spellings.txt +0 -2
  167. data/spec/dummy/solr/conf/stopwords.txt +0 -58
  168. data/spec/dummy/solr/conf/synonyms.txt +0 -31
  169. data/spec/dummy/solr/default/data/index/_7b.fdt +0 -0
  170. data/spec/dummy/solr/default/data/index/_7b.fdx +0 -0
  171. data/spec/dummy/solr/default/data/index/_7b.fnm +0 -0
  172. data/spec/dummy/solr/default/data/index/_7b.nvd +0 -0
  173. data/spec/dummy/solr/default/data/index/_7b.nvm +0 -0
  174. data/spec/dummy/solr/default/data/index/_7b.si +0 -0
  175. data/spec/dummy/solr/default/data/index/_7b_Lucene41_0.doc +0 -0
  176. data/spec/dummy/solr/default/data/index/_7b_Lucene41_0.pos +0 -0
  177. data/spec/dummy/solr/default/data/index/_7b_Lucene41_0.tim +0 -0
  178. data/spec/dummy/solr/default/data/index/_7b_Lucene41_0.tip +0 -0
  179. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  180. data/spec/dummy/solr/default/data/index/segments_ev +0 -0
  181. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000524 +0 -0
  182. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000525 +0 -0
  183. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000526 +0 -0
  184. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000527 +0 -0
  185. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000528 +0 -0
  186. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000529 +0 -0
  187. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000530 +0 -0
  188. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000531 +0 -0
  189. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000532 +0 -0
  190. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000533 +0 -0
  191. data/spec/dummy/solr/development/data/index/segments.gen +0 -0
  192. data/spec/dummy/solr/development/data/index/segments_1 +0 -0
  193. data/spec/dummy/solr/solr.xml +0 -8
  194. data/spec/dummy/solr/test/data/index/segments.gen +0 -0
  195. data/spec/dummy/solr/test/data/index/segments_1 +0 -0
  196. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  197. data/spec/dummy/tmp/cache/ACB/B20/manifestation_search_total +0 -0
  198. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  199. data/spec/dummy/tmp/cache/assets/test/sprockets/154f7b83f2da0e86effbe25f32135177 +0 -0
  200. data/spec/dummy/tmp/cache/assets/test/sprockets/1b984bdbd3204a51a82d0e01a1569e2d +0 -0
  201. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  202. data/spec/dummy/tmp/cache/assets/test/sprockets/3054c50144654f9c7e57bb0639a276e9 +0 -0
  203. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  204. data/spec/dummy/tmp/cache/assets/test/sprockets/3bd7a263237ba366f64d938fe5303757 +0 -0
  205. data/spec/dummy/tmp/cache/assets/test/sprockets/62899096da1a3e67660f3b88068be8c9 +0 -0
  206. data/spec/dummy/tmp/cache/assets/test/sprockets/65b2e4f67eab21b30217e29075f433b2 +0 -0
  207. data/spec/dummy/tmp/cache/assets/test/sprockets/87d24a3f43f175d4d17babe9203c79a7 +0 -0
  208. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  209. data/spec/dummy/tmp/cache/assets/test/sprockets/d38d8658b30de1d068603968227680d4 +0 -0
  210. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  211. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  212. data/spec/dummy/tmp/cache/stdout +0 -1653
  213. data/spec/dummy/tmp/pids/redis-test.pid +0 -1
@@ -1,667 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <!--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- -->
18
-
19
- <!--
20
- For more details about configurations options that may appear in
21
- this file, see http://wiki.apache.org/solr/SolrConfigXml.
22
- -->
23
- <config>
24
- <!-- In all configuration below, a prefix of "solr." for class names
25
- is an alias that causes solr to search appropriate packages,
26
- including org.apache.solr.(search|update|request|core|analysis)
27
-
28
- You may also specify a fully qualified Java classname if you
29
- have your own custom plugins.
30
- -->
31
-
32
- <!-- Controls what version of Lucene various components of Solr
33
- adhere to. Generally, you want to use the latest version to
34
- get all bug fixes and improvements. It is highly recommended
35
- that you fully re-index after changing this setting as it can
36
- affect both how text is indexed and queried.
37
- -->
38
- <luceneMatchVersion>LUCENE_41</luceneMatchVersion>
39
-
40
- <!-- <lib/> directives can be used to instruct Solr to load an Jars
41
- identified and use them to resolve any "plugins" specified in
42
- your solrconfig.xml or schema.xml (ie: Analyzers, Request
43
- Handlers, etc...).
44
-
45
- All directories and paths are resolved relative to the
46
- instanceDir.
47
-
48
- Please note that <lib/> directives are processed in the order
49
- that they appear in your solrconfig.xml file, and are "stacked"
50
- on top of each other when building a ClassLoader - so if you have
51
- plugin jars with dependencies on other jars, the "lower level"
52
- dependency jars should be loaded first.
53
-
54
- If a "./lib" directory exists in your instanceDir, all files
55
- found in it are included as if you had used the following
56
- syntax...
57
-
58
- <lib dir="./lib" />
59
- -->
60
- <dataDir>${solr.data.dir:}</dataDir>
61
-
62
-
63
- <!-- The DirectoryFactory to use for indexes.
64
-
65
- solr.StandardDirectoryFactory is filesystem
66
- based and tries to pick the best implementation for the current
67
- JVM and platform. solr.NRTCachingDirectoryFactory, the default,
68
- wraps solr.StandardDirectoryFactory and caches small files in memory
69
- for better NRT performance.
70
-
71
- One can force a particular implementation via solr.MMapDirectoryFactory,
72
- solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.
73
-
74
- solr.RAMDirectoryFactory is memory based, not
75
- persistent, and doesn't work with replication.
76
- -->
77
- <directoryFactory name="DirectoryFactory"
78
- class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
79
-
80
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81
- Index Config - These settings control low-level behavior of indexing
82
- Most example settings here show the default value, but are commented
83
- out, to more easily see where customizations have been made.
84
-
85
- Note: This replaces <indexDefaults> and <mainIndex> from older versions
86
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
87
- <indexConfig>
88
- <!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
89
- LimitTokenCountFilterFactory in your fieldType definition. E.g.
90
- <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
91
- -->
92
- <!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
93
- <!-- <writeLockTimeout>1000</writeLockTimeout> -->
94
-
95
- <!-- The maximum number of simultaneous threads that may be
96
- indexing documents at once in IndexWriter; if more than this
97
- many threads arrive they will wait for others to finish.
98
- Default in Solr/Lucene is 8. -->
99
- <maxIndexingThreads>2</maxIndexingThreads>
100
-
101
- <useCompoundFile>true</useCompoundFile>
102
-
103
- <!-- ramBufferSizeMB sets the amount of RAM that may be used by Lucene
104
- indexing for buffering added documents and deletions before they are
105
- flushed to the Directory.
106
- maxBufferedDocs sets a limit on the number of documents buffered
107
- before flushing.
108
- If both ramBufferSizeMB and maxBufferedDocs is set, then
109
- Lucene will flush based on whichever limit is hit first. -->
110
- <ramBufferSizeMB>20</ramBufferSizeMB> -->
111
- <maxBufferedDocs>10000</maxBufferedDocs>
112
-
113
- <!-- Expert: Merge Policy
114
- The Merge Policy in Lucene controls how merging of segments is done.
115
- The default since Solr/Lucene 3.3 is TieredMergePolicy.
116
- The default since Lucene 2.3 was the LogByteSizeMergePolicy,
117
- Even older versions of Lucene used LogDocMergePolicy.
118
- -->
119
- <mergePolicy class="org.apache.lucene.index.TieredMergePolicy">
120
- <int name="maxMergeAtOnce">4</int>
121
- <int name="segmentsPerTier">4</int>
122
- </mergePolicy>
123
-
124
- <unlockOnStartup>true</unlockOnStartup>
125
-
126
- </indexConfig>
127
-
128
- <updateHandler class="solr.DirectUpdateHandler2">
129
-
130
- <!-- Enables a transaction log, used for real-time get, durability, and
131
- and solr cloud replica recovery. The log can grow as big as
132
- uncommitted changes to the index, so use of a hard autoCommit
133
- is recommended (see below).
134
- "dir" - the target directory for transaction logs, defaults to the
135
- solr data directory. -->
136
- <updateLog>
137
- <str name="dir">${solr.ulog.dir:}</str>
138
- </updateLog>
139
-
140
- <autoCommit>
141
- <maxTime>15000</maxTime>
142
- <openSearcher>false</openSearcher>
143
- </autoCommit>
144
-
145
- <autoSoftCommit>
146
- <maxTime>5000</maxTime>
147
- </autoSoftCommit>
148
- </updateHandler>
149
-
150
- <query>
151
- <maxBooleanClauses>1024</maxBooleanClauses>
152
-
153
-
154
- <!-- Solr Internal Query Caches
155
-
156
- There are two implementations of cache available for Solr,
157
- LRUCache, based on a synchronized LinkedHashMap, and
158
- FastLRUCache, based on a ConcurrentHashMap.
159
-
160
- FastLRUCache has faster gets and slower puts in single
161
- threaded operation and thus is generally faster than LRUCache
162
- when the hit ratio of the cache is high (> 75%), and may be
163
- faster under other scenarios on multi-cpu systems.
164
- -->
165
-
166
- <!-- Filter Cache
167
-
168
- Cache used by SolrIndexSearcher for filters (DocSets),
169
- unordered sets of *all* documents that match a query. When a
170
- new searcher is opened, its caches may be prepopulated or
171
- "autowarmed" using data from caches in the old searcher.
172
- autowarmCount is the number of items to prepopulate. For
173
- LRUCache, the autowarmed items will be the most recently
174
- accessed items.
175
-
176
- Parameters:
177
- class - the SolrCache implementation LRUCache or
178
- (LRUCache or FastLRUCache)
179
- size - the maximum number of entries in the cache
180
- initialSize - the initial capacity (number of entries) of
181
- the cache. (see java.util.HashMap)
182
- autowarmCount - the number of entries to prepopulate from
183
- and old cache.
184
- -->
185
- <filterCache class="solr.FastLRUCache"
186
- size="512"
187
- initialSize="512"
188
- autowarmCount="0"/>
189
-
190
- <!-- Query Result Cache
191
-
192
- Caches results of searches - ordered lists of document ids
193
- (DocList) based on a query, a sort, and the range of documents requested.
194
- -->
195
- <queryResultCache class="solr.LRUCache"
196
- size="512"
197
- initialSize="512"
198
- autowarmCount="0"/>
199
-
200
- <!-- Document Cache
201
-
202
- Caches Lucene Document objects (the stored fields for each
203
- document). Since Lucene internal document ids are transient,
204
- this cache will not be autowarmed.
205
- -->
206
- <documentCache class="solr.LRUCache"
207
- size="512"
208
- initialSize="512"
209
- autowarmCount="0"/>
210
-
211
- <!-- Lazy Field Loading
212
-
213
- If true, stored fields that are not requested will be loaded
214
- lazily. This can result in a significant speed improvement
215
- if the usual case is to not load all stored fields,
216
- especially if the skipped fields are large compressed text
217
- fields.
218
- -->
219
- <enableLazyFieldLoading>true</enableLazyFieldLoading>
220
-
221
- <!-- Use Filter For Sorted Query
222
-
223
- A possible optimization that attempts to use a filter to
224
- satisfy a search. If the requested sort does not include
225
- score, then the filterCache will be checked for a filter
226
- matching the query. If found, the filter will be used as the
227
- source of document ids, and then the sort will be applied to
228
- that.
229
-
230
- For most situations, this will not be useful unless you
231
- frequently get the same search repeatedly with different sort
232
- options, and none of them ever use "score"
233
- -->
234
- <!--
235
- <useFilterForSortedQuery>true</useFilterForSortedQuery>
236
- -->
237
-
238
- <!-- Result Window Size
239
-
240
- An optimization for use with the queryResultCache. When a search
241
- is requested, a superset of the requested number of document ids
242
- are collected. For example, if a search for a particular query
243
- requests matching documents 10 through 19, and queryWindowSize is 50,
244
- then documents 0 through 49 will be collected and cached. Any further
245
- requests in that range can be satisfied via the cache.
246
- -->
247
- <queryResultWindowSize>20</queryResultWindowSize>
248
-
249
- <!-- Maximum number of documents to cache for any entry in the
250
- queryResultCache.
251
- -->
252
- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
253
-
254
- <!-- Query Related Event Listeners
255
-
256
- Various IndexSearcher related events can trigger Listeners to
257
- take actions.
258
-
259
- newSearcher - fired whenever a new searcher is being prepared
260
- and there is a current searcher handling requests (aka
261
- registered). It can be used to prime certain caches to
262
- prevent long request times for certain requests.
263
-
264
- firstSearcher - fired whenever a new searcher is being
265
- prepared but there is no current registered searcher to handle
266
- requests or to gain autowarming data from.
267
-
268
-
269
- -->
270
-
271
- <!-- Use Cold Searcher
272
-
273
- If a search request comes in and there is no current
274
- registered searcher, then immediately register the still
275
- warming searcher and use it. If "false" then all requests
276
- will block until the first searcher is done warming.
277
- -->
278
- <useColdSearcher>false</useColdSearcher>
279
-
280
- <!-- Max Warming Searchers
281
-
282
- Maximum number of searchers that may be warming in the
283
- background concurrently. An error is returned if this limit
284
- is exceeded.
285
-
286
- Recommend values of 1-2 for read-only slaves, higher for
287
- masters w/o cache warming.
288
- -->
289
- <maxWarmingSearchers>5</maxWarmingSearchers>
290
-
291
- </query>
292
-
293
-
294
- <!-- Request Dispatcher
295
-
296
- This section contains instructions for how the SolrDispatchFilter
297
- should behave when processing requests for this SolrCore.
298
-
299
- handleSelect is a legacy option that affects the behavior of requests
300
- such as /select?qt=XXX
301
-
302
- handleSelect="true" will cause the SolrDispatchFilter to process
303
- the request and dispatch the query to a handler specified by the
304
- "qt" param, assuming "/select" isn't already registered.
305
-
306
- handleSelect="false" will cause the SolrDispatchFilter to
307
- ignore "/select" requests, resulting in a 404 unless a handler
308
- is explicitly registered with the name "/select"
309
-
310
- handleSelect="true" is not recommended for new users, but is the default
311
- for backwards compatibility
312
- -->
313
- <requestDispatcher handleSelect="false" >
314
- <!-- Request Parsing
315
-
316
- These settings indicate how Solr Requests may be parsed, and
317
- what restrictions may be placed on the ContentStreams from
318
- those requests
319
-
320
- enableRemoteStreaming - enables use of the stream.file
321
- and stream.url parameters for specifying remote streams.
322
-
323
- multipartUploadLimitInKB - specifies the max size (in KiB) of
324
- Multipart File Uploads that Solr will allow in a Request.
325
-
326
- formdataUploadLimitInKB - specifies the max size (in KiB) of
327
- form data (application/x-www-form-urlencoded) sent via
328
- POST. You can use POST to pass request parameters not
329
- fitting into the URL.
330
-
331
- *** WARNING ***
332
- The settings below authorize Solr to fetch remote files, You
333
- should make sure your system has some authentication before
334
- using enableRemoteStreaming="true"
335
-
336
- -->
337
-
338
- <!-- HTTP Caching
339
-
340
- Set HTTP caching related parameters (for proxy caches and clients).
341
-
342
- The options below instruct Solr not to output any HTTP Caching
343
- related headers
344
- -->
345
- <httpCaching never304="true" />
346
- <!-- If you include a <cacheControl> directive, it will be used to
347
- generate a Cache-Control header (as well as an Expires header
348
- if the value contains "max-age=")
349
-
350
- By default, no Cache-Control header is generated.
351
-
352
- You can use the <cacheControl> option even if you have set
353
- never304="true"
354
- -->
355
- <!--
356
- <httpCaching never304="true" >
357
- <cacheControl>max-age=30, public</cacheControl>
358
- </httpCaching>
359
- -->
360
- <!-- To enable Solr to respond with automatically generated HTTP
361
- Caching headers, and to response to Cache Validation requests
362
- correctly, set the value of never304="false"
363
-
364
- This will cause Solr to generate Last-Modified and ETag
365
- headers based on the properties of the Index.
366
-
367
- The following options can also be specified to affect the
368
- values of these headers...
369
-
370
- lastModFrom - the default value is "openTime" which means the
371
- Last-Modified value (and validation against If-Modified-Since
372
- requests) will all be relative to when the current Searcher
373
- was opened. You can change it to lastModFrom="dirLastMod" if
374
- you want the value to exactly correspond to when the physical
375
- index was last modified.
376
-
377
- etagSeed="..." is an option you can change to force the ETag
378
- header (and validation against If-None-Match requests) to be
379
- different even if the index has not changed (ie: when making
380
- significant changes to your config file)
381
-
382
- (lastModifiedFrom and etagSeed are both ignored if you use
383
- the never304="true" option)
384
- -->
385
- <!--
386
- <httpCaching lastModifiedFrom="openTime"
387
- etagSeed="Solr">
388
- <cacheControl>max-age=30, public</cacheControl>
389
- </httpCaching>
390
- -->
391
- </requestDispatcher>
392
-
393
- <!-- Request Handlers
394
-
395
- http://wiki.apache.org/solr/SolrRequestHandler
396
-
397
- Incoming queries will be dispatched to a specific handler by name
398
- based on the path specified in the request.
399
-
400
- Legacy behavior: If the request path uses "/select" but no Request
401
- Handler has that name, and if handleSelect="true" has been specified in
402
- the requestDispatcher, then the Request Handler is dispatched based on
403
- the qt parameter. Handlers without a leading '/' are accessed this way
404
- like so: http://host/app/[core/]select?qt=name If no qt is
405
- given, then the requestHandler that declares default="true" will be
406
- used or the one named "standard".
407
-
408
- If a Request Handler is declared with startup="lazy", then it will
409
- not be initialized until the first request that uses it.
410
-
411
- -->
412
- <!-- SearchHandler
413
-
414
- http://wiki.apache.org/solr/SearchHandler
415
-
416
- For processing Search Queries, the primary Request Handler
417
- provided with Solr is "SearchHandler" It delegates to a sequent
418
- of SearchComponents (see below) and supports distributed
419
- queries across multiple shards
420
- -->
421
- <requestHandler name="/select" class="solr.SearchHandler">
422
- <arr name="last-components">
423
- <str>spellcheck</str>
424
- </arr>
425
- </requestHandler>
426
-
427
- <!-- A request handler that returns indented JSON by default -->
428
- <requestHandler name="/query" class="solr.SearchHandler">
429
- <lst name="defaults">
430
- <str name="echoParams">explicit</str>
431
- <str name="wt">json</str>
432
- <str name="indent">true</str>
433
- <str name="df">text</str>
434
- </lst>
435
- <arr name="last-components">
436
- <str>spellcheck</str>
437
- </arr>
438
- </requestHandler>
439
-
440
-
441
- <!-- realtime get handler, guaranteed to return the latest stored fields of
442
- any document, without the need to commit or open a new searcher. The
443
- current implementation relies on the updateLog feature being enabled. -->
444
- <requestHandler name="/get" class="solr.RealTimeGetHandler">
445
- <lst name="defaults">
446
- <str name="omitHeader">true</str>
447
- <str name="wt">json</str>
448
- <str name="indent">true</str>
449
- </lst>
450
- </requestHandler>
451
-
452
- <requestHandler name="/update" class="solr.UpdateRequestHandler">
453
- </requestHandler>
454
-
455
- <requestHandler name="/update/json" class="solr.JsonUpdateRequestHandler">
456
- <lst name="defaults">
457
- <str name="stream.contentType">application/json</str>
458
- </lst>
459
- </requestHandler>
460
-
461
- <requestHandler name="/update/csv" class="solr.CSVRequestHandler">
462
- <lst name="defaults">
463
- <str name="stream.contentType">application/csv</str>
464
- </lst>
465
- </requestHandler>
466
-
467
- <requestHandler name="/update/extract"
468
- startup="lazy"
469
- class="solr.extraction.ExtractingRequestHandler" >
470
- <lst name="defaults">
471
- <str name="lowernames">true</str>
472
- <str name="uprefix">ignored_</str>
473
-
474
- <!-- capture link hrefs but ignore div attributes -->
475
- <str name="captureAttr">true</str>
476
- <str name="fmap.a">links</str>
477
- <str name="fmap.div">ignored_</str>
478
- </lst>
479
- </requestHandler>
480
-
481
- <requestHandler name="/analysis/field"
482
- startup="lazy"
483
- class="solr.FieldAnalysisRequestHandler" />
484
-
485
- <requestHandler name="/analysis/document"
486
- class="solr.DocumentAnalysisRequestHandler"
487
- startup="lazy" />
488
-
489
- <!-- ping/healthcheck -->
490
- <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
491
- <lst name="invariants">
492
- <str name="q">solrpingquery</str>
493
- </lst>
494
- <lst name="defaults">
495
- <str name="echoParams">all</str>
496
- </lst>
497
- </requestHandler>
498
-
499
- <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
500
- <lst name="defaults">
501
- <str name="echoParams">explicit</str>
502
- <str name="echoHandler">true</str>
503
- </lst>
504
- </requestHandler>
505
-
506
- <requestHandler name="/replication" class="solr.ReplicationHandler" >
507
- </requestHandler>
508
-
509
- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
510
-
511
- <str name="queryAnalyzerFieldType">textSpell</str>
512
-
513
- <!-- Multiple "Spell Checkers" can be declared and used by this
514
- component
515
- -->
516
-
517
- <!-- a spellchecker built from a field of the main index -->
518
- <lst name="spellchecker">
519
- <str name="name">default</str>
520
- <str name="field">name</str>
521
- <str name="classname">solr.DirectSolrSpellChecker</str>
522
- <!-- the spellcheck distance measure used, the default is the internal levenshtein -->
523
- <str name="distanceMeasure">internal</str>
524
- <!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
525
- <float name="accuracy">0.5</float>
526
- <!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
527
- <int name="maxEdits">2</int>
528
- <!-- the minimum shared prefix when enumerating terms -->
529
- <int name="minPrefix">1</int>
530
- <!-- maximum number of inspections per result. -->
531
- <int name="maxInspections">5</int>
532
- <!-- minimum length of a query term to be considered for correction -->
533
- <int name="minQueryLength">4</int>
534
- <!-- maximum threshold of documents a query term can appear to be considered for correction -->
535
- <float name="maxQueryFrequency">0.01</float>
536
- <!-- uncomment this to require suggestions to occur in 1% of the documents
537
- <float name="thresholdTokenFrequency">.01</float>
538
- -->
539
- </lst>
540
-
541
- <!-- a spellchecker that can break or combine words. See "/spell" handler below for usage -->
542
- <lst name="spellchecker">
543
- <str name="name">wordbreak</str>
544
- <str name="classname">solr.WordBreakSolrSpellChecker</str>
545
- <str name="field">name</str>
546
- <str name="combineWords">true</str>
547
- <str name="breakWords">true</str>
548
- <int name="maxChanges">10</int>
549
- </lst>
550
- </searchComponent>
551
-
552
- <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
553
-
554
- <searchComponent name="terms" class="solr.TermsComponent"/>
555
-
556
- <searchComponent class="solr.HighlightComponent" name="highlight">
557
- <highlighting>
558
- <!-- Configure the standard fragmenter -->
559
- <!-- This could most likely be commented out in the "default" case -->
560
- <fragmenter name="gap"
561
- default="true"
562
- class="solr.highlight.GapFragmenter">
563
- <lst name="defaults">
564
- <int name="hl.fragsize">100</int>
565
- </lst>
566
- </fragmenter>
567
-
568
- <!-- A regular-expression-based fragmenter
569
- (for sentence extraction)
570
- -->
571
- <fragmenter name="regex"
572
- class="solr.highlight.RegexFragmenter">
573
- <lst name="defaults">
574
- <!-- slightly smaller fragsizes work better because of slop -->
575
- <int name="hl.fragsize">70</int>
576
- <!-- allow 50% slop on fragment sizes -->
577
- <float name="hl.regex.slop">0.5</float>
578
- <!-- a basic sentence pattern -->
579
- <str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
580
- </lst>
581
- </fragmenter>
582
-
583
- <!-- Configure the standard formatter -->
584
- <formatter name="html"
585
- default="true"
586
- class="solr.highlight.HtmlFormatter">
587
- <lst name="defaults">
588
- <str name="hl.simple.pre"><![CDATA[<em>]]></str>
589
- <str name="hl.simple.post"><![CDATA[</em>]]></str>
590
- </lst>
591
- </formatter>
592
-
593
- <!-- Configure the standard encoder -->
594
- <encoder name="html"
595
- class="solr.highlight.HtmlEncoder" />
596
-
597
- <!-- Configure the standard fragListBuilder -->
598
- <fragListBuilder name="simple"
599
- class="solr.highlight.SimpleFragListBuilder"/>
600
-
601
- <!-- Configure the single fragListBuilder -->
602
- <fragListBuilder name="single"
603
- class="solr.highlight.SingleFragListBuilder"/>
604
-
605
- <!-- Configure the weighted fragListBuilder -->
606
- <fragListBuilder name="weighted"
607
- default="true"
608
- class="solr.highlight.WeightedFragListBuilder"/>
609
-
610
- <!-- default tag FragmentsBuilder -->
611
- <fragmentsBuilder name="default"
612
- default="true"
613
- class="solr.highlight.ScoreOrderFragmentsBuilder">
614
- <!--
615
- <lst name="defaults">
616
- <str name="hl.multiValuedSeparatorChar">/</str>
617
- </lst>
618
- -->
619
- </fragmentsBuilder>
620
-
621
- <!-- multi-colored tag FragmentsBuilder -->
622
- <fragmentsBuilder name="colored"
623
- class="solr.highlight.ScoreOrderFragmentsBuilder">
624
- <lst name="defaults">
625
- <str name="hl.tag.pre"><![CDATA[
626
- <b style="background:yellow">,<b style="background:lawgreen">,
627
- <b style="background:aquamarine">,<b style="background:magenta">,
628
- <b style="background:palegreen">,<b style="background:coral">,
629
- <b style="background:wheat">,<b style="background:khaki">,
630
- <b style="background:lime">,<b style="background:deepskyblue">]]></str>
631
- <str name="hl.tag.post"><![CDATA[</b>]]></str>
632
- </lst>
633
- </fragmentsBuilder>
634
-
635
- <boundaryScanner name="default"
636
- default="true"
637
- class="solr.highlight.SimpleBoundaryScanner">
638
- <lst name="defaults">
639
- <str name="hl.bs.maxScan">10</str>
640
- <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
641
- </lst>
642
- </boundaryScanner>
643
-
644
- <boundaryScanner name="breakIterator"
645
- class="solr.highlight.BreakIteratorBoundaryScanner">
646
- <lst name="defaults">
647
- <!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
648
- <str name="hl.bs.type">WORD</str>
649
- <!-- language and country are used when constructing Locale object. -->
650
- <!-- And the Locale object will be used when getting instance of BreakIterator -->
651
- <str name="hl.bs.language">en</str>
652
- <str name="hl.bs.country">US</str>
653
- </lst>
654
- </boundaryScanner>
655
- </highlighting>
656
- </searchComponent>
657
-
658
- <requestHandler class="solr.MoreLikeThisHandler" name="/mlt">
659
- <lst name="defaults">
660
- <str name="mlt.mintf">1</str>
661
- <str name="mlt.mindf">2</str>
662
- </lst>
663
- </requestHandler>
664
-
665
- <!-- Admin Handlers - This will register all the standard admin RequestHandlers. -->
666
- <requestHandler name="/admin/" class="solr.admin.AdminHandlers" />
667
- </config>
@@ -1,2 +0,0 @@
1
- pizza
2
- history