droom 0.0.1 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (459) hide show
  1. data/README.md +2 -2
  2. data/app/assets/images/droom/Untitled-1.png +0 -0
  3. data/app/assets/images/droom/acceptance.png +0 -0
  4. data/app/assets/images/droom/add.png +0 -0
  5. data/app/assets/images/droom/asterisk.png +0 -0
  6. data/app/assets/images/droom/asterisk_up.png +0 -0
  7. data/app/assets/images/droom/checkboxes.png +0 -0
  8. data/app/assets/images/droom/clear.png +0 -0
  9. data/app/assets/images/droom/cog.png +0 -0
  10. data/app/assets/images/droom/copy.png +0 -0
  11. data/app/assets/images/droom/copy_to_dropbox.png +0 -0
  12. data/app/assets/images/droom/crosses.png +0 -0
  13. data/app/assets/images/droom/dark_scrap_icons.png +0 -0
  14. data/app/assets/images/droom/defilter.png +0 -0
  15. data/app/assets/images/droom/delete.png +0 -0
  16. data/app/assets/images/droom/dropbox.png +0 -0
  17. data/app/assets/images/droom/dropbox_button.png +0 -0
  18. data/app/assets/images/droom/dropbox_button_small.png +0 -0
  19. data/app/assets/images/droom/edit.png +0 -0
  20. data/app/assets/images/droom/expand.png +0 -0
  21. data/app/assets/images/droom/expander.png +0 -0
  22. data/app/assets/images/droom/folder.png +0 -0
  23. data/app/assets/images/droom/image_box.png +0 -0
  24. data/app/assets/images/droom/in_dropbox.png +0 -0
  25. data/app/assets/images/droom/integration_buttons.png +0 -0
  26. data/app/assets/images/droom/leftright.png +0 -0
  27. data/app/assets/images/droom/manage.png +0 -0
  28. data/app/assets/images/droom/medium_object_icons.png +0 -0
  29. data/app/assets/images/droom/object_icons.png +0 -0
  30. data/app/assets/images/droom/playable.png +0 -0
  31. data/app/assets/images/droom/revoke.png +0 -0
  32. data/app/assets/images/droom/scrap_icons.png +0 -0
  33. data/app/assets/images/droom/search.png +0 -0
  34. data/app/assets/images/droom/small_asterisk.png +0 -0
  35. data/app/assets/images/droom/small_cog.png +0 -0
  36. data/app/assets/images/droom/small_download.png +0 -0
  37. data/app/assets/images/droom/small_image_box.png +0 -0
  38. data/app/assets/images/droom/smalladd.png +0 -0
  39. data/app/assets/images/droom/smallarrows.png +0 -0
  40. data/app/assets/images/droom/smallcopy.png +0 -0
  41. data/app/assets/images/droom/smalldelete.png +0 -0
  42. data/app/assets/images/droom/smalldownload.png +0 -0
  43. data/app/assets/images/droom/smalledit.png +0 -0
  44. data/app/assets/images/droom/smallmanage.png +0 -0
  45. data/app/assets/images/droom/star.png +0 -0
  46. data/app/assets/images/droom/symbols.png +0 -0
  47. data/app/assets/images/droom/tinyarrows.png +0 -0
  48. data/app/assets/images/droom/to_dropbox.png +0 -0
  49. data/app/assets/images/droom/twisty.png +0 -0
  50. data/app/assets/images/droom/youtube_icon.png +0 -0
  51. data/app/assets/javascripts/droom.js.coffee +62 -65
  52. data/app/assets/javascripts/droom/actions.js.coffee +492 -0
  53. data/app/assets/javascripts/droom/ajax.js.coffee +84 -0
  54. data/app/assets/javascripts/droom/{lib/extensions.js.coffee → extensions.js.coffee} +22 -15
  55. data/app/assets/javascripts/droom/lib/ZeroClipboard.js +334 -0
  56. data/app/assets/javascripts/droom/lib/ZeroClipboard.swf +0 -0
  57. data/app/assets/javascripts/droom/lib/ZeroClipboard10.swf +0 -0
  58. data/app/assets/javascripts/droom/map.js.coffee +124 -86
  59. data/app/assets/javascripts/droom/popups.js.coffee +252 -0
  60. data/app/assets/javascripts/droom/stream.js.coffee +92 -0
  61. data/app/assets/javascripts/droom/utilities.js.coffee +120 -0
  62. data/app/assets/javascripts/droom/widgets.js.coffee +1209 -0
  63. data/app/assets/stylesheets/_definitions.css.sass +189 -0
  64. data/app/assets/stylesheets/droom.css.sass +1429 -376
  65. data/app/assets/stylesheets/lib/_kalendae.css.sass +2 -5
  66. data/app/assets/stylesheets/lib/_popups.css.sass +86 -0
  67. data/app/assets/stylesheets/lib/_toolbar.css.sass +17 -11
  68. data/app/controllers/droom/agenda_categories_controller.rb +24 -0
  69. data/app/controllers/droom/calendars_controller.rb +29 -0
  70. data/app/controllers/droom/confirmations_controller.rb +38 -0
  71. data/app/controllers/droom/dashboard_controller.rb +2 -0
  72. data/app/controllers/droom/documents_controller.rb +42 -51
  73. data/app/controllers/droom/dropbox_tokens_controller.rb +61 -0
  74. data/app/controllers/droom/engine_controller.rb +8 -23
  75. data/app/controllers/droom/events_controller.rb +39 -27
  76. data/app/controllers/droom/folders_controller.rb +106 -0
  77. data/app/controllers/droom/group_invitations_controller.rb +15 -7
  78. data/app/controllers/droom/groups_controller.rb +4 -4
  79. data/app/controllers/droom/invitations_controller.rb +37 -9
  80. data/app/controllers/droom/memberships_controller.rb +5 -3
  81. data/app/controllers/droom/organisations_controller.rb +53 -0
  82. data/app/controllers/droom/people_controller.rb +46 -27
  83. data/app/controllers/droom/preferences_controller.rb +34 -0
  84. data/app/controllers/droom/scraps_controller.rb +77 -0
  85. data/app/controllers/droom/search_controller.rb +66 -0
  86. data/app/controllers/droom/suggestions_controller.rb +22 -35
  87. data/app/controllers/droom/users_controller.rb +69 -0
  88. data/app/controllers/droom/venues_controller.rb +1 -2
  89. data/app/controllers/droom/youtube_controller.rb +22 -0
  90. data/app/helpers/droom/droom_helper.rb +93 -5
  91. data/app/models/droom/agenda_category.rb +8 -1
  92. data/app/models/droom/calendar.rb +19 -0
  93. data/app/models/droom/category.rb +4 -6
  94. data/app/models/droom/document.rb +103 -64
  95. data/app/models/droom/document_attachment.rb +13 -47
  96. data/app/models/droom/dropbox_document.rb +41 -0
  97. data/app/models/droom/dropbox_token.rb +29 -0
  98. data/app/models/droom/event.rb +125 -90
  99. data/app/models/droom/folder.rb +134 -0
  100. data/app/models/droom/group.rb +68 -27
  101. data/app/models/droom/group_invitation.rb +12 -3
  102. data/app/models/droom/invitation.rb +50 -8
  103. data/app/models/droom/mailing_list_membership.rb +128 -0
  104. data/app/models/droom/membership.rb +71 -9
  105. data/app/models/droom/organisation.rb +22 -0
  106. data/app/models/droom/page.rb +3 -3
  107. data/app/models/droom/person.rb +180 -166
  108. data/app/models/droom/personal_folder.rb +31 -0
  109. data/app/models/droom/preference.rb +35 -0
  110. data/app/models/droom/recurrence_rule.rb +1 -1
  111. data/app/models/droom/scrap.rb +110 -0
  112. data/app/models/droom/tag.rb +120 -0
  113. data/app/models/droom/tagging.rb +13 -0
  114. data/app/models/droom/user.rb +211 -0
  115. data/app/models/droom/user_action_observer.rb +12 -0
  116. data/app/models/droom/venue.rb +56 -39
  117. data/app/views/cropper/uploads/_crop.html.haml +46 -0
  118. data/app/views/devise/mailer/confirmation_instructions.en.html.haml +24 -0
  119. data/app/views/devise/mailer/reset_password_instructions.en.html.haml +21 -0
  120. data/app/views/devise/passwords/edit.html.haml +31 -0
  121. data/app/views/devise/passwords/new.html.haml +21 -0
  122. data/app/views/devise/sessions/new.html.haml +33 -0
  123. data/app/views/droom/agenda_categories/_form.html.haml +22 -0
  124. data/app/views/droom/agenda_categories/new.html.haml +6 -0
  125. data/app/views/droom/calendars/_action_menu.html.haml +6 -0
  126. data/app/views/droom/calendars/index.html.haml +12 -0
  127. data/app/views/droom/calendars/show.rss.builder +0 -0
  128. data/app/views/droom/confirmations/show.html.haml +40 -0
  129. data/app/views/droom/dashboard/_calendar.html.haml +1 -0
  130. data/app/views/droom/dashboard/_folders.html.haml +5 -0
  131. data/app/views/droom/dashboard/_future_events.html.haml +18 -0
  132. data/app/views/droom/dashboard/_invitations.html.haml +1 -0
  133. data/app/views/droom/dashboard/_past_events.haml +14 -0
  134. data/app/views/droom/dashboard/_quicksearch.html.haml +6 -0
  135. data/app/views/droom/dashboard/_stream.html.haml +9 -0
  136. data/app/views/droom/dashboard/index.html.haml +5 -3
  137. data/app/views/droom/documents/_action_menu.html.haml +7 -0
  138. data/app/views/droom/documents/_documents.html.haml +5 -0
  139. data/app/views/droom/documents/_documents_list.html.haml +6 -6
  140. data/app/views/droom/documents/_documents_table.html.haml +29 -10
  141. data/app/views/droom/documents/_form.html.haml +3 -7
  142. data/app/views/droom/documents/_listing.html.haml +5 -6
  143. data/app/views/droom/documents/_pagination.html.haml +8 -0
  144. data/app/views/droom/documents/_search_result.html.haml +14 -0
  145. data/app/views/droom/documents/_suggested.html.haml +0 -5
  146. data/app/views/droom/documents/_table_document.html.haml +2 -8
  147. data/app/views/droom/documents/edit.html.haml +7 -1
  148. data/app/views/droom/documents/index.html.haml +10 -27
  149. data/app/views/droom/documents/new.html.haml +10 -1
  150. data/app/views/droom/dropbox_tokens/new.html.haml +6 -0
  151. data/app/views/droom/events/_action_menu.html.haml +15 -0
  152. data/app/views/droom/events/_event.html.haml +67 -57
  153. data/app/views/droom/events/_form.html.haml +15 -4
  154. data/app/views/droom/events/_invitations.html.haml +4 -19
  155. data/app/views/droom/events/_search_result.html.haml +19 -0
  156. data/app/views/droom/events/_views.html.haml +2 -2
  157. data/app/views/droom/events/edit.html.haml +7 -1
  158. data/app/views/droom/events/index.html.haml +27 -10
  159. data/app/views/droom/events/index.rss.builder +1 -1
  160. data/app/views/droom/events/new.html.haml +6 -1
  161. data/app/views/droom/events/show.html.haml +5 -1
  162. data/app/views/droom/folders/_action_menu.html.haml +14 -0
  163. data/app/views/droom/folders/_attachments.html.haml +3 -0
  164. data/app/views/droom/folders/_contents.html.haml +6 -0
  165. data/app/views/droom/folders/_folder.html.haml +20 -0
  166. data/app/views/droom/folders/_folders.html.haml +2 -0
  167. data/app/views/droom/folders/_form.html.haml +18 -0
  168. data/app/views/droom/folders/edit.html.haml +6 -0
  169. data/app/views/droom/folders/index.html.haml +32 -0
  170. data/app/views/droom/folders/new.html.haml +6 -0
  171. data/app/views/droom/folders/show.html.haml +1 -0
  172. data/app/views/droom/group_invitations/_form.html.haml +15 -4
  173. data/app/views/droom/group_invitations/new.html.haml +6 -1
  174. data/app/views/droom/groups/_action_menu.haml +11 -0
  175. data/app/views/droom/groups/_form.html.haml +10 -11
  176. data/app/views/droom/groups/_group.html.haml +9 -10
  177. data/app/views/droom/groups/_groups.html.haml +2 -3
  178. data/app/views/droom/groups/_search_result.html.haml +16 -0
  179. data/app/views/droom/groups/_suggested.html.haml +7 -0
  180. data/app/views/droom/groups/edit.html.haml +7 -1
  181. data/app/views/droom/groups/index.html.haml +6 -3
  182. data/app/views/droom/groups/new.html.haml +7 -0
  183. data/app/views/droom/groups/show.html.haml +1 -1
  184. data/app/views/droom/invitations/_created.html.haml +1 -1
  185. data/app/views/droom/invitations/_form.html.haml +9 -5
  186. data/app/views/droom/invitations/_invitation.html.haml +9 -0
  187. data/app/views/droom/invitations/_invitations.html.haml +8 -0
  188. data/app/views/droom/invitations/new.html.haml +6 -1
  189. data/app/views/droom/memberships/_member.html.haml +1 -1
  190. data/app/views/droom/memberships/_membership_toggle.html.haml +10 -0
  191. data/app/views/droom/memberships/new.html.haml +10 -0
  192. data/app/views/droom/organisations/_action_menu.html.haml +7 -0
  193. data/app/views/droom/organisations/_form.html.haml +25 -0
  194. data/app/views/droom/organisations/_organisation.html.haml +23 -0
  195. data/app/views/droom/organisations/_organisations.html.haml +2 -0
  196. data/app/views/droom/organisations/_suggested.html.haml +7 -0
  197. data/app/views/droom/organisations/edit.html.haml +6 -0
  198. data/app/views/droom/organisations/index.html.haml +20 -0
  199. data/app/views/droom/organisations/new.html.haml +6 -0
  200. data/app/views/droom/organisations/show.html.haml +1 -0
  201. data/app/views/droom/pages/_full_page.html.haml +1 -1
  202. data/app/views/droom/pages/index.html.haml +1 -1
  203. data/app/views/droom/panels/_account.html.haml +16 -0
  204. data/app/views/droom/panels/_admin.html.haml +23 -0
  205. data/app/views/droom/panels/_devices.html.haml +19 -0
  206. data/app/views/droom/panels/_dropbox.html.haml +17 -0
  207. data/app/views/droom/panels/_email.html.haml +16 -0
  208. data/app/views/droom/panels/_keywords.html.haml +3 -0
  209. data/app/views/droom/panels/_networks.html.haml +3 -0
  210. data/app/views/droom/panels/_readers.html.haml +18 -0
  211. data/app/views/droom/panels/_rss.html.haml +10 -0
  212. data/app/views/droom/panels/_search.html.haml +16 -0
  213. data/app/views/droom/panels/_vcal.html.haml +3 -0
  214. data/app/views/droom/people/_action_menu.html.haml +22 -0
  215. data/app/views/droom/people/_form.html.haml +69 -39
  216. data/app/views/droom/people/_listing.html.haml +19 -0
  217. data/app/views/droom/people/_memberships.html.haml +24 -0
  218. data/app/views/droom/people/_people.html.haml +5 -29
  219. data/app/views/droom/people/_person.html.haml +30 -32
  220. data/app/views/droom/people/_search_result.html.haml +14 -0
  221. data/app/views/droom/people/_suggested.html.haml +10 -5
  222. data/app/views/droom/people/edit.html.haml +9 -1
  223. data/app/views/droom/people/index.html.haml +6 -9
  224. data/app/views/droom/people/new.html.haml +6 -1
  225. data/app/views/droom/people/show.html.haml +1 -1
  226. data/app/views/droom/preferences/_checkbox.html.haml +7 -0
  227. data/app/views/droom/preferences/_radio_set.html.haml +9 -0
  228. data/app/views/droom/scraps/_action_menu.html.haml +9 -0
  229. data/app/views/droom/scraps/_caption.html.haml +9 -0
  230. data/app/views/droom/scraps/_credit.html.haml +10 -0
  231. data/app/views/droom/scraps/_form.html.haml +77 -0
  232. data/app/views/droom/scraps/_heading.html.haml +16 -0
  233. data/app/views/droom/scraps/_scrap.html.haml +17 -0
  234. data/app/views/droom/scraps/_search_result.html.haml +5 -0
  235. data/app/views/droom/scraps/_stream.html.haml +4 -0
  236. data/app/views/droom/scraps/_suggested.html.haml +5 -0
  237. data/app/views/droom/scraps/_thumb.html.haml +5 -0
  238. data/app/views/droom/scraps/edit.html.haml +2 -0
  239. data/app/views/droom/scraps/full/_document.html.haml +6 -0
  240. data/app/views/droom/scraps/full/_event.html.haml +20 -0
  241. data/app/views/droom/scraps/full/_image.html.haml +4 -0
  242. data/app/views/droom/scraps/full/_link.html.haml +5 -0
  243. data/app/views/droom/scraps/full/_quote.html.haml +8 -0
  244. data/app/views/droom/scraps/full/_text.html.haml +4 -0
  245. data/app/views/droom/scraps/full/_video.html.haml +4 -0
  246. data/app/views/droom/scraps/index.atom.builder +26 -0
  247. data/app/views/droom/scraps/index.html.haml +15 -0
  248. data/app/views/droom/scraps/new.html.haml +2 -0
  249. data/app/views/droom/scraps/show.html.haml +4 -0
  250. data/app/views/droom/scraps/thumbs/_document.html.haml +9 -0
  251. data/app/views/droom/scraps/thumbs/_event.html.haml +17 -0
  252. data/app/views/droom/scraps/thumbs/_image.html.haml +6 -0
  253. data/app/views/droom/scraps/thumbs/_link.html.haml +10 -0
  254. data/app/views/droom/scraps/thumbs/_quote.html.haml +8 -0
  255. data/app/views/droom/scraps/thumbs/_text.html.haml +8 -0
  256. data/app/views/droom/scraps/thumbs/_video.html.haml +6 -0
  257. data/app/views/droom/shared/_controls.html.haml +5 -3
  258. data/app/views/droom/shared/_excerpt.html.haml +2 -0
  259. data/app/views/droom/shared/_navigation.html.haml +4 -4
  260. data/app/views/droom/shared/_panels.html.haml +4 -0
  261. data/app/views/droom/shared/_quicklinks.html.haml +5 -0
  262. data/app/views/droom/shared/_search_form.html.haml +2 -1
  263. data/app/views/droom/shared/_search_results.html.haml +9 -0
  264. data/app/views/droom/shared/_suggestions.html.haml +13 -9
  265. data/app/views/droom/shared/_title_excerpt.haml +2 -0
  266. data/app/views/droom/shared/search.html.haml +18 -0
  267. data/app/views/droom/users/_confirmation.html.haml +2 -0
  268. data/app/views/droom/users/_dropbox_status.html.haml +2 -0
  269. data/app/views/droom/users/_form.html.haml +34 -0
  270. data/app/views/droom/users/_user.html.haml +2 -0
  271. data/app/views/droom/users/_user_or_person.html.haml +63 -0
  272. data/app/views/droom/users/_users_table.html.haml +17 -0
  273. data/app/views/droom/users/edit.html.haml +10 -0
  274. data/app/views/droom/users/index.html.haml +42 -0
  275. data/app/views/droom/users/unwelcome.en.html.haml +17 -0
  276. data/app/views/droom/venues/_search_result.html.haml +17 -0
  277. data/app/views/droom/youtube/show.html.haml +12 -0
  278. data/app/views/kaminari/_paginator.html.haml +16 -0
  279. data/app/views/layouts/droom/application.html.haml +17 -17
  280. data/app/views/layouts/droom/email.html.haml +59 -0
  281. data/config/cucumber.yml +8 -0
  282. data/config/initializers/devise.rb +240 -0
  283. data/config/locales/devise.en.yml +58 -0
  284. data/config/locales/en.yml +203 -32
  285. data/config/routes.rb +55 -16
  286. data/config/sunspot.yml +17 -0
  287. data/db/migrate/20121120115447_tags.rb +18 -0
  288. data/db/migrate/20130116155331_dropbox_tokens.rb +9 -0
  289. data/db/migrate/20130118103540_folders.rb +47 -0
  290. data/db/migrate/20130124113715_preferences.rb +10 -0
  291. data/db/migrate/20130125132427_users_in_droom.rb +58 -0
  292. data/db/migrate/20130129142307_mobile_phones.rb +7 -0
  293. data/db/migrate/20130130120124_folder_ancestry_to_parents.rb +7 -0
  294. data/db/migrate/20130131161430_mailing_lists.rb +37 -0
  295. data/db/migrate/20130207091903_preference_uuids.rb +5 -0
  296. data/db/migrate/20130207123614_stream.rb +13 -0
  297. data/db/migrate/20130208035113_access_token_secret.rb +5 -0
  298. data/db/migrate/20130214145014_person_image.rb +9 -0
  299. data/db/migrate/20130217152644_devise_confirmable.rb +13 -0
  300. data/db/migrate/20130225095328_create_droom_calendars.rb +20 -0
  301. data/db/migrate/20130226092944_give_scraps_document.rb +5 -0
  302. data/db/migrate/20130228083509_privateness.rb +9 -0
  303. data/db/migrate/20130228134143_store_metadata.rb +5 -0
  304. data/db/migrate/20130305150648_folders_nicely.rb +6 -0
  305. data/db/migrate/20130305151936_niceties.rb +7 -0
  306. data/db/migrate/20130308103807_create_droom_dropbox_documents.rb +11 -0
  307. data/db/migrate/20130308154552_dropbox_documents_changed.rb +5 -0
  308. data/db/migrate/20130326135738_user_titles.rb +5 -0
  309. data/lib/droom.rb +189 -22
  310. data/lib/droom/engine.rb +6 -1
  311. data/lib/droom/folders.rb +106 -0
  312. data/lib/droom/lazy_hash.rb +73 -0
  313. data/lib/droom/{helpers.rb → model_helpers.rb} +1 -1
  314. data/lib/droom/monkeys.rb +21 -2
  315. data/lib/droom/routing.rb +13 -0
  316. data/lib/droom/searchability.rb +25 -0
  317. data/lib/droom/taggability.rb +60 -0
  318. data/lib/droom/title_case.rb +101 -0
  319. data/lib/droom/user_config.rb +67 -0
  320. data/lib/droom/validators.rb +6 -0
  321. data/lib/droom/version.rb +1 -1
  322. data/lib/generators/droom/install/templates/droom_initializer.rb +0 -1
  323. data/lib/tasks/cucumber.rake +65 -0
  324. data/spec/datasets/calendar_events_dataset.rb +44 -0
  325. data/spec/datasets/calendar_pages_dataset.rb +8 -0
  326. data/spec/datasets/calendar_sites_dataset.rb +6 -0
  327. data/spec/datasets/calendars_dataset.rb +34 -0
  328. data/spec/datasets/documents_dataset.rb +28 -0
  329. data/spec/datasets/recurrence_dataset.rb +7 -0
  330. data/spec/dummy/README.rdoc +261 -0
  331. data/spec/dummy/Rakefile +7 -0
  332. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  333. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  334. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  335. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  336. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  337. data/spec/dummy/config.ru +4 -0
  338. data/spec/dummy/config/application.rb +65 -0
  339. data/spec/dummy/config/boot.rb +10 -0
  340. data/spec/dummy/config/database.yml +21 -0
  341. data/spec/dummy/config/environment.rb +5 -0
  342. data/spec/dummy/config/environments/development.rb +38 -0
  343. data/spec/dummy/config/environments/production.rb +67 -0
  344. data/spec/dummy/config/environments/test.rb +38 -0
  345. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  346. data/spec/dummy/config/initializers/inflections.rb +15 -0
  347. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  348. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  349. data/spec/dummy/config/initializers/session_store.rb +8 -0
  350. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  351. data/spec/dummy/config/locales/en.yml +7 -0
  352. data/spec/dummy/config/routes.rb +3 -0
  353. data/spec/dummy/config/sunspot.yml +17 -0
  354. data/spec/dummy/db/migrate/20120911070124_create_droom_data.droom.rb +135 -0
  355. data/spec/dummy/db/migrate/20120921094604_agenda_sections.droom.rb +14 -0
  356. data/spec/dummy/db/migrate/20120921094605_add_postal_address_to_people.droom.rb +11 -0
  357. data/spec/dummy/db/migrate/20121102064845_give_groups_descriptions.droom.rb +6 -0
  358. data/spec/dummy/db/migrate/20121102064846_more_names.droom.rb +6 -0
  359. data/spec/dummy/db/migrate/20121102064847_event_agenda_sections.droom.rb +14 -0
  360. data/spec/dummy/db/migrate/20121102064848_create_group_invitations.droom.rb +11 -0
  361. data/spec/dummy/db/migrate/20121102064849_give_people_positions.droom.rb +6 -0
  362. data/spec/dummy/db/migrate/20121102064850_help_pages.droom.rb +14 -0
  363. data/spec/dummy/db/migrate/20121102064851_category_slugs.droom.rb +6 -0
  364. data/spec/dummy/db/migrate/20121102064852_document_links.droom.rb +15 -0
  365. data/spec/dummy/db/migrate/20121102064853_people_visibility.droom.rb +8 -0
  366. data/spec/dummy/db/migrate/20121102094820_shy_people.droom.rb +6 -0
  367. data/spec/dummy/db/migrate/20121102095927_visibility_defaults.droom.rb +10 -0
  368. data/spec/dummy/db/migrate/20130121122352_tags.droom.rb +19 -0
  369. data/spec/dummy/db/migrate/20130121122353_dropbox.droom.rb +10 -0
  370. data/spec/dummy/db/migrate/20130121122354_folders.droom.rb +48 -0
  371. data/spec/dummy/db/migrate/20130128142902_memberships_expire.droom.rb +6 -0
  372. data/spec/dummy/db/migrate/20130128142903_give_documents_extracted_text.droom.rb +6 -0
  373. data/spec/dummy/db/migrate/20130128142904_preferences.droom.rb +11 -0
  374. data/spec/dummy/db/migrate/20130128142905_users_in_droom.droom.rb +59 -0
  375. data/spec/dummy/db/migrate/20130130120631_folder_ancestry_to_parents.droom.rb +8 -0
  376. data/spec/dummy/db/migrate/20130201103737_mobile_phones.droom.rb +8 -0
  377. data/spec/dummy/db/migrate/20130201103738_mailing_lists.droom.rb +38 -0
  378. data/spec/dummy/db/schema.rb +327 -0
  379. data/spec/dummy/log/sunspot-solr-test.log.1 +222 -0
  380. data/spec/dummy/public/404.html +26 -0
  381. data/spec/dummy/public/422.html +26 -0
  382. data/spec/dummy/public/500.html +25 -0
  383. data/spec/dummy/public/favicon.ico +0 -0
  384. data/spec/dummy/public/system/droom/documents/files/000/000/001/original/frog.png +0 -0
  385. data/spec/dummy/public/system/droom/documents/files/000/000/001/original/rat.png +0 -0
  386. data/spec/dummy/script/rails +6 -0
  387. data/spec/dummy/solr/conf/admin-extra.html +31 -0
  388. data/spec/dummy/solr/conf/elevate.xml +36 -0
  389. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  390. data/spec/dummy/solr/conf/protwords.txt +21 -0
  391. data/spec/dummy/solr/conf/schema.xml +238 -0
  392. data/spec/dummy/solr/conf/scripts.conf +24 -0
  393. data/spec/dummy/solr/conf/solrconfig.xml +934 -0
  394. data/spec/dummy/solr/conf/spellings.txt +2 -0
  395. data/spec/dummy/solr/conf/stopwords.txt +58 -0
  396. data/spec/dummy/solr/conf/synonyms.txt +31 -0
  397. data/spec/dummy/solr/data/development/index/segments.gen +0 -0
  398. data/spec/dummy/solr/data/development/index/segments_1 +0 -0
  399. data/spec/dummy/solr/data/development/spellchecker/segments.gen +0 -0
  400. data/spec/dummy/solr/data/development/spellchecker/segments_1 +0 -0
  401. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  402. data/spec/dummy/solr/data/test/index/segments_3nu +0 -0
  403. data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
  404. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  405. data/spec/dummy/webdav/1/group/rat.png +0 -0
  406. data/spec/dummy/webdav/1/unattached/rat.png +0 -0
  407. data/spec/dummy/webdav/group/rat.png +0 -0
  408. data/spec/dummy/webdav/unattached/rat.png +0 -0
  409. data/spec/dummy/webdav/unattached/rat_v1.png +0 -0
  410. data/spec/factories/agenda_categories.rb +5 -0
  411. data/spec/factories/categories.rb +5 -0
  412. data/spec/factories/documents.rb +16 -0
  413. data/spec/factories/events.rb +41 -0
  414. data/spec/factories/folders.rb +5 -0
  415. data/spec/factories/groups.rb +6 -0
  416. data/spec/factories/memberships.rb +5 -0
  417. data/spec/factories/people.rb +16 -0
  418. data/spec/factories/recurrence_rules.rb +25 -0
  419. data/spec/factories/user.rb +6 -0
  420. data/spec/fixtures/dummy.ics +59 -0
  421. data/spec/fixtures/images/frog.png +0 -0
  422. data/spec/fixtures/images/rat.png +0 -0
  423. data/spec/fixtures/ny.ics +36 -0
  424. data/spec/lib/droom/folders_spec.rb +46 -0
  425. data/spec/lib/droom/lazy_hash_spec.rb +33 -0
  426. data/spec/models/droom/agenda_category_spec.rb +15 -0
  427. data/spec/models/droom/document_spec.rb +76 -0
  428. data/spec/models/droom/event_spec.rb +154 -0
  429. data/spec/models/droom/folder_spec.rb +5 -0
  430. data/spec/models/droom/ical_spec.rb +62 -0
  431. data/spec/models/droom/mailing_list_membership_spec.rb +81 -0
  432. data/spec/models/droom/membership_spec.rb +22 -0
  433. data/spec/models/droom/person_spec.rb +72 -0
  434. data/spec/models/droom/recurrence_rule_spec.rb +81 -0
  435. data/spec/models/droom/user_spec.rb +27 -0
  436. data/spec/models/droom/visibility_spec.rb +6 -0
  437. data/spec/spec_helper.rb +119 -0
  438. data/spec/support/matchers/content_type_matcher.rb +17 -0
  439. metadata +591 -36
  440. data/app/assets/javascripts/droom/calendar.js.coffee +0 -121
  441. data/app/assets/javascripts/droom/drag_sort.js.coffee +0 -22
  442. data/app/assets/javascripts/droom/forms.js.coffee +0 -746
  443. data/app/assets/javascripts/droom/sort.js.coffee +0 -126
  444. data/app/assets/javascripts/droom/suggester.js.coffee +0 -230
  445. data/app/controllers/droom/document_attachments_controller.rb +0 -19
  446. data/app/models/droom/document_link.rb +0 -31
  447. data/app/models/droom/personal_document.rb +0 -98
  448. data/app/views/droom/dashboard/_marginalia.html.haml +0 -3
  449. data/app/views/droom/dashboard/_my_future_events.html.haml +0 -9
  450. data/app/views/droom/dashboard/_my_group_documents.html.haml +0 -6
  451. data/app/views/droom/dashboard/_my_past_events.haml +0 -6
  452. data/app/views/droom/documents/_event_document_form.html.haml +0 -15
  453. data/app/views/droom/errors/bang.html.haml +0 -12
  454. data/app/views/droom/errors/not_allowed.html.haml +0 -12
  455. data/app/views/droom/errors/not_found.html.haml +0 -12
  456. data/app/views/droom/events/_attachment.html.haml +0 -1
  457. data/app/views/droom/events/_attachment_list.html.haml +0 -4
  458. data/app/views/droom/invitations/_attending_people.html.haml +0 -8
  459. data/config/initializers/dav.rb +0 -2
@@ -0,0 +1,21 @@
1
+ # The ASF licenses this file to You under the Apache License, Version 2.0
2
+ # (the "License"); you may not use this file except in compliance with
3
+ # the License. You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ #-----------------------------------------------------------------------
14
+ # Use a protected word file to protect against the stemmer reducing two
15
+ # unrelated words to the same base word.
16
+
17
+ # Some non-words that normally won't be encountered,
18
+ # just to test that they won't be stemmed.
19
+ dontstems
20
+ zwhacky
21
+
@@ -0,0 +1,238 @@
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
+ This is the Solr schema file. This file should be named "schema.xml" and
20
+ should be in the conf directory under the solr home
21
+ (i.e. ./solr/conf/schema.xml by default)
22
+ or located where the classloader for the Solr webapp can find it.
23
+
24
+ This example schema is the recommended starting point for users.
25
+ It should be kept correct and concise, usable out-of-the-box.
26
+
27
+ For more information, on how to customize this file, please see
28
+ http://wiki.apache.org/solr/SchemaXml
29
+
30
+ PERFORMANCE NOTE: this schema includes many optional features and should not
31
+ be used for benchmarking. To improve performance one could
32
+ - set stored="false" for all fields possible (esp large fields) when you
33
+ only need to search on the field but don't need to return the original
34
+ value.
35
+ - set indexed="false" if you don't need to search on the field, but only
36
+ return the field as a result of searching on other indexed fields.
37
+ - remove all unneeded copyField statements
38
+ - for best index size and searching performance, set "index" to false
39
+ for all general text fields, use copyField to copy them to the
40
+ catchall "text" field, and use that for searching.
41
+ - For maximum indexing performance, use the StreamingUpdateSolrServer
42
+ java client.
43
+ - Remember to run the JVM in server mode, and use a higher logging level
44
+ that avoids logging every request
45
+ -->
46
+ <schema name="sunspot" version="1.0">
47
+ <types>
48
+ <!-- field type definitions. The "name" attribute is
49
+ just a label to be used by field definitions. The "class"
50
+ attribute and any other attributes determine the real
51
+ behavior of the fieldType.
52
+ Class names starting with "solr" refer to java classes in the
53
+ org.apache.solr.analysis package.
54
+ -->
55
+ <!-- *** This fieldType is used by Sunspot! *** -->
56
+ <fieldType name="string" class="solr.StrField" omitNorms="true"/>
57
+ <!-- *** This fieldType is used by Sunspot! *** -->
58
+ <fieldType name="tdouble" class="solr.TrieDoubleField" omitNorms="true"/>
59
+ <!-- *** This fieldType is used by Sunspot! *** -->
60
+ <fieldType name="rand" class="solr.RandomSortField" omitNorms="true"/>
61
+ <!-- *** This fieldType is used by Sunspot! *** -->
62
+ <fieldType name="text" class="solr.TextField" omitNorms="false">
63
+ <analyzer>
64
+ <tokenizer class="solr.StandardTokenizerFactory"/>
65
+ <filter class="solr.StandardFilterFactory"/>
66
+ <filter class="solr.LowerCaseFilterFactory"/>
67
+ </analyzer>
68
+ </fieldType>
69
+ <!-- *** This fieldType is used by Sunspot! *** -->
70
+ <fieldType name="boolean" class="solr.BoolField" omitNorms="true"/>
71
+ <!-- *** This fieldType is used by Sunspot! *** -->
72
+ <fieldType name="date" class="solr.DateField" omitNorms="true"/>
73
+ <!-- *** This fieldType is used by Sunspot! *** -->
74
+ <fieldType name="sdouble" class="solr.SortableDoubleField" omitNorms="true"/>
75
+ <!-- *** This fieldType is used by Sunspot! *** -->
76
+ <fieldType name="sfloat" class="solr.SortableFloatField" omitNorms="true"/>
77
+ <!-- *** This fieldType is used by Sunspot! *** -->
78
+ <fieldType name="sint" class="solr.SortableIntField" omitNorms="true"/>
79
+ <!-- *** This fieldType is used by Sunspot! *** -->
80
+ <fieldType name="slong" class="solr.SortableLongField" omitNorms="true"/>
81
+ <!-- *** This fieldType is used by Sunspot! *** -->
82
+ <fieldType name="tint" class="solr.TrieIntField" omitNorms="true"/>
83
+ <!-- *** This fieldType is used by Sunspot! *** -->
84
+ <fieldType name="tfloat" class="solr.TrieFloatField" omitNorms="true"/>
85
+ <!-- *** This fieldType is used by Sunspot! *** -->
86
+ <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"/>
87
+ </types>
88
+ <fields>
89
+ <!-- Valid attributes for fields:
90
+ name: mandatory - the name for the field
91
+ type: mandatory - the name of a previously defined type from the
92
+ <types> section
93
+ indexed: true if this field should be indexed (searchable or sortable)
94
+ stored: true if this field should be retrievable
95
+ compressed: [false] if this field should be stored using gzip compression
96
+ (this will only apply if the field type is compressable; among
97
+ the standard field types, only TextField and StrField are)
98
+ multiValued: true if this field may contain multiple values per document
99
+ omitNorms: (expert) set to true to omit the norms associated with
100
+ this field (this disables length normalization and index-time
101
+ boosting for the field, and saves some memory). Only full-text
102
+ fields or fields that need an index-time boost need norms.
103
+ termVectors: [false] set to true to store the term vector for a
104
+ given field.
105
+ When using MoreLikeThis, fields used for similarity should be
106
+ stored for best performance.
107
+ termPositions: Store position information with the term vector.
108
+ This will increase storage costs.
109
+ termOffsets: Store offset information with the term vector. This
110
+ will increase storage costs.
111
+ default: a value that should be used if no value is specified
112
+ when adding a document.
113
+ -->
114
+ <!-- *** This field is used by Sunspot! *** -->
115
+ <field name="id" stored="true" type="string" multiValued="false" indexed="true"/>
116
+ <!-- *** This field is used by Sunspot! *** -->
117
+ <field name="type" stored="false" type="string" multiValued="true" indexed="true"/>
118
+ <!-- *** This field is used by Sunspot! *** -->
119
+ <field name="class_name" stored="false" type="string" multiValued="false" indexed="true"/>
120
+ <!-- *** This field is used by Sunspot! *** -->
121
+ <field name="text" stored="false" type="string" multiValued="true" indexed="true"/>
122
+ <!-- *** This field is used by Sunspot! *** -->
123
+ <field name="lat" stored="true" type="tdouble" multiValued="false" indexed="true"/>
124
+ <!-- *** This field is used by Sunspot! *** -->
125
+ <field name="lng" stored="true" type="tdouble" multiValued="false" indexed="true"/>
126
+ <!-- *** This dynamicField is used by Sunspot! *** -->
127
+ <dynamicField name="random_*" stored="false" type="rand" multiValued="false" indexed="true"/>
128
+ <!-- *** This dynamicField is used by Sunspot! *** -->
129
+ <dynamicField name="_local*" stored="false" type="tdouble" multiValued="false" indexed="true"/>
130
+ <!-- *** This dynamicField is used by Sunspot! *** -->
131
+ <dynamicField name="*_text" stored="false" type="text" multiValued="true" indexed="true"/>
132
+ <!-- *** This dynamicField is used by Sunspot! *** -->
133
+ <dynamicField name="*_texts" stored="true" type="text" multiValued="true" indexed="true"/>
134
+ <!-- *** This dynamicField is used by Sunspot! *** -->
135
+ <dynamicField name="*_b" stored="false" type="boolean" multiValued="false" indexed="true"/>
136
+ <!-- *** This dynamicField is used by Sunspot! *** -->
137
+ <dynamicField name="*_bm" stored="false" type="boolean" multiValued="true" indexed="true"/>
138
+ <!-- *** This dynamicField is used by Sunspot! *** -->
139
+ <dynamicField name="*_bs" stored="true" type="boolean" multiValued="false" indexed="true"/>
140
+ <!-- *** This dynamicField is used by Sunspot! *** -->
141
+ <dynamicField name="*_bms" stored="true" type="boolean" multiValued="true" indexed="true"/>
142
+ <!-- *** This dynamicField is used by Sunspot! *** -->
143
+ <dynamicField name="*_d" stored="false" type="date" multiValued="false" indexed="true"/>
144
+ <!-- *** This dynamicField is used by Sunspot! *** -->
145
+ <dynamicField name="*_dm" stored="false" type="date" multiValued="true" indexed="true"/>
146
+ <!-- *** This dynamicField is used by Sunspot! *** -->
147
+ <dynamicField name="*_ds" stored="true" type="date" multiValued="false" indexed="true"/>
148
+ <!-- *** This dynamicField is used by Sunspot! *** -->
149
+ <dynamicField name="*_dms" stored="true" type="date" multiValued="true" indexed="true"/>
150
+ <!-- *** This dynamicField is used by Sunspot! *** -->
151
+ <dynamicField name="*_e" stored="false" type="sdouble" multiValued="false" indexed="true"/>
152
+ <!-- *** This dynamicField is used by Sunspot! *** -->
153
+ <dynamicField name="*_em" stored="false" type="sdouble" multiValued="true" indexed="true"/>
154
+ <!-- *** This dynamicField is used by Sunspot! *** -->
155
+ <dynamicField name="*_es" stored="true" type="sdouble" multiValued="false" indexed="true"/>
156
+ <!-- *** This dynamicField is used by Sunspot! *** -->
157
+ <dynamicField name="*_ems" stored="true" type="sdouble" multiValued="true" indexed="true"/>
158
+ <!-- *** This dynamicField is used by Sunspot! *** -->
159
+ <dynamicField name="*_f" stored="false" type="sfloat" multiValued="false" indexed="true"/>
160
+ <!-- *** This dynamicField is used by Sunspot! *** -->
161
+ <dynamicField name="*_fm" stored="false" type="sfloat" multiValued="true" indexed="true"/>
162
+ <!-- *** This dynamicField is used by Sunspot! *** -->
163
+ <dynamicField name="*_fs" stored="true" type="sfloat" multiValued="false" indexed="true"/>
164
+ <!-- *** This dynamicField is used by Sunspot! *** -->
165
+ <dynamicField name="*_fms" stored="true" type="sfloat" multiValued="true" indexed="true"/>
166
+ <!-- *** This dynamicField is used by Sunspot! *** -->
167
+ <dynamicField name="*_i" stored="false" type="sint" multiValued="false" indexed="true"/>
168
+ <!-- *** This dynamicField is used by Sunspot! *** -->
169
+ <dynamicField name="*_im" stored="false" type="sint" multiValued="true" indexed="true"/>
170
+ <!-- *** This dynamicField is used by Sunspot! *** -->
171
+ <dynamicField name="*_is" stored="true" type="sint" multiValued="false" indexed="true"/>
172
+ <!-- *** This dynamicField is used by Sunspot! *** -->
173
+ <dynamicField name="*_ims" stored="true" type="sint" multiValued="true" indexed="true"/>
174
+ <!-- *** This dynamicField is used by Sunspot! *** -->
175
+ <dynamicField name="*_l" stored="false" type="slong" multiValued="false" indexed="true"/>
176
+ <!-- *** This dynamicField is used by Sunspot! *** -->
177
+ <dynamicField name="*_lm" stored="false" type="slong" multiValued="true" indexed="true"/>
178
+ <!-- *** This dynamicField is used by Sunspot! *** -->
179
+ <dynamicField name="*_ls" stored="true" type="slong" multiValued="false" indexed="true"/>
180
+ <!-- *** This dynamicField is used by Sunspot! *** -->
181
+ <dynamicField name="*_lms" stored="true" type="slong" multiValued="true" indexed="true"/>
182
+ <!-- *** This dynamicField is used by Sunspot! *** -->
183
+ <dynamicField name="*_s" stored="false" type="string" multiValued="false" indexed="true"/>
184
+ <!-- *** This dynamicField is used by Sunspot! *** -->
185
+ <dynamicField name="*_sm" stored="false" type="string" multiValued="true" indexed="true"/>
186
+ <!-- *** This dynamicField is used by Sunspot! *** -->
187
+ <dynamicField name="*_ss" stored="true" type="string" multiValued="false" indexed="true"/>
188
+ <!-- *** This dynamicField is used by Sunspot! *** -->
189
+ <dynamicField name="*_sms" stored="true" type="string" multiValued="true" indexed="true"/>
190
+ <!-- *** This dynamicField is used by Sunspot! *** -->
191
+ <dynamicField name="*_it" stored="false" type="tint" multiValued="false" indexed="true"/>
192
+ <!-- *** This dynamicField is used by Sunspot! *** -->
193
+ <dynamicField name="*_itm" stored="false" type="tint" multiValued="true" indexed="true"/>
194
+ <!-- *** This dynamicField is used by Sunspot! *** -->
195
+ <dynamicField name="*_its" stored="true" type="tint" multiValued="false" indexed="true"/>
196
+ <!-- *** This dynamicField is used by Sunspot! *** -->
197
+ <dynamicField name="*_itms" stored="true" type="tint" multiValued="true" indexed="true"/>
198
+ <!-- *** This dynamicField is used by Sunspot! *** -->
199
+ <dynamicField name="*_ft" stored="false" type="tfloat" multiValued="false" indexed="true"/>
200
+ <!-- *** This dynamicField is used by Sunspot! *** -->
201
+ <dynamicField name="*_ftm" stored="false" type="tfloat" multiValued="true" indexed="true"/>
202
+ <!-- *** This dynamicField is used by Sunspot! *** -->
203
+ <dynamicField name="*_fts" stored="true" type="tfloat" multiValued="false" indexed="true"/>
204
+ <!-- *** This dynamicField is used by Sunspot! *** -->
205
+ <dynamicField name="*_ftms" stored="true" type="tfloat" multiValued="true" indexed="true"/>
206
+ <!-- *** This dynamicField is used by Sunspot! *** -->
207
+ <dynamicField name="*_dt" stored="false" type="tdate" multiValued="false" indexed="true"/>
208
+ <!-- *** This dynamicField is used by Sunspot! *** -->
209
+ <dynamicField name="*_dtm" stored="false" type="tdate" multiValued="true" indexed="true"/>
210
+ <!-- *** This dynamicField is used by Sunspot! *** -->
211
+ <dynamicField name="*_dts" stored="true" type="tdate" multiValued="false" indexed="true"/>
212
+ <!-- *** This dynamicField is used by Sunspot! *** -->
213
+ <dynamicField name="*_dtms" stored="true" type="tdate" multiValued="true" indexed="true"/>
214
+ <!-- *** This dynamicField is used by Sunspot! *** -->
215
+ <dynamicField name="*_textv" stored="false" termVectors="true" type="text" multiValued="true" indexed="true"/>
216
+ <!-- *** This dynamicField is used by Sunspot! *** -->
217
+ <dynamicField name="*_textsv" stored="true" termVectors="true" type="text" multiValued="true" indexed="true"/>
218
+ <!-- *** This dynamicField is used by Sunspot! *** -->
219
+ <dynamicField name="*_et" stored="false" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
220
+ <!-- *** This dynamicField is used by Sunspot! *** -->
221
+ <dynamicField name="*_etm" stored="false" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
222
+ <!-- *** This dynamicField is used by Sunspot! *** -->
223
+ <dynamicField name="*_ets" stored="true" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
224
+ <!-- *** This dynamicField is used by Sunspot! *** -->
225
+ <dynamicField name="*_etms" stored="true" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
226
+ </fields>
227
+ <!-- Field to use to determine and enforce document uniqueness.
228
+ Unless this field is marked with required="false", it will be a required field
229
+ -->
230
+ <uniqueKey>id</uniqueKey>
231
+ <!-- field for the QueryParser to use when an explicit fieldname is absent -->
232
+ <defaultSearchField>text</defaultSearchField>
233
+ <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
234
+ <solrQueryParser defaultOperator="AND"/>
235
+ <!-- copyField commands copy one field to another at the time a document
236
+ is added to the index. It's used either to index the same field differently,
237
+ or to add multiple fields to the same field for easier/faster searching. -->
238
+ </schema>
@@ -0,0 +1,24 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ user=
17
+ solr_hostname=localhost
18
+ solr_port=8983
19
+ rsyncd_port=18983
20
+ data_dir=
21
+ webapp_name=solr
22
+ master_host=
23
+ master_data_dir=
24
+ master_status_dir=
@@ -0,0 +1,934 @@
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
+ For more details about configurations options that may appear in this
20
+ file, see http://wiki.apache.org/solr/SolrConfigXml.
21
+
22
+ Specifically, the Solr Config can support XInclude, which may make it easier to manage
23
+ the configuration. See https://issues.apache.org/jira/browse/SOLR-1167
24
+ -->
25
+ <config>
26
+ <!-- Set this to 'false' if you want solr to continue working after it has
27
+ encountered an severe configuration error. In a production environment,
28
+ you may want solr to keep working even if one handler is mis-configured.
29
+
30
+ You may also set this to false using by setting the system property:
31
+ -Dsolr.abortOnConfigurationError=false
32
+ -->
33
+ <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
34
+ <!-- lib directives can be used to instruct Solr to load an Jars identified
35
+ and use them to resolve any "plugins" specified in your solrconfig.xml or
36
+ schema.xml (ie: Analyzers, Request Handlers, etc...).
37
+
38
+ All directories and paths are resolved relative the instanceDir.
39
+
40
+ If a "./lib" directory exists in your instanceDir, all files found in it
41
+ are included as if you had used the following syntax...
42
+
43
+ <lib dir="./lib" />
44
+ -->
45
+ <!-- A dir option by itself adds any files found in the directory to the
46
+ classpath, this is useful for including all jars in a directory.
47
+ -->
48
+ <lib dir="../../contrib/extraction/lib"/>
49
+ <!-- When a regex is specified in addition to a directory, only the files in that
50
+ directory which completely match the regex (anchored on both ends)
51
+ will be included.
52
+ -->
53
+ <lib dir="../../dist/" regex="apache-solr-cell-\d.*\.jar"/>
54
+ <lib dir="../../dist/" regex="apache-solr-clustering-\d.*\.jar"/>
55
+ <!-- If a dir option (with or without a regex) is used and nothing is found
56
+ that matches, it will be ignored
57
+ -->
58
+ <lib dir="../../contrib/clustering/lib/downloads/"/>
59
+ <lib dir="../../contrib/clustering/lib/"/>
60
+ <lib dir="/total/crap/dir/ignored"/>
61
+ <!-- an exact path can be used to specify a specific file. This will cause
62
+ a serious error to be logged if it can't be loaded.
63
+ <lib path="../a-jar-that-does-not-exist.jar" />
64
+ -->
65
+ <!-- Used to specify an alternate directory to hold all index data
66
+ other than the default ./data under the Solr home.
67
+ If replication is in use, this should match the replication configuration. -->
68
+ <dataDir>${solr.data.dir:./solr/data}</dataDir>
69
+ <!-- WARNING: this <indexDefaults> section only provides defaults for index writers
70
+ in general. See also the <mainIndex> section after that when changing parameters
71
+ for Solr's main Lucene index. -->
72
+ <indexDefaults>
73
+ <!-- Values here affect all index writers and act as a default unless overridden. -->
74
+ <useCompoundFile>false</useCompoundFile>
75
+ <mergeFactor>10</mergeFactor>
76
+ <!-- If both ramBufferSizeMB and maxBufferedDocs is set, then Lucene will flush
77
+ based on whichever limit is hit first. -->
78
+ <!--<maxBufferedDocs>1000</maxBufferedDocs>-->
79
+ <!-- Sets the amount of RAM that may be used by Lucene indexing
80
+ for buffering added documents and deletions before they are
81
+ flushed to the Directory. -->
82
+ <ramBufferSizeMB>32</ramBufferSizeMB>
83
+ <!-- <maxMergeDocs>2147483647</maxMergeDocs> -->
84
+ <maxFieldLength>10000</maxFieldLength>
85
+ <writeLockTimeout>1000</writeLockTimeout>
86
+ <commitLockTimeout>10000</commitLockTimeout>
87
+ <!--
88
+ Expert: Turn on Lucene's auto commit capability. This causes intermediate
89
+ segment flushes to write a new lucene index descriptor, enabling it to be
90
+ opened by an external IndexReader. This can greatly slow down indexing
91
+ speed. NOTE: Despite the name, this value does not have any relation to
92
+ Solr's autoCommit functionality
93
+ -->
94
+ <!--<luceneAutoCommit>false</luceneAutoCommit>-->
95
+ <!--
96
+ Expert: The Merge Policy in Lucene controls how merging is handled by
97
+ Lucene. The default in 2.3 is the LogByteSizeMergePolicy, previous
98
+ versions used LogDocMergePolicy.
99
+
100
+ LogByteSizeMergePolicy chooses segments to merge based on their size. The
101
+ Lucene 2.2 default, LogDocMergePolicy chose when to merge based on number
102
+ of documents
103
+
104
+ Other implementations of MergePolicy must have a no-argument constructor
105
+ -->
106
+ <!--<mergePolicy class="org.apache.lucene.index.LogByteSizeMergePolicy"/>-->
107
+ <!--
108
+ Expert:
109
+ The Merge Scheduler in Lucene controls how merges are performed. The
110
+ ConcurrentMergeScheduler (Lucene 2.3 default) can perform merges in the
111
+ background using separate threads. The SerialMergeScheduler (Lucene 2.2
112
+ default) does not.
113
+ -->
114
+ <!--<mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>-->
115
+ <!--
116
+ This option specifies which Lucene LockFactory implementation to use.
117
+
118
+ single = SingleInstanceLockFactory - suggested for a read-only index
119
+ or when there is no possibility of another process trying
120
+ to modify the index.
121
+ native = NativeFSLockFactory - uses OS native file locking
122
+ simple = SimpleFSLockFactory - uses a plain file for locking
123
+
124
+ (For backwards compatibility with Solr 1.2, 'simple' is the default
125
+ if not specified.)
126
+ -->
127
+ <lockType>native</lockType>
128
+ <!--
129
+ Expert:
130
+ Controls how often Lucene loads terms into memory -->
131
+ <!--<termIndexInterval>256</termIndexInterval>-->
132
+ </indexDefaults>
133
+ <mainIndex>
134
+ <!-- options specific to the main on-disk lucene index -->
135
+ <useCompoundFile>false</useCompoundFile>
136
+ <ramBufferSizeMB>32</ramBufferSizeMB>
137
+ <mergeFactor>10</mergeFactor>
138
+ <!-- Deprecated -->
139
+ <!--<maxBufferedDocs>1000</maxBufferedDocs>-->
140
+ <!--<maxMergeDocs>2147483647</maxMergeDocs>-->
141
+ <!-- inherit from indexDefaults <maxFieldLength>10000</maxFieldLength> -->
142
+ <!-- If true, unlock any held write or commit locks on startup.
143
+ This defeats the locking mechanism that allows multiple
144
+ processes to safely access a lucene index, and should be
145
+ used with care.
146
+ This is not needed if lock type is 'none' or 'single'
147
+ -->
148
+ <unlockOnStartup>false</unlockOnStartup>
149
+ <!-- If true, IndexReaders will be reopened (often more efficient) instead
150
+ of closed and then opened. -->
151
+ <reopenReaders>true</reopenReaders>
152
+ <!--
153
+ Expert:
154
+ Controls how often Lucene loads terms into memory. Default is 128 and is likely good for most everyone. -->
155
+ <!--<termIndexInterval>256</termIndexInterval>-->
156
+ <!--
157
+ Custom deletion policies can specified here. The class must
158
+ implement org.apache.lucene.index.IndexDeletionPolicy.
159
+
160
+ http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/index/IndexDeletionPolicy.html
161
+
162
+ The standard Solr IndexDeletionPolicy implementation supports deleting
163
+ index commit points on number of commits, age of commit point and
164
+ optimized status.
165
+
166
+ The latest commit point should always be preserved regardless
167
+ of the criteria.
168
+ -->
169
+ <deletionPolicy class="solr.SolrDeletionPolicy">
170
+ <!-- The number of commit points to be kept -->
171
+ <str name="maxCommitsToKeep">1</str>
172
+ <!-- The number of optimized commit points to be kept -->
173
+ <str name="maxOptimizedCommitsToKeep">0</str>
174
+ <!--
175
+ Delete all commit points once they have reached the given age.
176
+ Supports DateMathParser syntax e.g.
177
+
178
+ <str name="maxCommitAge">30MINUTES</str>
179
+ <str name="maxCommitAge">1DAY</str>
180
+ -->
181
+ </deletionPolicy>
182
+ <!-- To aid in advanced debugging, you may turn on IndexWriter debug logging.
183
+ Setting to true will set the file that the underlying Lucene IndexWriter
184
+ will write its debug infostream to. -->
185
+ <infoStream file="INFOSTREAM.txt">false</infoStream>
186
+ </mainIndex>
187
+ <!-- Enables JMX if and only if an existing MBeanServer is found, use this
188
+ if you want to configure JMX through JVM parameters. Remove this to disable
189
+ exposing Solr configuration and statistics to JMX.
190
+
191
+ If you want to connect to a particular server, specify the agentId
192
+ e.g. <jmx agentId="myAgent" />
193
+
194
+ If you want to start a new MBeanServer, specify the serviceUrl
195
+ e.g <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
196
+
197
+ For more details see http://wiki.apache.org/solr/SolrJmx
198
+ -->
199
+ <jmx/>
200
+ <!-- the default high-performance update handler -->
201
+ <updateHandler class="solr.DirectUpdateHandler2">
202
+ <!-- A prefix of "solr." for class names is an alias that
203
+ causes solr to search appropriate packages, including
204
+ org.apache.solr.(search|update|request|core|analysis)
205
+ -->
206
+ <!-- Perform a <commit/> automatically under certain conditions:
207
+ maxDocs - number of updates since last commit is greater than this
208
+ maxTime - oldest uncommited update (in ms) is this long ago
209
+ Instead of enabling autoCommit, consider using "commitWithin"
210
+ when adding documents. http://wiki.apache.org/solr/UpdateXmlMessages
211
+ <autoCommit>
212
+ <maxDocs>10000</maxDocs>
213
+ <maxTime>1000</maxTime>
214
+ </autoCommit>
215
+ -->
216
+ <!-- The RunExecutableListener executes an external command from a
217
+ hook such as postCommit or postOptimize.
218
+ exe - the name of the executable to run
219
+ dir - dir to use as the current working directory. default="."
220
+ wait - the calling thread waits until the executable returns. default="true"
221
+ args - the arguments to pass to the program. default=nothing
222
+ env - environment variables to set. default=nothing
223
+ -->
224
+ <!-- A postCommit event is fired after every commit or optimize command
225
+ <listener event="postCommit" class="solr.RunExecutableListener">
226
+ <str name="exe">solr/bin/snapshooter</str>
227
+ <str name="dir">.</str>
228
+ <bool name="wait">true</bool>
229
+ <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
230
+ <arr name="env"> <str>MYVAR=val1</str> </arr>
231
+ </listener>
232
+ -->
233
+ <!-- A postOptimize event is fired only after every optimize command
234
+ <listener event="postOptimize" class="solr.RunExecutableListener">
235
+ <str name="exe">snapshooter</str>
236
+ <str name="dir">solr/bin</str>
237
+ <bool name="wait">true</bool>
238
+ </listener>
239
+ -->
240
+ </updateHandler>
241
+ <!-- Use the following format to specify a custom IndexReaderFactory - allows for alternate
242
+ IndexReader implementations.
243
+
244
+ ** Experimental Feature **
245
+ Please note - Using a custom IndexReaderFactory may prevent certain other features
246
+ from working. The API to IndexReaderFactory may change without warning or may even
247
+ be removed from future releases if the problems cannot be resolved.
248
+
249
+ ** Features that may not work with custom IndexReaderFactory **
250
+ The ReplicationHandler assumes a disk-resident index. Using a custom
251
+ IndexReader implementation may cause incompatibility with ReplicationHandler and
252
+ may cause replication to not work correctly. See SOLR-1366 for details.
253
+
254
+ <indexReaderFactory name="IndexReaderFactory" class="package.class">
255
+ Parameters as required by the implementation
256
+ </indexReaderFactory >
257
+ -->
258
+ <!-- To set the termInfosIndexDivisor, do this: -->
259
+ <!--<indexReaderFactory name="IndexReaderFactory" class="org.apache.solr.core.StandardIndexReaderFactory">
260
+ <int name="termInfosIndexDivisor">12</int>
261
+ </indexReaderFactory >-->
262
+ <query>
263
+ <!-- Maximum number of clauses in a boolean query... in the past, this affected
264
+ range or prefix queries that expanded to big boolean queries - built in Solr
265
+ query parsers no longer create queries with this limitation.
266
+ An exception is thrown if exceeded. -->
267
+ <maxBooleanClauses>1024</maxBooleanClauses>
268
+ <!-- There are two implementations of cache available for Solr,
269
+ LRUCache, based on a synchronized LinkedHashMap, and
270
+ FastLRUCache, based on a ConcurrentHashMap. FastLRUCache has faster gets
271
+ and slower puts in single threaded operation and thus is generally faster
272
+ than LRUCache when the hit ratio of the cache is high (> 75%), and may be
273
+ faster under other scenarios on multi-cpu systems. -->
274
+ <!-- Cache used by SolrIndexSearcher for filters (DocSets),
275
+ unordered sets of *all* documents that match a query.
276
+ When a new searcher is opened, its caches may be prepopulated
277
+ or "autowarmed" using data from caches in the old searcher.
278
+ autowarmCount is the number of items to prepopulate. For LRUCache,
279
+ the autowarmed items will be the most recently accessed items.
280
+ Parameters:
281
+ class - the SolrCache implementation LRUCache or FastLRUCache
282
+ size - the maximum number of entries in the cache
283
+ initialSize - the initial capacity (number of entries) of
284
+ the cache. (seel java.util.HashMap)
285
+ autowarmCount - the number of entries to prepopulate from
286
+ and old cache.
287
+ -->
288
+ <filterCache class="solr.FastLRUCache" size="512" initialSize="512" autowarmCount="0"/>
289
+ <!-- Cache used to hold field values that are quickly accessible
290
+ by document id. The fieldValueCache is created by default
291
+ even if not configured here.
292
+ <fieldValueCache
293
+ class="solr.FastLRUCache"
294
+ size="512"
295
+ autowarmCount="128"
296
+ showItems="32"
297
+ />
298
+ -->
299
+ <!-- queryResultCache caches results of searches - ordered lists of
300
+ document ids (DocList) based on a query, a sort, and the range
301
+ of documents requested. -->
302
+ <queryResultCache class="solr.LRUCache" size="512" initialSize="512" autowarmCount="0"/>
303
+ <!-- documentCache caches Lucene Document objects (the stored fields for each document).
304
+ Since Lucene internal document ids are transient, this cache will not be autowarmed. -->
305
+ <documentCache class="solr.LRUCache" size="512" initialSize="512" autowarmCount="0"/>
306
+ <!-- If true, stored fields that are not requested will be loaded lazily.
307
+ This can result in a significant speed improvement if the usual case is to
308
+ not load all stored fields, especially if the skipped fields are large
309
+ compressed text fields.
310
+ -->
311
+ <enableLazyFieldLoading>true</enableLazyFieldLoading>
312
+ <!-- Example of a generic cache. These caches may be accessed by name
313
+ through SolrIndexSearcher.getCache(),cacheLookup(), and cacheInsert().
314
+ The purpose is to enable easy caching of user/application level data.
315
+ The regenerator argument should be specified as an implementation
316
+ of solr.search.CacheRegenerator if autowarming is desired. -->
317
+ <!--
318
+ <cache name="myUserCache"
319
+ class="solr.LRUCache"
320
+ size="4096"
321
+ initialSize="1024"
322
+ autowarmCount="1024"
323
+ regenerator="org.mycompany.mypackage.MyRegenerator"
324
+ />
325
+ -->
326
+ <!-- An optimization that attempts to use a filter to satisfy a search.
327
+ If the requested sort does not include score, then the filterCache
328
+ will be checked for a filter matching the query. If found, the filter
329
+ will be used as the source of document ids, and then the sort will be
330
+ applied to that.
331
+ <useFilterForSortedQuery>true</useFilterForSortedQuery>
332
+ -->
333
+ <!-- An optimization for use with the queryResultCache. When a search
334
+ is requested, a superset of the requested number of document ids
335
+ are collected. For example, if a search for a particular query
336
+ requests matching documents 10 through 19, and queryWindowSize is 50,
337
+ then documents 0 through 49 will be collected and cached. Any further
338
+ requests in that range can be satisfied via the cache. -->
339
+ <queryResultWindowSize>20</queryResultWindowSize>
340
+ <!-- Maximum number of documents to cache for any entry in the
341
+ queryResultCache. -->
342
+ <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
343
+ <!-- a newSearcher event is fired whenever a new searcher is being prepared
344
+ and there is a current searcher handling requests (aka registered).
345
+ It can be used to prime certain caches to prevent long request times for
346
+ certain requests.
347
+ -->
348
+ <!-- QuerySenderListener takes an array of NamedList and executes a
349
+ local query request for each NamedList in sequence. -->
350
+ <listener event="newSearcher" class="solr.QuerySenderListener">
351
+ <arr name="queries">
352
+ <!--
353
+ <lst> <str name="q">solr</str> <str name="start">0</str> <str name="rows">10</str> </lst>
354
+ <lst> <str name="q">rocks</str> <str name="start">0</str> <str name="rows">10</str> </lst>
355
+ <lst><str name="q">static newSearcher warming query from solrconfig.xml</str></lst>
356
+ -->
357
+ </arr>
358
+ </listener>
359
+ <!-- a firstSearcher event is fired whenever a new searcher is being
360
+ prepared but there is no current registered searcher to handle
361
+ requests or to gain autowarming data from. -->
362
+ <listener event="firstSearcher" class="solr.QuerySenderListener">
363
+ <arr name="queries">
364
+ <lst>
365
+ <str name="q">solr rocks</str>
366
+ <str name="start">0</str>
367
+ <str name="rows">10</str>
368
+ </lst>
369
+ <lst>
370
+ <str name="q">static firstSearcher warming query from solrconfig.xml</str>
371
+ </lst>
372
+ </arr>
373
+ </listener>
374
+ <!-- If a search request comes in and there is no current registered searcher,
375
+ then immediately register the still warming searcher and use it. If
376
+ "false" then all requests will block until the first searcher is done
377
+ warming. -->
378
+ <useColdSearcher>false</useColdSearcher>
379
+ <!-- Maximum number of searchers that may be warming in the background
380
+ concurrently. An error is returned if this limit is exceeded. Recommend
381
+ 1-2 for read-only slaves, higher for masters w/o cache warming. -->
382
+ <maxWarmingSearchers>2</maxWarmingSearchers>
383
+ </query>
384
+ <!--
385
+ Let the dispatch filter handler /select?qt=XXX
386
+ handleSelect=true will use consistent error handling for /select and /update
387
+ handleSelect=false will use solr1.1 style error formatting
388
+ -->
389
+ <requestDispatcher handleSelect="true">
390
+ <!--Make sure your system has some authentication before enabling remote streaming! -->
391
+ <requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048000"/>
392
+ <!-- Set HTTP caching related parameters (for proxy caches and clients).
393
+
394
+ To get the behaviour of Solr 1.2 (ie: no caching related headers)
395
+ use the never304="true" option and do not specify a value for
396
+ <cacheControl>
397
+ -->
398
+ <!-- <httpCaching never304="true"> -->
399
+ <httpCaching lastModifiedFrom="openTime" etagSeed="Solr">
400
+ <!-- lastModFrom="openTime" is the default, the Last-Modified value
401
+ (and validation against If-Modified-Since requests) will all be
402
+ relative to when the current Searcher was opened.
403
+ You can change it to lastModFrom="dirLastMod" if you want the
404
+ value to exactly corrispond to when the physical index was last
405
+ modified.
406
+
407
+ etagSeed="..." is an option you can change to force the ETag
408
+ header (and validation against If-None-Match requests) to be
409
+ differnet even if the index has not changed (ie: when making
410
+ significant changes to your config file)
411
+
412
+ lastModifiedFrom and etagSeed are both ignored if you use the
413
+ never304="true" option.
414
+ -->
415
+ <!-- If you include a <cacheControl> directive, it will be used to
416
+ generate a Cache-Control header, as well as an Expires header
417
+ if the value contains "max-age="
418
+
419
+ By default, no Cache-Control header is generated.
420
+
421
+ You can use the <cacheControl> option even if you have set
422
+ never304="true"
423
+ -->
424
+ <!-- <cacheControl>max-age=30, public</cacheControl> -->
425
+ </httpCaching>
426
+ </requestDispatcher>
427
+ <!-- requestHandler plugins... incoming queries will be dispatched to the
428
+ correct handler based on the path or the qt (query type) param.
429
+ Names starting with a '/' are accessed with the a path equal to the
430
+ registered name. Names without a leading '/' are accessed with:
431
+ http://host/app/select?qt=name
432
+ If no qt is defined, the requestHandler that declares default="true"
433
+ will be used.
434
+ -->
435
+ <requestHandler name="standard" class="solr.SearchHandler" default="true">
436
+ <!-- default values for query parameters -->
437
+ <lst name="defaults">
438
+ <str name="echoParams">explicit</str>
439
+ <!--
440
+ <int name="rows">10</int>
441
+ <str name="fl">*</str>
442
+ <str name="version">2.1</str>
443
+ -->
444
+ </lst>
445
+ </requestHandler>
446
+ <!-- Please refer to http://wiki.apache.org/solr/SolrReplication for details on configuring replication -->
447
+ <!-- remove the <lst name="master"> section if this is just a slave -->
448
+ <!-- remove the <lst name="slave"> section if this is just a master -->
449
+ <!--
450
+ <requestHandler name="/replication" class="solr.ReplicationHandler" >
451
+ <lst name="master">
452
+ <str name="replicateAfter">commit</str>
453
+ <str name="replicateAfter">startup</str>
454
+ <str name="confFiles">schema.xml,stopwords.txt</str>
455
+ </lst>
456
+ <lst name="slave">
457
+ <str name="masterUrl">http://localhost:8983/solr/replication</str>
458
+ <str name="pollInterval">00:00:60</str>
459
+ </lst>
460
+ </requestHandler>-->
461
+ <!-- DisMaxRequestHandler allows easy searching across multiple fields
462
+ for simple user-entered phrases. It's implementation is now
463
+ just the standard SearchHandler with a default query type
464
+ of "dismax".
465
+ see http://wiki.apache.org/solr/DisMaxRequestHandler
466
+ -->
467
+ <requestHandler name="dismax" class="solr.SearchHandler">
468
+ <lst name="defaults">
469
+ <str name="defType">dismax</str>
470
+ <str name="echoParams">explicit</str>
471
+ <float name="tie">0.01</float>
472
+ <str name="qf">
473
+ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
474
+ </str>
475
+ <str name="pf">
476
+ text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9
477
+ </str>
478
+ <str name="bf">
479
+ popularity^0.5 recip(price,1,1000,1000)^0.3
480
+ </str>
481
+ <str name="fl">
482
+ id,name,price,score
483
+ </str>
484
+ <str name="mm">
485
+ 2&lt;-1 5&lt;-2 6&lt;90%
486
+ </str>
487
+ <int name="ps">100</int>
488
+ <str name="q.alt">*:*</str>
489
+ <!-- example highlighter config, enable per-query with hl=true -->
490
+ <str name="hl.fl">text features name</str>
491
+ <!-- for this field, we want no fragmenting, just highlighting -->
492
+ <str name="f.name.hl.fragsize">0</str>
493
+ <!-- instructs Solr to return the field itself if no query terms are
494
+ found -->
495
+ <str name="f.name.hl.alternateField">name</str>
496
+ <str name="f.text.hl.fragmenter">regex</str>
497
+ <!-- defined below -->
498
+ </lst>
499
+ </requestHandler>
500
+ <!-- Note how you can register the same handler multiple times with
501
+ different names (and different init parameters)
502
+ -->
503
+ <requestHandler name="partitioned" class="solr.SearchHandler">
504
+ <lst name="defaults">
505
+ <str name="defType">dismax</str>
506
+ <str name="echoParams">explicit</str>
507
+ <str name="qf">text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0</str>
508
+ <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
509
+ <!-- This is an example of using Date Math to specify a constantly
510
+ moving date range in a config...
511
+ -->
512
+ <str name="bq">incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2</str>
513
+ </lst>
514
+ <!-- In addition to defaults, "appends" params can be specified
515
+ to identify values which should be appended to the list of
516
+ multi-val params from the query (or the existing "defaults").
517
+
518
+ In this example, the param "fq=instock:true" will be appended to
519
+ any query time fq params the user may specify, as a mechanism for
520
+ partitioning the index, independent of any user selected filtering
521
+ that may also be desired (perhaps as a result of faceted searching).
522
+
523
+ NOTE: there is *absolutely* nothing a client can do to prevent these
524
+ "appends" values from being used, so don't use this mechanism
525
+ unless you are sure you always want it.
526
+ -->
527
+ <lst name="appends">
528
+ <str name="fq">inStock:true</str>
529
+ </lst>
530
+ <!-- "invariants" are a way of letting the Solr maintainer lock down
531
+ the options available to Solr clients. Any params values
532
+ specified here are used regardless of what values may be specified
533
+ in either the query, the "defaults", or the "appends" params.
534
+
535
+ In this example, the facet.field and facet.query params are fixed,
536
+ limiting the facets clients can use. Faceting is not turned on by
537
+ default - but if the client does specify facet=true in the request,
538
+ these are the only facets they will be able to see counts for;
539
+ regardless of what other facet.field or facet.query params they
540
+ may specify.
541
+
542
+ NOTE: there is *absolutely* nothing a client can do to prevent these
543
+ "invariants" values from being used, so don't use this mechanism
544
+ unless you are sure you always want it.
545
+ -->
546
+ <lst name="invariants">
547
+ <str name="facet.field">cat</str>
548
+ <str name="facet.field">manu_exact</str>
549
+ <str name="facet.query">price:[* TO 500]</str>
550
+ <str name="facet.query">price:[500 TO *]</str>
551
+ </lst>
552
+ </requestHandler>
553
+ <!--
554
+ Search components are registered to SolrCore and used by Search Handlers
555
+
556
+ By default, the following components are avaliable:
557
+
558
+ <searchComponent name="query" class="org.apache.solr.handler.component.QueryComponent" />
559
+ <searchComponent name="facet" class="org.apache.solr.handler.component.FacetComponent" />
560
+ <searchComponent name="mlt" class="org.apache.solr.handler.component.MoreLikeThisComponent" />
561
+ <searchComponent name="highlight" class="org.apache.solr.handler.component.HighlightComponent" />
562
+ <searchComponent name="stats" class="org.apache.solr.handler.component.StatsComponent" />
563
+ <searchComponent name="debug" class="org.apache.solr.handler.component.DebugComponent" />
564
+
565
+ Default configuration in a requestHandler would look like:
566
+ <arr name="components">
567
+ <str>query</str>
568
+ <str>facet</str>
569
+ <str>mlt</str>
570
+ <str>highlight</str>
571
+ <str>stats</str>
572
+ <str>debug</str>
573
+ </arr>
574
+
575
+ If you register a searchComponent to one of the standard names, that will be used instead.
576
+ To insert components before or after the 'standard' components, use:
577
+
578
+ <arr name="first-components">
579
+ <str>myFirstComponentName</str>
580
+ </arr>
581
+
582
+ <arr name="last-components">
583
+ <str>myLastComponentName</str>
584
+ </arr>
585
+ -->
586
+ <!-- The spell check component can return a list of alternative spelling
587
+ suggestions. -->
588
+ <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
589
+ <str name="queryAnalyzerFieldType">textSpell</str>
590
+ <lst name="spellchecker">
591
+ <str name="name">default</str>
592
+ <str name="field">name</str>
593
+ <str name="spellcheckIndexDir">./spellchecker</str>
594
+ </lst>
595
+ <!-- a spellchecker that uses a different distance measure
596
+ <lst name="spellchecker">
597
+ <str name="name">jarowinkler</str>
598
+ <str name="field">spell</str>
599
+ <str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>
600
+ <str name="spellcheckIndexDir">./spellchecker2</str>
601
+ </lst>
602
+ -->
603
+ <!-- a file based spell checker
604
+ <lst name="spellchecker">
605
+ <str name="classname">solr.FileBasedSpellChecker</str>
606
+ <str name="name">file</str>
607
+ <str name="sourceLocation">spellings.txt</str>
608
+ <str name="characterEncoding">UTF-8</str>
609
+ <str name="spellcheckIndexDir">./spellcheckerFile</str>
610
+ </lst>
611
+ -->
612
+ </searchComponent>
613
+ <!-- A request handler utilizing the spellcheck component.
614
+ #############################################################################
615
+ NOTE: This is purely as an example. The whole purpose of the
616
+ SpellCheckComponent is to hook it into the request handler that handles (i.e.
617
+ the standard or dismax SearchHandler) queries such that a separate request is
618
+ not needed to get suggestions.
619
+
620
+ IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS NOT WHAT YOU
621
+ WANT FOR YOUR PRODUCTION SYSTEM!
622
+ #############################################################################
623
+ -->
624
+ <requestHandler name="/spell" class="solr.SearchHandler" lazy="true">
625
+ <lst name="defaults">
626
+ <!-- omp = Only More Popular -->
627
+ <str name="spellcheck.onlyMorePopular">false</str>
628
+ <!-- exr = Extended Results -->
629
+ <str name="spellcheck.extendedResults">false</str>
630
+ <!-- The number of suggestions to return -->
631
+ <str name="spellcheck.count">1</str>
632
+ </lst>
633
+ <arr name="last-components">
634
+ <str>spellcheck</str>
635
+ </arr>
636
+ </requestHandler>
637
+ <searchComponent name="tvComponent" class="org.apache.solr.handler.component.TermVectorComponent"/>
638
+ <!-- A Req Handler for working with the tvComponent. This is purely as an example.
639
+ You will likely want to add the component to your already specified request handlers. -->
640
+ <requestHandler name="tvrh" class="org.apache.solr.handler.component.SearchHandler">
641
+ <lst name="defaults">
642
+ <bool name="tv">true</bool>
643
+ </lst>
644
+ <arr name="last-components">
645
+ <str>tvComponent</str>
646
+ </arr>
647
+ </requestHandler>
648
+ <!-- Clustering Component
649
+ http://wiki.apache.org/solr/ClusteringComponent
650
+ This relies on third party jars which are not included in the release.
651
+ To use this component (and the "/clustering" handler)
652
+ Those jars will need to be downloaded, and you'll need to set the
653
+ solr.cluster.enabled system property when running solr...
654
+ java -Dsolr.clustering.enabled=true -jar start.jar
655
+ -->
656
+ <searchComponent name="clusteringComponent" enable="${solr.clustering.enabled:false}" class="org.apache.solr.handler.clustering.ClusteringComponent">
657
+ <!-- Declare an engine -->
658
+ <lst name="engine">
659
+ <!-- The name, only one can be named "default" -->
660
+ <str name="name">default</str>
661
+ <!--
662
+ Class name of Carrot2 clustering algorithm. Currently available algorithms are:
663
+
664
+ * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
665
+ * org.carrot2.clustering.stc.STCClusteringAlgorithm
666
+
667
+ See http://project.carrot2.org/algorithms.html for the algorithm's characteristics.
668
+ -->
669
+ <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
670
+ <!--
671
+ Overriding values for Carrot2 default algorithm attributes. For a description
672
+ of all available attributes, see: http://download.carrot2.org/stable/manual/#chapter.components.
673
+ Use attribute key as name attribute of str elements below. These can be further
674
+ overridden for individual requests by specifying attribute key as request
675
+ parameter name and attribute value as parameter value.
676
+ -->
677
+ <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>
678
+ </lst>
679
+ <lst name="engine">
680
+ <str name="name">stc</str>
681
+ <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
682
+ </lst>
683
+ </searchComponent>
684
+ <requestHandler name="/clustering" enable="${solr.clustering.enabled:false}" class="solr.SearchHandler">
685
+ <lst name="defaults">
686
+ <bool name="clustering">true</bool>
687
+ <str name="clustering.engine">default</str>
688
+ <bool name="clustering.results">true</bool>
689
+ <!-- The title field -->
690
+ <str name="carrot.title">name</str>
691
+ <str name="carrot.url">id</str>
692
+ <!-- The field to cluster on -->
693
+ <str name="carrot.snippet">features</str>
694
+ <!-- produce summaries -->
695
+ <bool name="carrot.produceSummary">true</bool>
696
+ <!-- the maximum number of labels per cluster -->
697
+ <!--<int name="carrot.numDescriptions">5</int>-->
698
+ <!-- produce sub clusters -->
699
+ <bool name="carrot.outputSubClusters">false</bool>
700
+ </lst>
701
+ <arr name="last-components">
702
+ <str>clusteringComponent</str>
703
+ </arr>
704
+ </requestHandler>
705
+ <!-- Solr Cell: http://wiki.apache.org/solr/ExtractingRequestHandler -->
706
+ <requestHandler name="/update/extract" class="org.apache.solr.handler.extraction.ExtractingRequestHandler" startup="lazy">
707
+ <lst name="defaults">
708
+ <!-- All the main content goes into "text"... if you need to return
709
+ the extracted text or do highlighting, use a stored field. -->
710
+ <str name="fmap.content">text</str>
711
+ <str name="lowernames">true</str>
712
+ <str name="uprefix">ignored_</str>
713
+ <!-- capture link hrefs but ignore div attributes -->
714
+ <str name="captureAttr">true</str>
715
+ <str name="fmap.a">links</str>
716
+ <str name="fmap.div">ignored_</str>
717
+ </lst>
718
+ </requestHandler>
719
+ <!-- A component to return terms and document frequency of those terms.
720
+ This component does not yet support distributed search. -->
721
+ <searchComponent name="termsComponent" class="org.apache.solr.handler.component.TermsComponent"/>
722
+ <requestHandler name="/terms" class="org.apache.solr.handler.component.SearchHandler">
723
+ <lst name="defaults">
724
+ <bool name="terms">true</bool>
725
+ </lst>
726
+ <arr name="components">
727
+ <str>termsComponent</str>
728
+ </arr>
729
+ </requestHandler>
730
+ <!-- a search component that enables you to configure the top results for
731
+ a given query regardless of the normal lucene scoring.-->
732
+ <searchComponent name="elevator" class="solr.QueryElevationComponent">
733
+ <!-- pick a fieldType to analyze queries -->
734
+ <str name="queryFieldType">string</str>
735
+ <str name="config-file">elevate.xml</str>
736
+ </searchComponent>
737
+ <!-- a request handler utilizing the elevator component -->
738
+ <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
739
+ <lst name="defaults">
740
+ <str name="echoParams">explicit</str>
741
+ </lst>
742
+ <arr name="last-components">
743
+ <str>elevator</str>
744
+ </arr>
745
+ </requestHandler>
746
+ <!-- Update request handler.
747
+
748
+ Note: Since solr1.1 requestHandlers requires a valid content type header if posted in
749
+ the body. For example, curl now requires: -H 'Content-type:text/xml; charset=utf-8'
750
+ The response format differs from solr1.1 formatting and returns a standard error code.
751
+ To enable solr1.1 behavior, remove the /update handler or change its path
752
+ -->
753
+ <requestHandler name="/update" class="solr.XmlUpdateRequestHandler"/>
754
+ <requestHandler name="/update/javabin" class="solr.BinaryUpdateRequestHandler"/>
755
+ <!--
756
+ Analysis request handler. Since Solr 1.3. Use to return how a document is analyzed. Useful
757
+ for debugging and as a token server for other types of applications.
758
+
759
+ This is deprecated in favor of the improved DocumentAnalysisRequestHandler and FieldAnalysisRequestHandler
760
+
761
+ <requestHandler name="/analysis" class="solr.AnalysisRequestHandler" />
762
+ -->
763
+ <!--
764
+ An analysis handler that provides a breakdown of the analysis process of provided docuemnts. This handler expects a
765
+ (single) content stream with the following format:
766
+
767
+ <docs>
768
+ <doc>
769
+ <field name="id">1</field>
770
+ <field name="name">The Name</field>
771
+ <field name="text">The Text Value</field>
772
+ <doc>
773
+ <doc>...</doc>
774
+ <doc>...</doc>
775
+ ...
776
+ </docs>
777
+
778
+ Note: Each document must contain a field which serves as the unique key. This key is used in the returned
779
+ response to assoicate an analysis breakdown to the analyzed document.
780
+
781
+ Like the FieldAnalysisRequestHandler, this handler also supports query analysis by
782
+ sending either an "analysis.query" or "q" request paraemter that holds the query text to be analyized. It also
783
+ supports the "analysis.showmatch" parameter which when set to true, all field tokens that match the query
784
+ tokens will be marked as a "match".
785
+ -->
786
+ <requestHandler name="/analysis/document" class="solr.DocumentAnalysisRequestHandler"/>
787
+ <!--
788
+ RequestHandler that provides much the same functionality as analysis.jsp. Provides the ability
789
+ to specify multiple field types and field names in the same request and outputs index-time and
790
+ query-time analysis for each of them.
791
+
792
+ Request parameters are:
793
+ analysis.fieldname - The field name whose analyzers are to be used
794
+ analysis.fieldtype - The field type whose analyzers are to be used
795
+ analysis.fieldvalue - The text for index-time analysis
796
+ q (or analysis.q) - The text for query time analysis
797
+ analysis.showmatch (true|false) - When set to true and when query analysis is performed, the produced
798
+ tokens of the field value analysis will be marked as "matched" for every
799
+ token that is produces by the query analysis
800
+ -->
801
+ <requestHandler name="/analysis/field" class="solr.FieldAnalysisRequestHandler"/>
802
+ <!-- CSV update handler, loaded on demand -->
803
+ <requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy"/>
804
+ <!--
805
+ Admin Handlers - This will register all the standard admin RequestHandlers. Adding
806
+ this single handler is equivalent to registering:
807
+
808
+ <requestHandler name="/admin/luke" class="org.apache.solr.handler.admin.LukeRequestHandler" />
809
+ <requestHandler name="/admin/system" class="org.apache.solr.handler.admin.SystemInfoHandler" />
810
+ <requestHandler name="/admin/plugins" class="org.apache.solr.handler.admin.PluginInfoHandler" />
811
+ <requestHandler name="/admin/threads" class="org.apache.solr.handler.admin.ThreadDumpHandler" />
812
+ <requestHandler name="/admin/properties" class="org.apache.solr.handler.admin.PropertiesRequestHandler" />
813
+ <requestHandler name="/admin/file" class="org.apache.solr.handler.admin.ShowFileRequestHandler" >
814
+
815
+ If you wish to hide files under ${solr.home}/conf, explicitly register the ShowFileRequestHandler using:
816
+ <requestHandler name="/admin/file" class="org.apache.solr.handler.admin.ShowFileRequestHandler" >
817
+ <lst name="invariants">
818
+ <str name="hidden">synonyms.txt</str>
819
+ <str name="hidden">anotherfile.txt</str>
820
+ </lst>
821
+ </requestHandler>
822
+ -->
823
+ <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers"/>
824
+ <!-- ping/healthcheck -->
825
+ <requestHandler name="/admin/ping" class="PingRequestHandler">
826
+ <lst name="defaults">
827
+ <str name="qt">standard</str>
828
+ <str name="q">solrpingquery</str>
829
+ <str name="echoParams">all</str>
830
+ </lst>
831
+ </requestHandler>
832
+ <!-- Echo the request contents back to the client -->
833
+ <requestHandler name="/debug/dump" class="solr.DumpRequestHandler">
834
+ <lst name="defaults">
835
+ <str name="echoParams">explicit</str>
836
+ <!-- for all params (including the default etc) use: 'all' -->
837
+ <str name="echoHandler">true</str>
838
+ </lst>
839
+ </requestHandler>
840
+ <highlighting>
841
+ <!-- Configure the standard fragmenter -->
842
+ <!-- This could most likely be commented out in the "default" case -->
843
+ <fragmenter name="gap" class="org.apache.solr.highlight.GapFragmenter" default="true">
844
+ <lst name="defaults">
845
+ <int name="hl.fragsize">100</int>
846
+ </lst>
847
+ </fragmenter>
848
+ <!-- A regular-expression-based fragmenter (f.i., for sentence extraction) -->
849
+ <fragmenter name="regex" class="org.apache.solr.highlight.RegexFragmenter">
850
+ <lst name="defaults">
851
+ <!-- slightly smaller fragsizes work better because of slop -->
852
+ <int name="hl.fragsize">70</int>
853
+ <!-- allow 50% slop on fragment sizes -->
854
+ <float name="hl.regex.slop">0.5</float>
855
+ <!-- a basic sentence pattern -->
856
+ <str name="hl.regex.pattern">[-\w ,/\n\"']{20,200}</str>
857
+ </lst>
858
+ </fragmenter>
859
+ <!-- Configure the standard formatter -->
860
+ <formatter name="html" class="org.apache.solr.highlight.HtmlFormatter" default="true">
861
+ <lst name="defaults">
862
+ <str name="hl.simple.pre"><![CDATA[<em>]]></str>
863
+ <str name="hl.simple.post"><![CDATA[</em>]]></str>
864
+ </lst>
865
+ </formatter>
866
+ </highlighting>
867
+ <!-- An example dedup update processor that creates the "id" field on the fly
868
+ based on the hash code of some other fields. This example has overwriteDupes
869
+ set to false since we are using the id field as the signatureField and Solr
870
+ will maintain uniqueness based on that anyway.
871
+
872
+ You have to link the chain to an update handler above to use it ie:
873
+ <requestHandler name="/update "class="solr.XmlUpdateRequestHandler">
874
+ <lst name="defaults">
875
+ <str name="update.processor">dedupe</str>
876
+ </lst>
877
+ </requestHandler>
878
+ -->
879
+ <!--
880
+ <updateRequestProcessorChain name="dedupe">
881
+ <processor class="org.apache.solr.update.processor.SignatureUpdateProcessorFactory">
882
+ <bool name="enabled">true</bool>
883
+ <str name="signatureField">id</str>
884
+ <bool name="overwriteDupes">false</bool>
885
+ <str name="fields">name,features,cat</str>
886
+ <str name="signatureClass">org.apache.solr.update.processor.Lookup3Signature</str>
887
+ </processor>
888
+ <processor class="solr.LogUpdateProcessorFactory" />
889
+ <processor class="solr.RunUpdateProcessorFactory" />
890
+ </updateRequestProcessorChain>
891
+ -->
892
+ <!-- queryResponseWriter plugins... query responses will be written using the
893
+ writer specified by the 'wt' request parameter matching the name of a registered
894
+ writer.
895
+ The "default" writer is the default and will be used if 'wt' is not specified
896
+ in the request. XMLResponseWriter will be used if nothing is specified here.
897
+ The json, python, and ruby writers are also available by default.
898
+
899
+ <queryResponseWriter name="xml" class="org.apache.solr.request.XMLResponseWriter" default="true"/>
900
+ <queryResponseWriter name="json" class="org.apache.solr.request.JSONResponseWriter"/>
901
+ <queryResponseWriter name="python" class="org.apache.solr.request.PythonResponseWriter"/>
902
+ <queryResponseWriter name="ruby" class="org.apache.solr.request.RubyResponseWriter"/>
903
+ <queryResponseWriter name="php" class="org.apache.solr.request.PHPResponseWriter"/>
904
+ <queryResponseWriter name="phps" class="org.apache.solr.request.PHPSerializedResponseWriter"/>
905
+
906
+ <queryResponseWriter name="custom" class="com.example.MyResponseWriter"/>
907
+ -->
908
+ <!-- XSLT response writer transforms the XML output by any xslt file found
909
+ in Solr's conf/xslt directory. Changes to xslt files are checked for
910
+ every xsltCacheLifetimeSeconds.
911
+ -->
912
+ <queryResponseWriter name="xslt" class="org.apache.solr.request.XSLTResponseWriter">
913
+ <int name="xsltCacheLifetimeSeconds">5</int>
914
+ </queryResponseWriter>
915
+ <!-- example of registering a query parser
916
+ <queryParser name="lucene" class="org.apache.solr.search.LuceneQParserPlugin"/>
917
+ -->
918
+ <!-- example of registering a custom function parser
919
+ <valueSourceParser name="myfunc" class="com.mycompany.MyValueSourceParser" />
920
+ -->
921
+ <!-- config for the admin interface -->
922
+ <admin>
923
+ <defaultQuery>solr</defaultQuery>
924
+ <!-- configure a healthcheck file for servers behind a loadbalancer
925
+ <healthcheck type="file">server-enabled</healthcheck>
926
+ -->
927
+ </admin>
928
+ <requestHandler class="solr.MoreLikeThisHandler" name="/mlt">
929
+ <lst name="defaults">
930
+ <str name="mlt.mintf">1</str>
931
+ <str name="mlt.mindf">2</str>
932
+ </lst>
933
+ </requestHandler>
934
+ </config>