geohydra 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (687) hide show
  1. data/.gitignore +23 -0
  2. data/.gitmodules +3 -0
  3. data/.travis.yml +7 -0
  4. data/Gemfile +15 -0
  5. data/Gemfile.lock +281 -0
  6. data/LICENSE +14 -0
  7. data/README.md +187 -0
  8. data/Rakefile +34 -0
  9. data/VERSION +1 -0
  10. data/bin/accession.rb +109 -0
  11. data/bin/assemble.rb +307 -0
  12. data/bin/assemble_data.rb +66 -0
  13. data/bin/assemble_placenames.rb +110 -0
  14. data/bin/build_stage_options.rb +27 -0
  15. data/bin/derive_wgs84.rb +85 -0
  16. data/bin/extract_thumbnail.rb +49 -0
  17. data/bin/geohydra +11 -0
  18. data/bin/ingest_arcgis.rb +77 -0
  19. data/bin/ingest_tufts.rb +71 -0
  20. data/bin/loader.rb +296 -0
  21. data/bin/loader_postgis.rb +259 -0
  22. data/bin/seed.rb +78 -0
  23. data/bin/solr_indexer.rb +41 -0
  24. data/bin/sync_geoserver_metadata.rb +168 -0
  25. data/bin/validate_data.rb +59 -0
  26. data/config/.gitignore +1 -0
  27. data/config/boot.rb +17 -0
  28. data/config/database.yml +29 -0
  29. data/config/environments/.gitignore +8 -0
  30. data/config/environments/.gitkeep +0 -0
  31. data/config/environments/example.rb +85 -0
  32. data/config/environments/example_rgeoserver.yml +16 -0
  33. data/config/migrate.rb +11 -0
  34. data/geohydra.gemspec +49 -0
  35. data/lib/geohydra.rb +11 -0
  36. data/lib/geohydra/accession.rb +291 -0
  37. data/lib/geohydra/arcgis_to_iso19139_fc.xsl +364 -0
  38. data/lib/geohydra/gazetteer.csv +36 -0
  39. data/lib/geohydra/gazetteer.rb +73 -0
  40. data/lib/geohydra/geonetwork.rb +156 -0
  41. data/lib/geohydra/mods2ogp.xsl +198 -0
  42. data/lib/geohydra/ogpcleanup.xsl +28 -0
  43. data/lib/geohydra/solr.rb +49 -0
  44. data/lib/geohydra/transform.rb +175 -0
  45. data/lib/geohydra/utils.rb +19 -0
  46. data/lib/geohydra/version.rb +3 -0
  47. data/scripts/correct_collections.rb +93 -0
  48. data/scripts/dbfdump.rb +13 -0
  49. data/scripts/extract.xsl +35 -0
  50. data/scripts/geoserver_createdb.sh +6 -0
  51. data/scripts/geoserver_createdb.sql +29 -0
  52. data/scripts/geowebcache_tops.rb +22 -0
  53. data/scripts/ingest_mods.rb +23 -0
  54. data/scripts/iso2html/displayElement.xsl +52 -0
  55. data/scripts/iso2html/elements-ISO.xml +665 -0
  56. data/scripts/iso2html/headers-ISO.xml +16 -0
  57. data/scripts/iso2html/printFormatted.xsl +227 -0
  58. data/scripts/iso2html/printtextlines.xsl +171 -0
  59. data/scripts/iso2html/xml-to-html-ISO.xsl +273 -0
  60. data/scripts/iso2html/xml-to-text-ISO.xsl +148 -0
  61. data/scripts/load_stage_data.rb +13 -0
  62. data/scripts/nextgis_iso19115.xsl +553 -0
  63. data/scripts/replicate_db.sh +7 -0
  64. data/scripts/report_stage.rb +5 -0
  65. data/solr/dev.html +19 -0
  66. data/solr/dlss-dev-drh-geo/conf/schema.xml +54 -0
  67. data/solr/dlss-dev-drh-geo/conf/solrconfig.xml +156 -0
  68. data/solr/dlss-dev-drh-geo/deploy.sh +15 -0
  69. data/solr/dlss-dev-drh-geo/example_doc.xml +25 -0
  70. data/solr/dlss-dev-drh-geo/test.sh +14 -0
  71. data/solr/ogp-dev/conf/admin-extra.html +24 -0
  72. data/solr/ogp-dev/conf/admin-extra.menu-bottom.html +25 -0
  73. data/solr/ogp-dev/conf/admin-extra.menu-top.html +25 -0
  74. data/solr/ogp-dev/conf/currency.xml +67 -0
  75. data/solr/ogp-dev/conf/elevate.xml +38 -0
  76. data/solr/ogp-dev/conf/lang/contractions_ca.txt +8 -0
  77. data/solr/ogp-dev/conf/lang/contractions_fr.txt +15 -0
  78. data/solr/ogp-dev/conf/lang/contractions_ga.txt +5 -0
  79. data/solr/ogp-dev/conf/lang/contractions_it.txt +23 -0
  80. data/solr/ogp-dev/conf/lang/hyphenations_ga.txt +5 -0
  81. data/solr/ogp-dev/conf/lang/stemdict_nl.txt +6 -0
  82. data/solr/ogp-dev/conf/lang/stoptags_ja.txt +420 -0
  83. data/solr/ogp-dev/conf/lang/stopwords_ar.txt +125 -0
  84. data/solr/ogp-dev/conf/lang/stopwords_bg.txt +193 -0
  85. data/solr/ogp-dev/conf/lang/stopwords_ca.txt +220 -0
  86. data/solr/ogp-dev/conf/lang/stopwords_cz.txt +172 -0
  87. data/solr/ogp-dev/conf/lang/stopwords_da.txt +108 -0
  88. data/solr/ogp-dev/conf/lang/stopwords_de.txt +292 -0
  89. data/solr/ogp-dev/conf/lang/stopwords_el.txt +78 -0
  90. data/solr/ogp-dev/conf/lang/stopwords_en.txt +54 -0
  91. data/solr/ogp-dev/conf/lang/stopwords_es.txt +354 -0
  92. data/solr/ogp-dev/conf/lang/stopwords_eu.txt +99 -0
  93. data/solr/ogp-dev/conf/lang/stopwords_fa.txt +313 -0
  94. data/solr/ogp-dev/conf/lang/stopwords_fi.txt +95 -0
  95. data/solr/ogp-dev/conf/lang/stopwords_fr.txt +184 -0
  96. data/solr/ogp-dev/conf/lang/stopwords_ga.txt +110 -0
  97. data/solr/ogp-dev/conf/lang/stopwords_gl.txt +161 -0
  98. data/solr/ogp-dev/conf/lang/stopwords_hi.txt +235 -0
  99. data/solr/ogp-dev/conf/lang/stopwords_hu.txt +209 -0
  100. data/solr/ogp-dev/conf/lang/stopwords_hy.txt +46 -0
  101. data/solr/ogp-dev/conf/lang/stopwords_id.txt +359 -0
  102. data/solr/ogp-dev/conf/lang/stopwords_it.txt +301 -0
  103. data/solr/ogp-dev/conf/lang/stopwords_ja.txt +127 -0
  104. data/solr/ogp-dev/conf/lang/stopwords_lv.txt +172 -0
  105. data/solr/ogp-dev/conf/lang/stopwords_nl.txt +117 -0
  106. data/solr/ogp-dev/conf/lang/stopwords_no.txt +192 -0
  107. data/solr/ogp-dev/conf/lang/stopwords_pt.txt +251 -0
  108. data/solr/ogp-dev/conf/lang/stopwords_ro.txt +233 -0
  109. data/solr/ogp-dev/conf/lang/stopwords_ru.txt +241 -0
  110. data/solr/ogp-dev/conf/lang/stopwords_sv.txt +131 -0
  111. data/solr/ogp-dev/conf/lang/stopwords_th.txt +119 -0
  112. data/solr/ogp-dev/conf/lang/stopwords_tr.txt +212 -0
  113. data/solr/ogp-dev/conf/lang/userdict_ja.txt +29 -0
  114. data/solr/ogp-dev/conf/mapping-FoldToASCII.txt +3813 -0
  115. data/solr/ogp-dev/conf/mapping-ISOLatin1Accent.txt +246 -0
  116. data/solr/ogp-dev/conf/protwords.txt +21 -0
  117. data/solr/ogp-dev/conf/schema.xml +1362 -0
  118. data/solr/ogp-dev/conf/scripts.conf +24 -0
  119. data/solr/ogp-dev/conf/solrconfig.xml +1816 -0
  120. data/solr/ogp-dev/conf/spellings.txt +2 -0
  121. data/solr/ogp-dev/conf/stopwords.txt +14 -0
  122. data/solr/ogp-dev/conf/synonyms.txt +29 -0
  123. data/solr/ogp-dev/conf/synonymsIso.txt +158 -0
  124. data/solr/ogp-dev/conf/synonymsLcsh.txt +120 -0
  125. data/solr/ogp-dev/conf/synonymsState.txt +105 -0
  126. data/solr/ogp-dev/conf/update-script.js +53 -0
  127. data/solr/ogp-dev/conf/velocity/VM_global_library.vm +170 -0
  128. data/solr/ogp-dev/conf/velocity/browse.vm +50 -0
  129. data/solr/ogp-dev/conf/velocity/cluster.vm +9 -0
  130. data/solr/ogp-dev/conf/velocity/clusterResults.vm +12 -0
  131. data/solr/ogp-dev/conf/velocity/debug.vm +17 -0
  132. data/solr/ogp-dev/conf/velocity/did_you_mean.vm +4 -0
  133. data/solr/ogp-dev/conf/velocity/facet_fields.vm +15 -0
  134. data/solr/ogp-dev/conf/velocity/facet_pivot.vm +3 -0
  135. data/solr/ogp-dev/conf/velocity/facet_queries.vm +3 -0
  136. data/solr/ogp-dev/conf/velocity/facet_ranges.vm +15 -0
  137. data/solr/ogp-dev/conf/velocity/facets.vm +5 -0
  138. data/solr/ogp-dev/conf/velocity/footer.vm +17 -0
  139. data/solr/ogp-dev/conf/velocity/head.vm +32 -0
  140. data/solr/ogp-dev/conf/velocity/header.vm +3 -0
  141. data/solr/ogp-dev/conf/velocity/hit.vm +11 -0
  142. data/solr/ogp-dev/conf/velocity/hitGrouped.vm +24 -0
  143. data/solr/ogp-dev/conf/velocity/join-doc.vm +4 -0
  144. data/solr/ogp-dev/conf/velocity/jquery.autocomplete.css +48 -0
  145. data/solr/ogp-dev/conf/velocity/jquery.autocomplete.js +763 -0
  146. data/solr/ogp-dev/conf/velocity/layout.vm +20 -0
  147. data/solr/ogp-dev/conf/velocity/main.css +208 -0
  148. data/solr/ogp-dev/conf/velocity/product-doc.vm +27 -0
  149. data/solr/ogp-dev/conf/velocity/query.vm +42 -0
  150. data/solr/ogp-dev/conf/velocity/queryGroup.vm +19 -0
  151. data/solr/ogp-dev/conf/velocity/querySpatial.vm +40 -0
  152. data/solr/ogp-dev/conf/velocity/richtext-doc.vm +114 -0
  153. data/solr/ogp-dev/conf/velocity/suggest.vm +3 -0
  154. data/solr/ogp-dev/conf/velocity/tabs.vm +6 -0
  155. data/solr/ogp-dev/conf/xslt/example.xsl +132 -0
  156. data/solr/ogp-dev/conf/xslt/example_atom.xsl +67 -0
  157. data/solr/ogp-dev/conf/xslt/example_rss.xsl +66 -0
  158. data/solr/ogp-dev/conf/xslt/luke.xsl +337 -0
  159. data/solr/ogp-dev/conf/xslt/updateXml.xsl +70 -0
  160. data/solr/ogp-dev/deploy.sh +15 -0
  161. data/solr/ogp-dev/purge.sh +9 -0
  162. data/solr/ogp-dev/upload.sh +17 -0
  163. data/solr/ogp-test/conf/admin-extra.html +24 -0
  164. data/solr/ogp-test/conf/admin-extra.menu-bottom.html +25 -0
  165. data/solr/ogp-test/conf/admin-extra.menu-top.html +25 -0
  166. data/solr/ogp-test/conf/currency.xml +67 -0
  167. data/solr/ogp-test/conf/elevate.xml +38 -0
  168. data/solr/ogp-test/conf/lang/contractions_ca.txt +8 -0
  169. data/solr/ogp-test/conf/lang/contractions_fr.txt +15 -0
  170. data/solr/ogp-test/conf/lang/contractions_ga.txt +5 -0
  171. data/solr/ogp-test/conf/lang/contractions_it.txt +23 -0
  172. data/solr/ogp-test/conf/lang/hyphenations_ga.txt +5 -0
  173. data/solr/ogp-test/conf/lang/stemdict_nl.txt +6 -0
  174. data/solr/ogp-test/conf/lang/stoptags_ja.txt +420 -0
  175. data/solr/ogp-test/conf/lang/stopwords_ar.txt +125 -0
  176. data/solr/ogp-test/conf/lang/stopwords_bg.txt +193 -0
  177. data/solr/ogp-test/conf/lang/stopwords_ca.txt +220 -0
  178. data/solr/ogp-test/conf/lang/stopwords_cz.txt +172 -0
  179. data/solr/ogp-test/conf/lang/stopwords_da.txt +108 -0
  180. data/solr/ogp-test/conf/lang/stopwords_de.txt +292 -0
  181. data/solr/ogp-test/conf/lang/stopwords_el.txt +78 -0
  182. data/solr/ogp-test/conf/lang/stopwords_en.txt +54 -0
  183. data/solr/ogp-test/conf/lang/stopwords_es.txt +354 -0
  184. data/solr/ogp-test/conf/lang/stopwords_eu.txt +99 -0
  185. data/solr/ogp-test/conf/lang/stopwords_fa.txt +313 -0
  186. data/solr/ogp-test/conf/lang/stopwords_fi.txt +95 -0
  187. data/solr/ogp-test/conf/lang/stopwords_fr.txt +184 -0
  188. data/solr/ogp-test/conf/lang/stopwords_ga.txt +110 -0
  189. data/solr/ogp-test/conf/lang/stopwords_gl.txt +161 -0
  190. data/solr/ogp-test/conf/lang/stopwords_hi.txt +235 -0
  191. data/solr/ogp-test/conf/lang/stopwords_hu.txt +209 -0
  192. data/solr/ogp-test/conf/lang/stopwords_hy.txt +46 -0
  193. data/solr/ogp-test/conf/lang/stopwords_id.txt +359 -0
  194. data/solr/ogp-test/conf/lang/stopwords_it.txt +301 -0
  195. data/solr/ogp-test/conf/lang/stopwords_ja.txt +127 -0
  196. data/solr/ogp-test/conf/lang/stopwords_lv.txt +172 -0
  197. data/solr/ogp-test/conf/lang/stopwords_nl.txt +117 -0
  198. data/solr/ogp-test/conf/lang/stopwords_no.txt +192 -0
  199. data/solr/ogp-test/conf/lang/stopwords_pt.txt +251 -0
  200. data/solr/ogp-test/conf/lang/stopwords_ro.txt +233 -0
  201. data/solr/ogp-test/conf/lang/stopwords_ru.txt +241 -0
  202. data/solr/ogp-test/conf/lang/stopwords_sv.txt +131 -0
  203. data/solr/ogp-test/conf/lang/stopwords_th.txt +119 -0
  204. data/solr/ogp-test/conf/lang/stopwords_tr.txt +212 -0
  205. data/solr/ogp-test/conf/lang/userdict_ja.txt +29 -0
  206. data/solr/ogp-test/conf/mapping-FoldToASCII.txt +3813 -0
  207. data/solr/ogp-test/conf/mapping-ISOLatin1Accent.txt +246 -0
  208. data/solr/ogp-test/conf/protwords.txt +21 -0
  209. data/solr/ogp-test/conf/schema.xml +1362 -0
  210. data/solr/ogp-test/conf/scripts.conf +24 -0
  211. data/solr/ogp-test/conf/solrconfig.xml +1816 -0
  212. data/solr/ogp-test/conf/spellings.txt +2 -0
  213. data/solr/ogp-test/conf/stopwords.txt +14 -0
  214. data/solr/ogp-test/conf/synonyms.txt +29 -0
  215. data/solr/ogp-test/conf/synonymsIso.txt +158 -0
  216. data/solr/ogp-test/conf/synonymsLcsh.txt +120 -0
  217. data/solr/ogp-test/conf/synonymsState.txt +105 -0
  218. data/solr/ogp-test/conf/update-script.js +53 -0
  219. data/solr/ogp-test/conf/velocity/VM_global_library.vm +170 -0
  220. data/solr/ogp-test/conf/velocity/browse.vm +50 -0
  221. data/solr/ogp-test/conf/velocity/cluster.vm +9 -0
  222. data/solr/ogp-test/conf/velocity/clusterResults.vm +12 -0
  223. data/solr/ogp-test/conf/velocity/debug.vm +17 -0
  224. data/solr/ogp-test/conf/velocity/did_you_mean.vm +4 -0
  225. data/solr/ogp-test/conf/velocity/facet_fields.vm +15 -0
  226. data/solr/ogp-test/conf/velocity/facet_pivot.vm +3 -0
  227. data/solr/ogp-test/conf/velocity/facet_queries.vm +3 -0
  228. data/solr/ogp-test/conf/velocity/facet_ranges.vm +15 -0
  229. data/solr/ogp-test/conf/velocity/facets.vm +5 -0
  230. data/solr/ogp-test/conf/velocity/footer.vm +17 -0
  231. data/solr/ogp-test/conf/velocity/head.vm +32 -0
  232. data/solr/ogp-test/conf/velocity/header.vm +3 -0
  233. data/solr/ogp-test/conf/velocity/hit.vm +11 -0
  234. data/solr/ogp-test/conf/velocity/hitGrouped.vm +24 -0
  235. data/solr/ogp-test/conf/velocity/join-doc.vm +4 -0
  236. data/solr/ogp-test/conf/velocity/jquery.autocomplete.css +48 -0
  237. data/solr/ogp-test/conf/velocity/jquery.autocomplete.js +763 -0
  238. data/solr/ogp-test/conf/velocity/layout.vm +20 -0
  239. data/solr/ogp-test/conf/velocity/main.css +208 -0
  240. data/solr/ogp-test/conf/velocity/product-doc.vm +27 -0
  241. data/solr/ogp-test/conf/velocity/query.vm +42 -0
  242. data/solr/ogp-test/conf/velocity/queryGroup.vm +19 -0
  243. data/solr/ogp-test/conf/velocity/querySpatial.vm +40 -0
  244. data/solr/ogp-test/conf/velocity/richtext-doc.vm +114 -0
  245. data/solr/ogp-test/conf/velocity/suggest.vm +3 -0
  246. data/solr/ogp-test/conf/velocity/tabs.vm +6 -0
  247. data/solr/ogp-test/conf/xslt/example.xsl +132 -0
  248. data/solr/ogp-test/conf/xslt/example_atom.xsl +67 -0
  249. data/solr/ogp-test/conf/xslt/example_rss.xsl +66 -0
  250. data/solr/ogp-test/conf/xslt/luke.xsl +337 -0
  251. data/solr/ogp-test/conf/xslt/updateXml.xsl +70 -0
  252. data/solr/ogp-test/deploy.sh +15 -0
  253. data/solr/ogp-test/purge.sh +9 -0
  254. data/solr/ogp-test/upload.sh +17 -0
  255. data/solr/ogp/conf/admin-extra.html +24 -0
  256. data/solr/ogp/conf/admin-extra.menu-bottom.html +25 -0
  257. data/solr/ogp/conf/admin-extra.menu-top.html +25 -0
  258. data/solr/ogp/conf/currency.xml +67 -0
  259. data/solr/ogp/conf/elevate.xml +38 -0
  260. data/solr/ogp/conf/lang/contractions_ca.txt +8 -0
  261. data/solr/ogp/conf/lang/contractions_fr.txt +15 -0
  262. data/solr/ogp/conf/lang/contractions_ga.txt +5 -0
  263. data/solr/ogp/conf/lang/contractions_it.txt +23 -0
  264. data/solr/ogp/conf/lang/hyphenations_ga.txt +5 -0
  265. data/solr/ogp/conf/lang/stemdict_nl.txt +6 -0
  266. data/solr/ogp/conf/lang/stoptags_ja.txt +420 -0
  267. data/solr/ogp/conf/lang/stopwords_ar.txt +125 -0
  268. data/solr/ogp/conf/lang/stopwords_bg.txt +193 -0
  269. data/solr/ogp/conf/lang/stopwords_ca.txt +220 -0
  270. data/solr/ogp/conf/lang/stopwords_cz.txt +172 -0
  271. data/solr/ogp/conf/lang/stopwords_da.txt +108 -0
  272. data/solr/ogp/conf/lang/stopwords_de.txt +292 -0
  273. data/solr/ogp/conf/lang/stopwords_el.txt +78 -0
  274. data/solr/ogp/conf/lang/stopwords_en.txt +54 -0
  275. data/solr/ogp/conf/lang/stopwords_es.txt +354 -0
  276. data/solr/ogp/conf/lang/stopwords_eu.txt +99 -0
  277. data/solr/ogp/conf/lang/stopwords_fa.txt +313 -0
  278. data/solr/ogp/conf/lang/stopwords_fi.txt +95 -0
  279. data/solr/ogp/conf/lang/stopwords_fr.txt +184 -0
  280. data/solr/ogp/conf/lang/stopwords_ga.txt +110 -0
  281. data/solr/ogp/conf/lang/stopwords_gl.txt +161 -0
  282. data/solr/ogp/conf/lang/stopwords_hi.txt +235 -0
  283. data/solr/ogp/conf/lang/stopwords_hu.txt +209 -0
  284. data/solr/ogp/conf/lang/stopwords_hy.txt +46 -0
  285. data/solr/ogp/conf/lang/stopwords_id.txt +359 -0
  286. data/solr/ogp/conf/lang/stopwords_it.txt +301 -0
  287. data/solr/ogp/conf/lang/stopwords_ja.txt +127 -0
  288. data/solr/ogp/conf/lang/stopwords_lv.txt +172 -0
  289. data/solr/ogp/conf/lang/stopwords_nl.txt +117 -0
  290. data/solr/ogp/conf/lang/stopwords_no.txt +192 -0
  291. data/solr/ogp/conf/lang/stopwords_pt.txt +251 -0
  292. data/solr/ogp/conf/lang/stopwords_ro.txt +233 -0
  293. data/solr/ogp/conf/lang/stopwords_ru.txt +241 -0
  294. data/solr/ogp/conf/lang/stopwords_sv.txt +131 -0
  295. data/solr/ogp/conf/lang/stopwords_th.txt +119 -0
  296. data/solr/ogp/conf/lang/stopwords_tr.txt +212 -0
  297. data/solr/ogp/conf/lang/userdict_ja.txt +29 -0
  298. data/solr/ogp/conf/mapping-FoldToASCII.txt +3813 -0
  299. data/solr/ogp/conf/mapping-ISOLatin1Accent.txt +246 -0
  300. data/solr/ogp/conf/protwords.txt +21 -0
  301. data/solr/ogp/conf/schema.xml +1362 -0
  302. data/solr/ogp/conf/scripts.conf +24 -0
  303. data/solr/ogp/conf/solrconfig.xml +1816 -0
  304. data/solr/ogp/conf/spellings.txt +2 -0
  305. data/solr/ogp/conf/stopwords.txt +14 -0
  306. data/solr/ogp/conf/synonyms.txt +29 -0
  307. data/solr/ogp/conf/synonymsIso.txt +158 -0
  308. data/solr/ogp/conf/synonymsLcsh.txt +120 -0
  309. data/solr/ogp/conf/synonymsState.txt +105 -0
  310. data/solr/ogp/conf/update-script.js +53 -0
  311. data/solr/ogp/conf/velocity/VM_global_library.vm +170 -0
  312. data/solr/ogp/conf/velocity/browse.vm +50 -0
  313. data/solr/ogp/conf/velocity/cluster.vm +9 -0
  314. data/solr/ogp/conf/velocity/clusterResults.vm +12 -0
  315. data/solr/ogp/conf/velocity/debug.vm +17 -0
  316. data/solr/ogp/conf/velocity/did_you_mean.vm +4 -0
  317. data/solr/ogp/conf/velocity/facet_fields.vm +15 -0
  318. data/solr/ogp/conf/velocity/facet_pivot.vm +3 -0
  319. data/solr/ogp/conf/velocity/facet_queries.vm +3 -0
  320. data/solr/ogp/conf/velocity/facet_ranges.vm +15 -0
  321. data/solr/ogp/conf/velocity/facets.vm +5 -0
  322. data/solr/ogp/conf/velocity/footer.vm +17 -0
  323. data/solr/ogp/conf/velocity/head.vm +32 -0
  324. data/solr/ogp/conf/velocity/header.vm +3 -0
  325. data/solr/ogp/conf/velocity/hit.vm +11 -0
  326. data/solr/ogp/conf/velocity/hitGrouped.vm +24 -0
  327. data/solr/ogp/conf/velocity/join-doc.vm +4 -0
  328. data/solr/ogp/conf/velocity/jquery.autocomplete.css +48 -0
  329. data/solr/ogp/conf/velocity/jquery.autocomplete.js +763 -0
  330. data/solr/ogp/conf/velocity/layout.vm +20 -0
  331. data/solr/ogp/conf/velocity/main.css +208 -0
  332. data/solr/ogp/conf/velocity/product-doc.vm +27 -0
  333. data/solr/ogp/conf/velocity/query.vm +42 -0
  334. data/solr/ogp/conf/velocity/queryGroup.vm +19 -0
  335. data/solr/ogp/conf/velocity/querySpatial.vm +40 -0
  336. data/solr/ogp/conf/velocity/richtext-doc.vm +114 -0
  337. data/solr/ogp/conf/velocity/suggest.vm +3 -0
  338. data/solr/ogp/conf/velocity/tabs.vm +6 -0
  339. data/solr/ogp/conf/xslt/example.xsl +132 -0
  340. data/solr/ogp/conf/xslt/example_atom.xsl +67 -0
  341. data/solr/ogp/conf/xslt/example_rss.xsl +66 -0
  342. data/solr/ogp/conf/xslt/luke.xsl +337 -0
  343. data/solr/ogp/conf/xslt/updateXml.xsl +70 -0
  344. data/solr/ogp/deploy.sh +15 -0
  345. data/solr/ogp/upload.sh +16 -0
  346. data/spec/fixtures/bw938nk9584/metadata/geoMetadata.xml +2438 -0
  347. data/spec/fixtures/bw938nk9584/temp/TRIPURA-iso19139-fc.xml +1643 -0
  348. data/spec/fixtures/bw938nk9584/temp/TRIPURA-iso19139.xml +790 -0
  349. data/spec/fixtures/cc142xj8436/metadata/geoMetadata.xml +2029 -0
  350. data/spec/fixtures/cc142xj8436/temp/HARYANA-iso19139-fc.xml +1174 -0
  351. data/spec/fixtures/cc142xj8436/temp/HARYANA-iso19139.xml +850 -0
  352. data/spec/fixtures/cg716wc7949/metadata/geoMetadata.xml +1815 -0
  353. data/spec/fixtures/cg716wc7949/temp/metadata.iso19139-fc.xml +958 -0
  354. data/spec/fixtures/cg716wc7949/temp/metadata.iso19139.xml +852 -0
  355. data/spec/fixtures/cm007pv9601/metadata/geoMetadata.xml +1092 -0
  356. data/spec/fixtures/cm007pv9601/temp/MEGHALAYA-iso19139-fc.xml +379 -0
  357. data/spec/fixtures/cm007pv9601/temp/MEGHALAYA-iso19139.xml +708 -0
  358. data/spec/fixtures/cp055nb0189/metadata/geoMetadata.xml +1820 -0
  359. data/spec/fixtures/cp055nb0189/temp/metadata.iso19139-fc.xml +955 -0
  360. data/spec/fixtures/cp055nb0189/temp/metadata.iso19139.xml +860 -0
  361. data/spec/fixtures/cs838pw3418/metadata/geoMetadata.xml +912 -0
  362. data/spec/fixtures/cs838pw3418/temp/OIL_GAS_FIELDS-iso19139-fc.xml +177 -0
  363. data/spec/fixtures/cs838pw3418/temp/OIL_GAS_FIELDS-iso19139.xml +730 -0
  364. data/spec/fixtures/dd308sy5843/metadata/geoMetadata.xml +2438 -0
  365. data/spec/fixtures/dd308sy5843/temp/ORISSA-iso19139-fc.xml +1643 -0
  366. data/spec/fixtures/dd308sy5843/temp/ORISSA-iso19139.xml +790 -0
  367. data/spec/fixtures/dd452vk1873/metadata/geoMetadata.xml +1168 -0
  368. data/spec/fixtures/dd452vk1873/temp/metadata.iso19139-fc.xml +175 -0
  369. data/spec/fixtures/dd452vk1873/temp/metadata.iso19139.xml +988 -0
  370. data/spec/fixtures/dg850pt1796/metadata/geoMetadata.xml +1411 -0
  371. data/spec/fixtures/dg850pt1796/temp/STATE1951-iso19139-fc.xml +519 -0
  372. data/spec/fixtures/dg850pt1796/temp/STATE1951-iso19139.xml +887 -0
  373. data/spec/fixtures/dn744tf5427/metadata/geoMetadata.xml +7403 -0
  374. data/spec/fixtures/dn744tf5427/temp/DISTRICT1991-iso19139-fc.xml +6539 -0
  375. data/spec/fixtures/dn744tf5427/temp/DISTRICT1991-iso19139.xml +859 -0
  376. data/spec/fixtures/dq603nz8402/metadata/geoMetadata.xml +8485 -0
  377. data/spec/fixtures/dq603nz8402/temp/STATE2001-iso19139-fc.xml +7595 -0
  378. data/spec/fixtures/dq603nz8402/temp/STATE2001-iso19139.xml +885 -0
  379. data/spec/fixtures/dv609zt4699/metadata/geoMetadata.xml +3865 -0
  380. data/spec/fixtures/dv609zt4699/temp/ASSAM-iso19139-fc.xml +3075 -0
  381. data/spec/fixtures/dv609zt4699/temp/ASSAM-iso19139.xml +785 -0
  382. data/spec/fixtures/dz222hw0585/metadata/geoMetadata.xml +2057 -0
  383. data/spec/fixtures/dz222hw0585/temp/PUNJAB-iso19139-fc.xml +1203 -0
  384. data/spec/fixtures/dz222hw0585/temp/PUNJAB-iso19139.xml +849 -0
  385. data/spec/fixtures/fd673qb9705/metadata/geoMetadata.xml +4059 -0
  386. data/spec/fixtures/fd673qb9705/temp/STATE1971-iso19139-fc.xml +3159 -0
  387. data/spec/fixtures/fd673qb9705/temp/STATE1971-iso19139.xml +895 -0
  388. data/spec/fixtures/fg451wp8917/metadata/geoMetadata.xml +2435 -0
  389. data/spec/fixtures/fg451wp8917/temp/SIKKIM-iso19139-fc.xml +1643 -0
  390. data/spec/fixtures/fg451wp8917/temp/SIKKIM-iso19139.xml +787 -0
  391. data/spec/fixtures/fh247yz0156/metadata/geoMetadata.xml +2437 -0
  392. data/spec/fixtures/fh247yz0156/temp/RAJASTHAN-iso19139-fc.xml +1643 -0
  393. data/spec/fixtures/fh247yz0156/temp/RAJASTHAN-iso19139.xml +789 -0
  394. data/spec/fixtures/fs487vd1465/metadata/geoMetadata.xml +3896 -0
  395. data/spec/fixtures/fs487vd1465/temp/CHHATTISGARH-iso19139-fc.xml +3075 -0
  396. data/spec/fixtures/fs487vd1465/temp/CHHATTISGARH-iso19139.xml +816 -0
  397. data/spec/fixtures/fs591bn3317/metadata/geoMetadata.xml +2435 -0
  398. data/spec/fixtures/fs591bn3317/temp/HIMACHAL_PRADESH-iso19139-fc.xml +1643 -0
  399. data/spec/fixtures/fs591bn3317/temp/HIMACHAL_PRADESH-iso19139.xml +787 -0
  400. data/spec/fixtures/fw920bc5473/metadata/geoMetadata.xml +1056 -0
  401. data/spec/fixtures/fw920bc5473/temp/PLSS_TWN-iso19139-fc.xml +327 -0
  402. data/spec/fixtures/fw920bc5473/temp/PLSS_TWN-iso19139.xml +724 -0
  403. data/spec/fixtures/gj831wj3625/metadata/geoMetadata.xml +1735 -0
  404. data/spec/fixtures/gj831wj3625/temp/metadata.iso19139-fc.xml +940 -0
  405. data/spec/fixtures/gj831wj3625/temp/metadata.iso19139.xml +790 -0
  406. data/spec/fixtures/gp075nv3265/metadata/geoMetadata.xml +2432 -0
  407. data/spec/fixtures/gp075nv3265/temp/PONDICHERRY-iso19139-fc.xml +1643 -0
  408. data/spec/fixtures/gp075nv3265/temp/PONDICHERRY-iso19139.xml +784 -0
  409. data/spec/fixtures/gv800hj8141/metadata/geoMetadata.xml +2392 -0
  410. data/spec/fixtures/gv800hj8141/temp/BIHAR-iso19139-fc.xml +1643 -0
  411. data/spec/fixtures/gv800hj8141/temp/BIHAR-iso19139.xml +744 -0
  412. data/spec/fixtures/gw520gz6339/metadata/geoMetadata.xml +3899 -0
  413. data/spec/fixtures/gw520gz6339/temp/DADRA_NAGAR_HAVELI_PT-iso19139-fc.xml +3075 -0
  414. data/spec/fixtures/gw520gz6339/temp/DADRA_NAGAR_HAVELI_PT-iso19139.xml +819 -0
  415. data/spec/fixtures/gy054hz1045/metadata/geoMetadata.xml +2418 -0
  416. data/spec/fixtures/gy054hz1045/temp/HARYANA-iso19139-fc.xml +1633 -0
  417. data/spec/fixtures/gy054hz1045/temp/HARYANA-iso19139.xml +780 -0
  418. data/spec/fixtures/gz352mw6982/metadata/geoMetadata.xml +1772 -0
  419. data/spec/fixtures/gz352mw6982/temp/metadata.iso19139-fc.xml +940 -0
  420. data/spec/fixtures/gz352mw6982/temp/metadata.iso19139.xml +827 -0
  421. data/spec/fixtures/hb489vm9892/metadata/geoMetadata.xml +3663 -0
  422. data/spec/fixtures/hb489vm9892/temp/DISTRICT1981-iso19139-fc.xml +2799 -0
  423. data/spec/fixtures/hb489vm9892/temp/DISTRICT1981-iso19139.xml +859 -0
  424. data/spec/fixtures/hw125dq0418/metadata/geoMetadata.xml +2448 -0
  425. data/spec/fixtures/hw125dq0418/temp/DELHI-iso19139-fc.xml +1599 -0
  426. data/spec/fixtures/hw125dq0418/temp/DELHI-iso19139.xml +844 -0
  427. data/spec/fixtures/hw892mn4587/metadata/geoMetadata.xml +2561 -0
  428. data/spec/fixtures/hw892mn4587/temp/KERALA-iso19139-fc.xml +1763 -0
  429. data/spec/fixtures/hw892mn4587/temp/KERALA-iso19139.xml +793 -0
  430. data/spec/fixtures/jb371hz3868/metadata/geoMetadata.xml +3129 -0
  431. data/spec/fixtures/jb371hz3868/temp/INCOME-iso19139-fc.xml +2263 -0
  432. data/spec/fixtures/jb371hz3868/temp/INCOME-iso19139.xml +861 -0
  433. data/spec/fixtures/jc017yk9928/metadata/geoMetadata.xml +2433 -0
  434. data/spec/fixtures/jc017yk9928/temp/KARNATAKA-iso19139-fc.xml +1599 -0
  435. data/spec/fixtures/jc017yk9928/temp/KARNATAKA-iso19139.xml +829 -0
  436. data/spec/fixtures/jf841ys4828/metadata/geoMetadata.xml +2156 -0
  437. data/spec/fixtures/jf841ys4828/temp/ANDHRA_PRADESH-iso19139-fc.xml +1247 -0
  438. data/spec/fixtures/jf841ys4828/temp/ANDHRA_PRADESH-iso19139.xml +904 -0
  439. data/spec/fixtures/jh802mp2160/metadata/geoMetadata.xml +3917 -0
  440. data/spec/fixtures/jh802mp2160/temp/DELHI_PT-iso19139-fc.xml +3075 -0
  441. data/spec/fixtures/jh802mp2160/temp/DELHI_PT-iso19139.xml +837 -0
  442. data/spec/fixtures/jj806fc3801/metadata/geoMetadata.xml +1235 -0
  443. data/spec/fixtures/jj806fc3801/temp/metadata.iso19139-fc.xml +173 -0
  444. data/spec/fixtures/jj806fc3801/temp/metadata.iso19139.xml +1057 -0
  445. data/spec/fixtures/jq835yn7161/metadata/geoMetadata.xml +2060 -0
  446. data/spec/fixtures/jq835yn7161/temp/HIMACHAL_PRADESH-iso19139-fc.xml +1203 -0
  447. data/spec/fixtures/jq835yn7161/temp/HIMACHAL_PRADESH-iso19139.xml +852 -0
  448. data/spec/fixtures/jr455pt6676/metadata/geoMetadata.xml +2045 -0
  449. data/spec/fixtures/jr455pt6676/temp/TAMILNADU-iso19139-fc.xml +1203 -0
  450. data/spec/fixtures/jr455pt6676/temp/TAMILNADU-iso19139.xml +837 -0
  451. data/spec/fixtures/js637zp2537/metadata/geoMetadata.xml +3894 -0
  452. data/spec/fixtures/js637zp2537/temp/BIHAR-iso19139-fc.xml +3075 -0
  453. data/spec/fixtures/js637zp2537/temp/BIHAR-iso19139.xml +814 -0
  454. data/spec/fixtures/jv502wg9611/metadata/geoMetadata.xml +2052 -0
  455. data/spec/fixtures/jv502wg9611/temp/GOA-iso19139-fc.xml +1203 -0
  456. data/spec/fixtures/jv502wg9611/temp/GOA-iso19139.xml +844 -0
  457. data/spec/fixtures/jw462ck6560/metadata/geoMetadata.xml +2442 -0
  458. data/spec/fixtures/jw462ck6560/temp/JAMMU_KASHMIR-iso19139-fc.xml +1643 -0
  459. data/spec/fixtures/jw462ck6560/temp/JAMMU_KASHMIR-iso19139.xml +794 -0
  460. data/spec/fixtures/kj800fb6273/metadata/geoMetadata.xml +3300 -0
  461. data/spec/fixtures/kj800fb6273/temp/STATE2011-iso19139-fc.xml +2403 -0
  462. data/spec/fixtures/kj800fb6273/temp/STATE2011-iso19139.xml +892 -0
  463. data/spec/fixtures/km504zq3948/metadata/geoMetadata.xml +3862 -0
  464. data/spec/fixtures/km504zq3948/temp/HIMACHAL_PRADESH-iso19139-fc.xml +3075 -0
  465. data/spec/fixtures/km504zq3948/temp/HIMACHAL_PRADESH-iso19139.xml +782 -0
  466. data/spec/fixtures/ks297fy1411/metadata/geoMetadata.xml +1043 -0
  467. data/spec/fixtures/ks297fy1411/temp/OFFSH_BLOCKS-iso19139-fc.xml +350 -0
  468. data/spec/fixtures/ks297fy1411/temp/OFFSH_BLOCKS-iso19139.xml +688 -0
  469. data/spec/fixtures/md358hy5049/metadata/geoMetadata.xml +2424 -0
  470. data/spec/fixtures/md358hy5049/temp/MIZORAM-iso19139-fc.xml +1570 -0
  471. data/spec/fixtures/md358hy5049/temp/MIZORAM-iso19139.xml +849 -0
  472. data/spec/fixtures/mg745bq0193/metadata/geoMetadata.xml +2183 -0
  473. data/spec/fixtures/mg745bq0193/temp/MADHYA_PRADESH-iso19139-fc.xml +1383 -0
  474. data/spec/fixtures/mg745bq0193/temp/MADHYA_PRADESH-iso19139.xml +795 -0
  475. data/spec/fixtures/mh187yx3536/metadata/geoMetadata.xml +2447 -0
  476. data/spec/fixtures/mh187yx3536/temp/WEST_BENGAL-iso19139-fc.xml +1643 -0
  477. data/spec/fixtures/mh187yx3536/temp/WEST_BENGAL-iso19139.xml +799 -0
  478. data/spec/fixtures/mk488yn6694/metadata/geoMetadata.xml +2042 -0
  479. data/spec/fixtures/mk488yn6694/temp/GUJARAT-iso19139-fc.xml +1203 -0
  480. data/spec/fixtures/mk488yn6694/temp/GUJARAT-iso19139.xml +834 -0
  481. data/spec/fixtures/my216kp3008/metadata/geoMetadata.xml +2366 -0
  482. data/spec/fixtures/my216kp3008/temp/DELHI-iso19139-fc.xml +1643 -0
  483. data/spec/fixtures/my216kp3008/temp/DELHI-iso19139.xml +718 -0
  484. data/spec/fixtures/my504nz9827/metadata/geoMetadata.xml +2367 -0
  485. data/spec/fixtures/my504nz9827/temp/JAMMU_KASHMIR-iso19139-fc.xml +1519 -0
  486. data/spec/fixtures/my504nz9827/temp/JAMMU_KASHMIR-iso19139.xml +843 -0
  487. data/spec/fixtures/ng819jm8700/metadata/geoMetadata.xml +2496 -0
  488. data/spec/fixtures/ng819jm8700/temp/MANIPUR-iso19139-fc.xml +1643 -0
  489. data/spec/fixtures/ng819jm8700/temp/MANIPUR-iso19139.xml +848 -0
  490. data/spec/fixtures/np020jq2139/metadata/geoMetadata.xml +1153 -0
  491. data/spec/fixtures/np020jq2139/temp/metadata.iso19139-fc.xml +160 -0
  492. data/spec/fixtures/np020jq2139/temp/metadata.iso19139.xml +988 -0
  493. data/spec/fixtures/ns377mt1608/metadata/geoMetadata.xml +7125 -0
  494. data/spec/fixtures/ns377mt1608/temp/STATE1991-iso19139-fc.xml +6283 -0
  495. data/spec/fixtures/ns377mt1608/temp/STATE1991-iso19139.xml +837 -0
  496. data/spec/fixtures/nw926np8508/metadata/geoMetadata.xml +1143 -0
  497. data/spec/fixtures/nw926np8508/temp/metadata.iso19139-fc.xml +160 -0
  498. data/spec/fixtures/nw926np8508/temp/metadata.iso19139.xml +978 -0
  499. data/spec/fixtures/ny358rm8559/metadata/geoMetadata.xml +2459 -0
  500. data/spec/fixtures/ny358rm8559/temp/TRIPURA-iso19139-fc.xml +1599 -0
  501. data/spec/fixtures/ny358rm8559/temp/TRIPURA-iso19139.xml +855 -0
  502. data/spec/fixtures/nz176rm8192/metadata/geoMetadata.xml +2618 -0
  503. data/spec/fixtures/nz176rm8192/temp/DISTRICT2011-iso19139-fc.xml +1813 -0
  504. data/spec/fixtures/nz176rm8192/temp/DISTRICT2011-iso19139.xml +800 -0
  505. data/spec/fixtures/nz252rq2252/metadata/geoMetadata.xml +2387 -0
  506. data/spec/fixtures/nz252rq2252/temp/UTTAR_PRADESH-iso19139-fc.xml +1599 -0
  507. data/spec/fixtures/nz252rq2252/temp/UTTAR_PRADESH-iso19139.xml +783 -0
  508. data/spec/fixtures/pd902kb3348/metadata/geoMetadata.xml +2414 -0
  509. data/spec/fixtures/pd902kb3348/temp/MADHYA_PRADESH-iso19139-fc.xml +1633 -0
  510. data/spec/fixtures/pd902kb3348/temp/MADHYA_PRADESH-iso19139.xml +776 -0
  511. data/spec/fixtures/pz792fz1776/metadata/geoMetadata.xml +2437 -0
  512. data/spec/fixtures/pz792fz1776/temp/MAHARASHTRA-iso19139-fc.xml +1643 -0
  513. data/spec/fixtures/pz792fz1776/temp/MAHARASHTRA-iso19139.xml +789 -0
  514. data/spec/fixtures/qb767ss4042/metadata/geoMetadata.xml +2045 -0
  515. data/spec/fixtures/qb767ss4042/temp/UTTAR_PRADESH-iso19139-fc.xml +1200 -0
  516. data/spec/fixtures/qb767ss4042/temp/UTTAR_PRADESH-iso19139.xml +840 -0
  517. data/spec/fixtures/qc091qw0570/metadata/geoMetadata.xml +2428 -0
  518. data/spec/fixtures/qc091qw0570/temp/GUJARAT-iso19139-fc.xml +1643 -0
  519. data/spec/fixtures/qc091qw0570/temp/GUJARAT-iso19139.xml +780 -0
  520. data/spec/fixtures/qc652vr7204/metadata/geoMetadata.xml +3877 -0
  521. data/spec/fixtures/qc652vr7204/temp/ANDHRA_PRADESH_PT-iso19139-fc.xml +3075 -0
  522. data/spec/fixtures/qc652vr7204/temp/ANDHRA_PRADESH_PT-iso19139.xml +797 -0
  523. data/spec/fixtures/qk786js7484/metadata/geoMetadata.xml +3267 -0
  524. data/spec/fixtures/qk786js7484/temp/DISTRICT1961-iso19139-fc.xml +2403 -0
  525. data/spec/fixtures/qk786js7484/temp/DISTRICT1961-iso19139.xml +859 -0
  526. data/spec/fixtures/qn676pg6767/metadata/geoMetadata.xml +3861 -0
  527. data/spec/fixtures/qn676pg6767/temp/GOA-iso19139-fc.xml +3075 -0
  528. data/spec/fixtures/qn676pg6767/temp/GOA-iso19139.xml +781 -0
  529. data/spec/fixtures/qr255jh4074/metadata/geoMetadata.xml +3226 -0
  530. data/spec/fixtures/qr255jh4074/temp/LOKSABHA_14-iso19139-fc.xml +2366 -0
  531. data/spec/fixtures/qr255jh4074/temp/LOKSABHA_14-iso19139.xml +855 -0
  532. data/spec/fixtures/qr374kj4827/metadata/geoMetadata.xml +2428 -0
  533. data/spec/fixtures/qr374kj4827/temp/ASSAM-iso19139-fc.xml +1643 -0
  534. data/spec/fixtures/qr374kj4827/temp/ASSAM-iso19139.xml +780 -0
  535. data/spec/fixtures/qy162js1748/metadata/geoMetadata.xml +2440 -0
  536. data/spec/fixtures/qy162js1748/temp/CHHATTISGARH-iso19139-fc.xml +1643 -0
  537. data/spec/fixtures/qy162js1748/temp/CHHATTISGARH-iso19139.xml +792 -0
  538. data/spec/fixtures/rd446vf2633/metadata/geoMetadata.xml +1109 -0
  539. data/spec/fixtures/rd446vf2633/temp/NAGALAND-iso19139-fc.xml +379 -0
  540. data/spec/fixtures/rd446vf2633/temp/NAGALAND-iso19139.xml +725 -0
  541. data/spec/fixtures/rf389hf2983/metadata/geoMetadata.xml +3929 -0
  542. data/spec/fixtures/rf389hf2983/temp/CHHATTISGARH_PT-iso19139-fc.xml +3075 -0
  543. data/spec/fixtures/rf389hf2983/temp/CHHATTISGARH_PT-iso19139.xml +849 -0
  544. data/spec/fixtures/rf859ff4582/metadata/geoMetadata.xml +1251 -0
  545. data/spec/fixtures/rf859ff4582/temp/JHARKHAND-iso19139-fc.xml +459 -0
  546. data/spec/fixtures/rf859ff4582/temp/JHARKHAND-iso19139.xml +787 -0
  547. data/spec/fixtures/rh343ds8931/metadata/geoMetadata.xml +2032 -0
  548. data/spec/fixtures/rh343ds8931/temp/BIHAR-iso19139-fc.xml +1174 -0
  549. data/spec/fixtures/rh343ds8931/temp/BIHAR-iso19139.xml +853 -0
  550. data/spec/fixtures/rn815xk8157/metadata/geoMetadata.xml +2417 -0
  551. data/spec/fixtures/rn815xk8157/temp/SIKKIM-iso19139-fc.xml +1563 -0
  552. data/spec/fixtures/rn815xk8157/temp/SIKKIM-iso19139.xml +849 -0
  553. data/spec/fixtures/rq653sz4470/metadata/geoMetadata.xml +2394 -0
  554. data/spec/fixtures/rq653sz4470/temp/CHHATTISGARH-iso19139-fc.xml +1599 -0
  555. data/spec/fixtures/rq653sz4470/temp/CHHATTISGARH-iso19139.xml +790 -0
  556. data/spec/fixtures/rt625ws6022/metadata/geoMetadata.xml +833 -0
  557. data/spec/fixtures/rt625ws6022/temp/GULF_FAIRWAYS-iso19139-fc.xml +144 -0
  558. data/spec/fixtures/rt625ws6022/temp/GULF_FAIRWAYS-iso19139.xml +684 -0
  559. data/spec/fixtures/sc330vf4259/metadata/geoMetadata.xml +1836 -0
  560. data/spec/fixtures/sc330vf4259/temp/JHARKHAND-iso19139-fc.xml +987 -0
  561. data/spec/fixtures/sc330vf4259/temp/JHARKHAND-iso19139.xml +844 -0
  562. data/spec/fixtures/sq479mx3086/metadata/geoMetadata.xml +1043 -0
  563. data/spec/fixtures/sq479mx3086/temp/OFFSH_PLATF-iso19139-fc.xml +365 -0
  564. data/spec/fixtures/sq479mx3086/temp/OFFSH_PLATF-iso19139.xml +673 -0
  565. data/spec/fixtures/sr686bm4098/metadata/geoMetadata.xml +3896 -0
  566. data/spec/fixtures/sr686bm4098/temp/DAMAN_DIU_PT-iso19139-fc.xml +3075 -0
  567. data/spec/fixtures/sr686bm4098/temp/DAMAN_DIU_PT-iso19139.xml +816 -0
  568. data/spec/fixtures/sv303sh5583/metadata/geoMetadata.xml +2395 -0
  569. data/spec/fixtures/sv303sh5583/temp/ARUNACHAL_PRADESH-iso19139-fc.xml +1555 -0
  570. data/spec/fixtures/sv303sh5583/temp/ARUNACHAL_PRADESH-iso19139.xml +835 -0
  571. data/spec/fixtures/sy319nh8520/metadata/geoMetadata.xml +3925 -0
  572. data/spec/fixtures/sy319nh8520/temp/GUJARAT-iso19139-fc.xml +3075 -0
  573. data/spec/fixtures/sy319nh8520/temp/GUJARAT-iso19139.xml +845 -0
  574. data/spec/fixtures/td363vx2792/metadata/geoMetadata.xml +3964 -0
  575. data/spec/fixtures/td363vx2792/temp/HIMACHAL_PRADESH_PT-iso19139-fc.xml +3075 -0
  576. data/spec/fixtures/td363vx2792/temp/HIMACHAL_PRADESH_PT-iso19139.xml +884 -0
  577. data/spec/fixtures/tf374bd2484/metadata/geoMetadata.xml +1464 -0
  578. data/spec/fixtures/tf374bd2484/temp/DISTRICT1951-iso19139-fc.xml +599 -0
  579. data/spec/fixtures/tf374bd2484/temp/DISTRICT1951-iso19139.xml +860 -0
  580. data/spec/fixtures/tj797mj7877/metadata/geoMetadata.xml +2359 -0
  581. data/spec/fixtures/tj797mj7877/temp/LOKSABHA_15-iso19139-fc.xml +1511 -0
  582. data/spec/fixtures/tj797mj7877/temp/LOKSABHA_15-iso19139.xml +843 -0
  583. data/spec/fixtures/tv060wq5179/metadata/geoMetadata.xml +2046 -0
  584. data/spec/fixtures/tv060wq5179/temp/ASSAM-iso19139-fc.xml +1203 -0
  585. data/spec/fixtures/tv060wq5179/temp/ASSAM-iso19139.xml +838 -0
  586. data/spec/fixtures/tv536bn1915/metadata/geoMetadata.xml +2296 -0
  587. data/spec/fixtures/tv536bn1915/temp/ARUNACHAL_PRADESH-iso19139-fc.xml +1687 -0
  588. data/spec/fixtures/tv536bn1915/temp/ARUNACHAL_PRADESH-iso19139.xml +604 -0
  589. data/spec/fixtures/tz359cc2977/metadata/geoMetadata.xml +1842 -0
  590. data/spec/fixtures/tz359cc2977/temp/MANIPUR-iso19139-fc.xml +987 -0
  591. data/spec/fixtures/tz359cc2977/temp/MANIPUR-iso19139.xml +850 -0
  592. data/spec/fixtures/vb525my6511/metadata/geoMetadata.xml +2026 -0
  593. data/spec/fixtures/vb525my6511/temp/UTTARAKHAND-iso19139-fc.xml +1167 -0
  594. data/spec/fixtures/vb525my6511/temp/UTTARAKHAND-iso19139.xml +854 -0
  595. data/spec/fixtures/vh802fs4240/metadata/geoMetadata.xml +2189 -0
  596. data/spec/fixtures/vh802fs4240/temp/PONDICHERRY-iso19139-fc.xml +1343 -0
  597. data/spec/fixtures/vh802fs4240/temp/PONDICHERRY-iso19139.xml +841 -0
  598. data/spec/fixtures/vk120xn2474/metadata/geoMetadata.xml +1125 -0
  599. data/spec/fixtures/vk120xn2474/temp/PLSS_SEC-iso19139-fc.xml +435 -0
  600. data/spec/fixtures/vk120xn2474/temp/PLSS_SEC-iso19139.xml +685 -0
  601. data/spec/fixtures/vn439bc7316/metadata/geoMetadata.xml +1979 -0
  602. data/spec/fixtures/vn439bc7316/temp/KERALA-iso19139-fc.xml +1131 -0
  603. data/spec/fixtures/vn439bc7316/temp/KERALA-iso19139.xml +843 -0
  604. data/spec/fixtures/vq745jk0695/metadata/geoMetadata.xml +1787 -0
  605. data/spec/fixtures/vq745jk0695/temp/MEGHALAYA-iso19139-fc.xml +987 -0
  606. data/spec/fixtures/vq745jk0695/temp/MEGHALAYA-iso19139.xml +795 -0
  607. data/spec/fixtures/vr593vj7147/metadata/geoMetadata.xml +3895 -0
  608. data/spec/fixtures/vr593vj7147/temp/ANDHRA_PRADESH-iso19139-fc.xml +3075 -0
  609. data/spec/fixtures/vr593vj7147/temp/ANDHRA_PRADESH-iso19139.xml +815 -0
  610. data/spec/fixtures/vw911qb5271/metadata/geoMetadata.xml +8557 -0
  611. data/spec/fixtures/vw911qb5271/temp/DISTRICT2001-iso19139-fc.xml +7683 -0
  612. data/spec/fixtures/vw911qb5271/temp/DISTRICT2001-iso19139.xml +869 -0
  613. data/spec/fixtures/wg680pz0365/metadata/geoMetadata.xml +2475 -0
  614. data/spec/fixtures/wg680pz0365/temp/ANDHRA_PRADESH-iso19139-fc.xml +1599 -0
  615. data/spec/fixtures/wg680pz0365/temp/ANDHRA_PRADESH-iso19139.xml +871 -0
  616. data/spec/fixtures/wg761xn1926/metadata/geoMetadata.xml +3941 -0
  617. data/spec/fixtures/wg761xn1926/temp/HARYANA-iso19139-fc.xml +3075 -0
  618. data/spec/fixtures/wg761xn1926/temp/HARYANA-iso19139.xml +861 -0
  619. data/spec/fixtures/wh870qw1934/metadata/geoMetadata.xml +2428 -0
  620. data/spec/fixtures/wh870qw1934/temp/PUNJAB-iso19139-fc.xml +1643 -0
  621. data/spec/fixtures/wh870qw1934/temp/PUNJAB-iso19139.xml +780 -0
  622. data/spec/fixtures/wk775mm4673/metadata/geoMetadata.xml +2458 -0
  623. data/spec/fixtures/wk775mm4673/temp/MAHARASHTRA-iso19139-fc.xml +1599 -0
  624. data/spec/fixtures/wk775mm4673/temp/MAHARASHTRA-iso19139.xml +854 -0
  625. data/spec/fixtures/ws171yz2165/metadata/geoMetadata.xml +3868 -0
  626. data/spec/fixtures/ws171yz2165/temp/ARUNACHAL_PRADESH_PT-iso19139-fc.xml +3075 -0
  627. data/spec/fixtures/ws171yz2165/temp/ARUNACHAL_PRADESH_PT-iso19139.xml +788 -0
  628. data/spec/fixtures/wt473hz7153/metadata/geoMetadata.xml +3898 -0
  629. data/spec/fixtures/wt473hz7153/temp/CHANDIGARH_PT-iso19139-fc.xml +3075 -0
  630. data/spec/fixtures/wt473hz7153/temp/CHANDIGARH_PT-iso19139.xml +818 -0
  631. data/spec/fixtures/ww217dj0457/metadata/geoMetadata.xml +1205 -0
  632. data/spec/fixtures/ww217dj0457/temp/CO2_PIPE-iso19139-fc.xml +471 -0
  633. data/spec/fixtures/ww217dj0457/temp/CO2_PIPE-iso19139.xml +729 -0
  634. data/spec/fixtures/wy875pk9849/metadata/geoMetadata.xml +3173 -0
  635. data/spec/fixtures/wy875pk9849/temp/STATE1961-iso19139-fc.xml +2279 -0
  636. data/spec/fixtures/wy875pk9849/temp/STATE1961-iso19139.xml +889 -0
  637. data/spec/fixtures/xb018tk2042/metadata/geoMetadata.xml +2335 -0
  638. data/spec/fixtures/xb018tk2042/temp/STATE1981-iso19139-fc.xml +1443 -0
  639. data/spec/fixtures/xb018tk2042/temp/STATE1981-iso19139.xml +887 -0
  640. data/spec/fixtures/xg539vw8586/metadata/geoMetadata.xml +2405 -0
  641. data/spec/fixtures/xg539vw8586/temp/ORISSA-iso19139-fc.xml +1599 -0
  642. data/spec/fixtures/xg539vw8586/temp/ORISSA-iso19139.xml +801 -0
  643. data/spec/fixtures/xv475kp4644/metadata/geoMetadata.xml +3871 -0
  644. data/spec/fixtures/xv475kp4644/temp/ASSAM_PT-iso19139-fc.xml +3075 -0
  645. data/spec/fixtures/xv475kp4644/temp/ASSAM_PT-iso19139.xml +791 -0
  646. data/spec/fixtures/xy096gc2959/metadata/geoMetadata.xml +2432 -0
  647. data/spec/fixtures/xy096gc2959/temp/GOA-iso19139-fc.xml +1643 -0
  648. data/spec/fixtures/xy096gc2959/temp/GOA-iso19139.xml +784 -0
  649. data/spec/fixtures/xz518gz3362/metadata/geoMetadata.xml +2434 -0
  650. data/spec/fixtures/xz518gz3362/temp/UTTARAKHAND-iso19139-fc.xml +1643 -0
  651. data/spec/fixtures/xz518gz3362/temp/UTTARAKHAND-iso19139.xml +786 -0
  652. data/spec/fixtures/yh986wy4737/metadata/geoMetadata.xml +1160 -0
  653. data/spec/fixtures/yh986wy4737/temp/NAGALAND-iso19139-fc.xml +384 -0
  654. data/spec/fixtures/yh986wy4737/temp/NAGALAND-iso19139.xml +771 -0
  655. data/spec/fixtures/yn187fq4474/metadata/geoMetadata.xml +2168 -0
  656. data/spec/fixtures/yn187fq4474/temp/KARNATAKA-iso19139-fc.xml +1379 -0
  657. data/spec/fixtures/yn187fq4474/temp/KARNATAKA-iso19139.xml +784 -0
  658. data/spec/fixtures/yn236mw3250/metadata/geoMetadata.xml +2428 -0
  659. data/spec/fixtures/yn236mw3250/temp/TAMILNADU-iso19139-fc.xml +1643 -0
  660. data/spec/fixtures/yn236mw3250/temp/TAMILNADU-iso19139.xml +780 -0
  661. data/spec/fixtures/yz596nz0112/metadata/geoMetadata.xml +2012 -0
  662. data/spec/fixtures/yz596nz0112/temp/WEST_BENGAL-iso19139-fc.xml +1203 -0
  663. data/spec/fixtures/yz596nz0112/temp/WEST_BENGAL-iso19139.xml +804 -0
  664. data/spec/fixtures/zk596gy7380/metadata/geoMetadata.xml +4147 -0
  665. data/spec/fixtures/zk596gy7380/temp/DISTRICT1971-iso19139-fc.xml +3283 -0
  666. data/spec/fixtures/zk596gy7380/temp/DISTRICT1971-iso19139.xml +859 -0
  667. data/spec/fixtures/zn452hh7431/metadata/geoMetadata.xml +2337 -0
  668. data/spec/fixtures/zn452hh7431/temp/RAJASTHAN-iso19139-fc.xml +1505 -0
  669. data/spec/fixtures/zn452hh7431/temp/RAJASTHAN-iso19139.xml +827 -0
  670. data/spec/fixtures/zt093fw6519/metadata/geoMetadata.xml +2380 -0
  671. data/spec/fixtures/zt093fw6519/temp/MIZORAM-iso19139-fc.xml +1643 -0
  672. data/spec/fixtures/zt093fw6519/temp/MIZORAM-iso19139.xml +732 -0
  673. data/spec/fixtures/zv925hd6723/metadata/geoMetadata.xml +1473 -0
  674. data/spec/fixtures/zv925hd6723/temp/OGWELLS-iso19139-fc.xml +759 -0
  675. data/spec/fixtures/zv925hd6723/temp/OGWELLS-iso19139.xml +709 -0
  676. data/spec/fixtures/zy658cr1728/metadata/geoMetadata.xml +3814 -0
  677. data/spec/fixtures/zy658cr1728/temp/ANDAMAAN_NICOBAR_PT-iso19139-fc.xml +3075 -0
  678. data/spec/fixtures/zy658cr1728/temp/ANDAMAAN_NICOBAR_PT-iso19139.xml +734 -0
  679. data/spec/fixtures/zz943vx1492/metadata/geoMetadata.xml +861 -0
  680. data/spec/fixtures/zz943vx1492/temp/BASINS-iso19139-fc.xml +164 -0
  681. data/spec/fixtures/zz943vx1492/temp/BASINS-iso19139.xml +692 -0
  682. data/spec/integration/solr_spec_notready.rb +51 -0
  683. data/spec/test_net_ssh_krb.rb +21 -0
  684. data/spec/unit/gazetteer_spec.rb +100 -0
  685. data/spec/unit/transform_spec.rb +40 -0
  686. data/spec/unit/utils_spec.rb +32 -0
  687. metadata +1491 -0
@@ -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,1816 @@
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_43</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
+
61
+ <!-- A 'dir' option by itself adds any files found in the directory
62
+ to the classpath, this is useful for including all jars in a
63
+ directory.
64
+
65
+ When a 'regex' is specified in addition to a 'dir', only the
66
+ files in that directory which completely match the regex
67
+ (anchored on both ends) will be included.
68
+
69
+ The examples below can be used to load some solr-contribs along
70
+ with their external dependencies.
71
+ -->
72
+ <lib dir="../../../contrib/extraction/lib" regex=".*\.jar" />
73
+ <lib dir="../../../dist/" regex="solr-cell-\d.*\.jar" />
74
+
75
+ <lib dir="../../../contrib/clustering/lib/" regex=".*\.jar" />
76
+ <lib dir="../../../dist/" regex="solr-clustering-\d.*\.jar" />
77
+
78
+ <lib dir="../../../contrib/langid/lib/" regex=".*\.jar" />
79
+ <lib dir="../../../dist/" regex="solr-langid-\d.*\.jar" />
80
+
81
+ <lib dir="../../../contrib/velocity/lib" regex=".*\.jar" />
82
+ <lib dir="../../../dist/" regex="solr-velocity-\d.*\.jar" />
83
+
84
+ <!-- If a 'dir' option (with or without a regex) is used and nothing
85
+ is found that matches, a warning will be logged.
86
+ -->
87
+ <lib dir="/non/existent/dir/yields/warning" />
88
+
89
+ <!-- an exact 'path' can be used instead of a 'dir' to specify a
90
+ specific jar file. This will cause a serious error to be logged
91
+ if it can't be loaded.
92
+ -->
93
+ <!--
94
+ <lib path="../a-jar-that-does-not-exist.jar" />
95
+ -->
96
+
97
+ <!-- Data Directory
98
+
99
+ Used to specify an alternate directory to hold all index data
100
+ other than the default ./data under the Solr home. If
101
+ replication is in use, this should match the replication
102
+ configuration.
103
+ -->
104
+ <dataDir>${solr.data.dir:}</dataDir>
105
+
106
+
107
+ <!-- The DirectoryFactory to use for indexes.
108
+
109
+ solr.StandardDirectoryFactory is filesystem
110
+ based and tries to pick the best implementation for the current
111
+ JVM and platform. solr.NRTCachingDirectoryFactory, the default,
112
+ wraps solr.StandardDirectoryFactory and caches small files in memory
113
+ for better NRT performance.
114
+
115
+ One can force a particular implementation via solr.MMapDirectoryFactory,
116
+ solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.
117
+
118
+ solr.RAMDirectoryFactory is memory based, not
119
+ persistent, and doesn't work with replication.
120
+ -->
121
+ <directoryFactory name="DirectoryFactory"
122
+ class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
123
+
124
+ <!-- The CodecFactory for defining the format of the inverted index.
125
+ The default implementation is SchemaCodecFactory, which is the official Lucene
126
+ index format, but hooks into the schema to provide per-field customization of
127
+ the postings lists and per-document values in the fieldType element
128
+ (postingsFormat/docValuesFormat). Note that most of the alternative implementations
129
+ are experimental, so if you choose to customize the index format, its a good
130
+ idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
131
+ before upgrading to a newer version to avoid unnecessary reindexing.
132
+ -->
133
+ <codecFactory class="solr.SchemaCodecFactory"/>
134
+
135
+ <!-- To enable dynamic schema REST APIs, use the following for <schemaFactory>:
136
+
137
+ <schemaFactory class="ManagedIndexSchemaFactory">
138
+ <bool name="mutable">true</bool>
139
+ <str name="managedSchemaResourceName">managed-schema</str>
140
+ </schemaFactory>
141
+
142
+ When ManagedIndexSchemaFactory is specified, Solr will load the schema from
143
+ he resource named in 'managedSchemaResourceName', rather than from schema.xml.
144
+ Note that the managed schema resource CANNOT be named schema.xml. If the managed
145
+ schema does not exist, Solr will create it after reading schema.xml, then rename
146
+ 'schema.xml' to 'schema.xml.bak'.
147
+
148
+ Do NOT hand edit the managed schema - external modifications will be ignored and
149
+ overwritten as a result of schema modification REST API calls.
150
+
151
+ When ManagedIndexSchemaFactory is specified with mutable = true, schema
152
+ modification REST API calls will be allowed; otherwise, error responses will be
153
+ sent back for these requests.
154
+ -->
155
+ <schemaFactory class="ClassicIndexSchemaFactory"/>
156
+
157
+ <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
158
+ Index Config - These settings control low-level behavior of indexing
159
+ Most example settings here show the default value, but are commented
160
+ out, to more easily see where customizations have been made.
161
+
162
+ Note: This replaces <indexDefaults> and <mainIndex> from older versions
163
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
164
+ <indexConfig>
165
+ <!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
166
+ LimitTokenCountFilterFactory in your fieldType definition. E.g.
167
+ <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
168
+ -->
169
+ <!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
170
+ <!-- <writeLockTimeout>1000</writeLockTimeout> -->
171
+
172
+ <!-- The maximum number of simultaneous threads that may be
173
+ indexing documents at once in IndexWriter; if more than this
174
+ many threads arrive they will wait for others to finish.
175
+ Default in Solr/Lucene is 8. -->
176
+ <!-- <maxIndexingThreads>8</maxIndexingThreads> -->
177
+
178
+ <!-- Expert: Enabling compound file will use less files for the index,
179
+ using fewer file descriptors on the expense of performance decrease.
180
+ Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
181
+ <!-- <useCompoundFile>false</useCompoundFile> -->
182
+
183
+ <!-- ramBufferSizeMB sets the amount of RAM that may be used by Lucene
184
+ indexing for buffering added documents and deletions before they are
185
+ flushed to the Directory.
186
+ maxBufferedDocs sets a limit on the number of documents buffered
187
+ before flushing.
188
+ If both ramBufferSizeMB and maxBufferedDocs is set, then
189
+ Lucene will flush based on whichever limit is hit first. -->
190
+ <!-- <ramBufferSizeMB>100</ramBufferSizeMB> -->
191
+ <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
192
+
193
+ <!-- Expert: Merge Policy
194
+ The Merge Policy in Lucene controls how merging of segments is done.
195
+ The default since Solr/Lucene 3.3 is TieredMergePolicy.
196
+ The default since Lucene 2.3 was the LogByteSizeMergePolicy,
197
+ Even older versions of Lucene used LogDocMergePolicy.
198
+ -->
199
+ <!--
200
+ <mergePolicy class="org.apache.lucene.index.TieredMergePolicy">
201
+ <int name="maxMergeAtOnce">10</int>
202
+ <int name="segmentsPerTier">10</int>
203
+ </mergePolicy>
204
+ -->
205
+
206
+ <!-- Merge Factor
207
+ The merge factor controls how many segments will get merged at a time.
208
+ For TieredMergePolicy, mergeFactor is a convenience parameter which
209
+ will set both MaxMergeAtOnce and SegmentsPerTier at once.
210
+ For LogByteSizeMergePolicy, mergeFactor decides how many new segments
211
+ will be allowed before they are merged into one.
212
+ Default is 10 for both merge policies.
213
+ -->
214
+ <!--
215
+ <mergeFactor>10</mergeFactor>
216
+ -->
217
+
218
+ <!-- Expert: Merge Scheduler
219
+ The Merge Scheduler in Lucene controls how merges are
220
+ performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
221
+ can perform merges in the background using separate threads.
222
+ The SerialMergeScheduler (Lucene 2.2 default) does not.
223
+ -->
224
+ <!--
225
+ <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
226
+ -->
227
+
228
+ <!-- LockFactory
229
+
230
+ This option specifies which Lucene LockFactory implementation
231
+ to use.
232
+
233
+ single = SingleInstanceLockFactory - suggested for a
234
+ read-only index or when there is no possibility of
235
+ another process trying to modify the index.
236
+ native = NativeFSLockFactory - uses OS native file locking.
237
+ Do not use when multiple solr webapps in the same
238
+ JVM are attempting to share a single index.
239
+ simple = SimpleFSLockFactory - uses a plain file for locking
240
+
241
+ Defaults: 'native' is default for Solr3.6 and later, otherwise
242
+ 'simple' is the default
243
+
244
+ More details on the nuances of each LockFactory...
245
+ http://wiki.apache.org/lucene-java/AvailableLockFactories
246
+ -->
247
+ <lockType>${solr.lock.type:native}</lockType>
248
+
249
+ <!-- Unlock On Startup
250
+
251
+ If true, unlock any held write or commit locks on startup.
252
+ This defeats the locking mechanism that allows multiple
253
+ processes to safely access a lucene index, and should be used
254
+ with care. Default is "false".
255
+
256
+ This is not needed if lock type is 'single'
257
+ -->
258
+ <!--
259
+ <unlockOnStartup>false</unlockOnStartup>
260
+ -->
261
+
262
+ <!-- Expert: Controls how often Lucene loads terms into memory
263
+ Default is 128 and is likely good for most everyone.
264
+ -->
265
+ <!-- <termIndexInterval>128</termIndexInterval> -->
266
+
267
+ <!-- If true, IndexReaders will be reopened (often more efficient)
268
+ instead of closed and then opened. Default: true
269
+ -->
270
+ <!--
271
+ <reopenReaders>true</reopenReaders>
272
+ -->
273
+
274
+ <!-- Commit Deletion Policy
275
+ Custom deletion policies can be specified here. The class must
276
+ implement org.apache.lucene.index.IndexDeletionPolicy.
277
+
278
+ The default Solr IndexDeletionPolicy implementation supports
279
+ deleting index commit points on number of commits, age of
280
+ commit point and optimized status.
281
+
282
+ The latest commit point should always be preserved regardless
283
+ of the criteria.
284
+ -->
285
+ <!--
286
+ <deletionPolicy class="solr.SolrDeletionPolicy">
287
+ -->
288
+ <!-- The number of commit points to be kept -->
289
+ <!-- <str name="maxCommitsToKeep">1</str> -->
290
+ <!-- The number of optimized commit points to be kept -->
291
+ <!-- <str name="maxOptimizedCommitsToKeep">0</str> -->
292
+ <!--
293
+ Delete all commit points once they have reached the given age.
294
+ Supports DateMathParser syntax e.g.
295
+ -->
296
+ <!--
297
+ <str name="maxCommitAge">30MINUTES</str>
298
+ <str name="maxCommitAge">1DAY</str>
299
+ -->
300
+ <!--
301
+ </deletionPolicy>
302
+ -->
303
+
304
+ <!-- Lucene Infostream
305
+
306
+ To aid in advanced debugging, Lucene provides an "InfoStream"
307
+ of detailed information when indexing.
308
+
309
+ Setting The value to true will instruct the underlying Lucene
310
+ IndexWriter to write its debugging info the specified file
311
+ -->
312
+ <!-- <infoStream file="INFOSTREAM.txt">false</infoStream> -->
313
+ </indexConfig>
314
+
315
+
316
+ <!-- JMX
317
+
318
+ This example enables JMX if and only if an existing MBeanServer
319
+ is found, use this if you want to configure JMX through JVM
320
+ parameters. Remove this to disable exposing Solr configuration
321
+ and statistics to JMX.
322
+
323
+ For more details see http://wiki.apache.org/solr/SolrJmx
324
+ -->
325
+ <jmx />
326
+ <!-- If you want to connect to a particular server, specify the
327
+ agentId
328
+ -->
329
+ <!-- <jmx agentId="myAgent" /> -->
330
+ <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
331
+ <!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
332
+ -->
333
+
334
+ <!-- The default high-performance update handler -->
335
+ <updateHandler class="solr.DirectUpdateHandler2">
336
+
337
+ <!-- Enables a transaction log, used for real-time get, durability, and
338
+ and solr cloud replica recovery. The log can grow as big as
339
+ uncommitted changes to the index, so use of a hard autoCommit
340
+ is recommended (see below).
341
+ "dir" - the target directory for transaction logs, defaults to the
342
+ solr data directory. -->
343
+ <updateLog>
344
+ <str name="dir">${solr.ulog.dir:}</str>
345
+ </updateLog>
346
+
347
+ <!-- AutoCommit
348
+
349
+ Perform a hard commit automatically under certain conditions.
350
+ Instead of enabling autoCommit, consider using "commitWithin"
351
+ when adding documents.
352
+
353
+ http://wiki.apache.org/solr/UpdateXmlMessages
354
+
355
+ maxDocs - Maximum number of documents to add since the last
356
+ commit before automatically triggering a new commit.
357
+
358
+ maxTime - Maximum amount of time in ms that is allowed to pass
359
+ since a document was added before automatically
360
+ triggering a new commit.
361
+ openSearcher - if false, the commit causes recent index changes
362
+ to be flushed to stable storage, but does not cause a new
363
+ searcher to be opened to make those changes visible.
364
+
365
+ If the updateLog is enabled, then it's highly recommended to
366
+ have some sort of hard autoCommit to limit the log size.
367
+ -->
368
+ <autoCommit>
369
+ <maxTime>15000</maxTime>
370
+ <openSearcher>false</openSearcher>
371
+ </autoCommit>
372
+
373
+ <!-- softAutoCommit is like autoCommit except it causes a
374
+ 'soft' commit which only ensures that changes are visible
375
+ but does not ensure that data is synced to disk. This is
376
+ faster and more near-realtime friendly than a hard commit.
377
+ -->
378
+ <!--
379
+ <autoSoftCommit>
380
+ <maxTime>1000</maxTime>
381
+ </autoSoftCommit>
382
+ -->
383
+
384
+ <!-- Update Related Event Listeners
385
+
386
+ Various IndexWriter related events can trigger Listeners to
387
+ take actions.
388
+
389
+ postCommit - fired after every commit or optimize command
390
+ postOptimize - fired after every optimize command
391
+ -->
392
+ <!-- The RunExecutableListener executes an external command from a
393
+ hook such as postCommit or postOptimize.
394
+
395
+ exe - the name of the executable to run
396
+ dir - dir to use as the current working directory. (default=".")
397
+ wait - the calling thread waits until the executable returns.
398
+ (default="true")
399
+ args - the arguments to pass to the program. (default is none)
400
+ env - environment variables to set. (default is none)
401
+ -->
402
+ <!-- This example shows how RunExecutableListener could be used
403
+ with the script based replication...
404
+ http://wiki.apache.org/solr/CollectionDistribution
405
+ -->
406
+ <!--
407
+ <listener event="postCommit" class="solr.RunExecutableListener">
408
+ <str name="exe">solr/bin/snapshooter</str>
409
+ <str name="dir">.</str>
410
+ <bool name="wait">true</bool>
411
+ <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
412
+ <arr name="env"> <str>MYVAR=val1</str> </arr>
413
+ </listener>
414
+ -->
415
+
416
+ </updateHandler>
417
+
418
+ <!-- IndexReaderFactory
419
+
420
+ Use the following format to specify a custom IndexReaderFactory,
421
+ which allows for alternate IndexReader implementations.
422
+
423
+ ** Experimental Feature **
424
+
425
+ Please note - Using a custom IndexReaderFactory may prevent
426
+ certain other features from working. The API to
427
+ IndexReaderFactory may change without warning or may even be
428
+ removed from future releases if the problems cannot be
429
+ resolved.
430
+
431
+
432
+ ** Features that may not work with custom IndexReaderFactory **
433
+
434
+ The ReplicationHandler assumes a disk-resident index. Using a
435
+ custom IndexReader implementation may cause incompatibility
436
+ with ReplicationHandler and may cause replication to not work
437
+ correctly. See SOLR-1366 for details.
438
+
439
+ -->
440
+ <!--
441
+ <indexReaderFactory name="IndexReaderFactory" class="package.class">
442
+ <str name="someArg">Some Value</str>
443
+ </indexReaderFactory >
444
+ -->
445
+ <!-- By explicitly declaring the Factory, the termIndexDivisor can
446
+ be specified.
447
+ -->
448
+ <!--
449
+ <indexReaderFactory name="IndexReaderFactory"
450
+ class="solr.StandardIndexReaderFactory">
451
+ <int name="setTermIndexDivisor">12</int>
452
+ </indexReaderFactory >
453
+ -->
454
+
455
+ <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
456
+ Query section - these settings control query time things like caches
457
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
458
+ <query>
459
+ <!-- Max Boolean Clauses
460
+
461
+ Maximum number of clauses in each BooleanQuery, an exception
462
+ is thrown if exceeded.
463
+
464
+ ** WARNING **
465
+
466
+ This option actually modifies a global Lucene property that
467
+ will affect all SolrCores. If multiple solrconfig.xml files
468
+ disagree on this property, the value at any given moment will
469
+ be based on the last SolrCore to be initialized.
470
+
471
+ -->
472
+ <maxBooleanClauses>1024</maxBooleanClauses>
473
+
474
+
475
+ <!-- Solr Internal Query Caches
476
+
477
+ There are two implementations of cache available for Solr,
478
+ LRUCache, based on a synchronized LinkedHashMap, and
479
+ FastLRUCache, based on a ConcurrentHashMap.
480
+
481
+ FastLRUCache has faster gets and slower puts in single
482
+ threaded operation and thus is generally faster than LRUCache
483
+ when the hit ratio of the cache is high (> 75%), and may be
484
+ faster under other scenarios on multi-cpu systems.
485
+ -->
486
+
487
+ <!-- Filter Cache
488
+
489
+ Cache used by SolrIndexSearcher for filters (DocSets),
490
+ unordered sets of *all* documents that match a query. When a
491
+ new searcher is opened, its caches may be prepopulated or
492
+ "autowarmed" using data from caches in the old searcher.
493
+ autowarmCount is the number of items to prepopulate. For
494
+ LRUCache, the autowarmed items will be the most recently
495
+ accessed items.
496
+
497
+ Parameters:
498
+ class - the SolrCache implementation LRUCache or
499
+ (LRUCache or FastLRUCache)
500
+ size - the maximum number of entries in the cache
501
+ initialSize - the initial capacity (number of entries) of
502
+ the cache. (see java.util.HashMap)
503
+ autowarmCount - the number of entries to prepopulate from
504
+ and old cache.
505
+ -->
506
+ <filterCache class="solr.FastLRUCache"
507
+ size="512"
508
+ initialSize="512"
509
+ autowarmCount="0"/>
510
+
511
+ <!-- Query Result Cache
512
+
513
+ Caches results of searches - ordered lists of document ids
514
+ (DocList) based on a query, a sort, and the range of documents requested.
515
+ -->
516
+ <queryResultCache class="solr.LRUCache"
517
+ size="512"
518
+ initialSize="512"
519
+ autowarmCount="0"/>
520
+
521
+ <!-- Document Cache
522
+
523
+ Caches Lucene Document objects (the stored fields for each
524
+ document). Since Lucene internal document ids are transient,
525
+ this cache will not be autowarmed.
526
+ -->
527
+ <documentCache class="solr.LRUCache"
528
+ size="512"
529
+ initialSize="512"
530
+ autowarmCount="0"/>
531
+
532
+ <!-- Field Value Cache
533
+
534
+ Cache used to hold field values that are quickly accessible
535
+ by document id. The fieldValueCache is created by default
536
+ even if not configured here.
537
+ -->
538
+ <!--
539
+ <fieldValueCache class="solr.FastLRUCache"
540
+ size="512"
541
+ autowarmCount="128"
542
+ showItems="32" />
543
+ -->
544
+
545
+ <!-- Custom Cache
546
+
547
+ Example of a generic cache. These caches may be accessed by
548
+ name through SolrIndexSearcher.getCache(),cacheLookup(), and
549
+ cacheInsert(). The purpose is to enable easy caching of
550
+ user/application level data. The regenerator argument should
551
+ be specified as an implementation of solr.CacheRegenerator
552
+ if autowarming is desired.
553
+ -->
554
+ <!--
555
+ <cache name="myUserCache"
556
+ class="solr.LRUCache"
557
+ size="4096"
558
+ initialSize="1024"
559
+ autowarmCount="1024"
560
+ regenerator="com.mycompany.MyRegenerator"
561
+ />
562
+ -->
563
+
564
+
565
+ <!-- Lazy Field Loading
566
+
567
+ If true, stored fields that are not requested will be loaded
568
+ lazily. This can result in a significant speed improvement
569
+ if the usual case is to not load all stored fields,
570
+ especially if the skipped fields are large compressed text
571
+ fields.
572
+ -->
573
+ <enableLazyFieldLoading>true</enableLazyFieldLoading>
574
+
575
+ <!-- Use Filter For Sorted Query
576
+
577
+ A possible optimization that attempts to use a filter to
578
+ satisfy a search. If the requested sort does not include
579
+ score, then the filterCache will be checked for a filter
580
+ matching the query. If found, the filter will be used as the
581
+ source of document ids, and then the sort will be applied to
582
+ that.
583
+
584
+ For most situations, this will not be useful unless you
585
+ frequently get the same search repeatedly with different sort
586
+ options, and none of them ever use "score"
587
+ -->
588
+ <!--
589
+ <useFilterForSortedQuery>true</useFilterForSortedQuery>
590
+ -->
591
+
592
+ <!-- Result Window Size
593
+
594
+ An optimization for use with the queryResultCache. When a search
595
+ is requested, a superset of the requested number of document ids
596
+ are collected. For example, if a search for a particular query
597
+ requests matching documents 10 through 19, and queryWindowSize is 50,
598
+ then documents 0 through 49 will be collected and cached. Any further
599
+ requests in that range can be satisfied via the cache.
600
+ -->
601
+ <queryResultWindowSize>20</queryResultWindowSize>
602
+
603
+ <!-- Maximum number of documents to cache for any entry in the
604
+ queryResultCache.
605
+ -->
606
+ <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
607
+
608
+ <!-- Query Related Event Listeners
609
+
610
+ Various IndexSearcher related events can trigger Listeners to
611
+ take actions.
612
+
613
+ newSearcher - fired whenever a new searcher is being prepared
614
+ and there is a current searcher handling requests (aka
615
+ registered). It can be used to prime certain caches to
616
+ prevent long request times for certain requests.
617
+
618
+ firstSearcher - fired whenever a new searcher is being
619
+ prepared but there is no current registered searcher to handle
620
+ requests or to gain autowarming data from.
621
+
622
+
623
+ -->
624
+ <!-- QuerySenderListener takes an array of NamedList and executes a
625
+ local query request for each NamedList in sequence.
626
+ -->
627
+ <listener event="newSearcher" class="solr.QuerySenderListener">
628
+ <arr name="queries">
629
+ <!--
630
+ <lst><str name="q">solr</str><str name="sort">price asc</str></lst>
631
+ <lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
632
+ -->
633
+ </arr>
634
+ </listener>
635
+ <listener event="firstSearcher" class="solr.QuerySenderListener">
636
+ <arr name="queries">
637
+ <lst>
638
+ <str name="q">static firstSearcher warming in solrconfig.xml</str>
639
+ </lst>
640
+ </arr>
641
+ </listener>
642
+
643
+ <!-- Use Cold Searcher
644
+
645
+ If a search request comes in and there is no current
646
+ registered searcher, then immediately register the still
647
+ warming searcher and use it. If "false" then all requests
648
+ will block until the first searcher is done warming.
649
+ -->
650
+ <useColdSearcher>false</useColdSearcher>
651
+
652
+ <!-- Max Warming Searchers
653
+
654
+ Maximum number of searchers that may be warming in the
655
+ background concurrently. An error is returned if this limit
656
+ is exceeded.
657
+
658
+ Recommend values of 1-2 for read-only slaves, higher for
659
+ masters w/o cache warming.
660
+ -->
661
+ <maxWarmingSearchers>2</maxWarmingSearchers>
662
+
663
+ </query>
664
+
665
+
666
+ <!-- Request Dispatcher
667
+
668
+ This section contains instructions for how the SolrDispatchFilter
669
+ should behave when processing requests for this SolrCore.
670
+
671
+ handleSelect is a legacy option that affects the behavior of requests
672
+ such as /select?qt=XXX
673
+
674
+ handleSelect="true" will cause the SolrDispatchFilter to process
675
+ the request and dispatch the query to a handler specified by the
676
+ "qt" param, assuming "/select" isn't already registered.
677
+
678
+ handleSelect="false" will cause the SolrDispatchFilter to
679
+ ignore "/select" requests, resulting in a 404 unless a handler
680
+ is explicitly registered with the name "/select"
681
+
682
+ handleSelect="true" is not recommended for new users, but is the default
683
+ for backwards compatibility
684
+ -->
685
+ <requestDispatcher handleSelect="false" >
686
+ <!-- Request Parsing
687
+
688
+ These settings indicate how Solr Requests may be parsed, and
689
+ what restrictions may be placed on the ContentStreams from
690
+ those requests
691
+
692
+ enableRemoteStreaming - enables use of the stream.file
693
+ and stream.url parameters for specifying remote streams.
694
+
695
+ multipartUploadLimitInKB - specifies the max size (in KiB) of
696
+ Multipart File Uploads that Solr will allow in a Request.
697
+
698
+ formdataUploadLimitInKB - specifies the max size (in KiB) of
699
+ form data (application/x-www-form-urlencoded) sent via
700
+ POST. You can use POST to pass request parameters not
701
+ fitting into the URL.
702
+
703
+ *** WARNING ***
704
+ The settings below authorize Solr to fetch remote files, You
705
+ should make sure your system has some authentication before
706
+ using enableRemoteStreaming="true"
707
+
708
+ -->
709
+ <requestParsers enableRemoteStreaming="true"
710
+ multipartUploadLimitInKB="2048000"
711
+ formdataUploadLimitInKB="2048"/>
712
+
713
+ <!-- HTTP Caching
714
+
715
+ Set HTTP caching related parameters (for proxy caches and clients).
716
+
717
+ The options below instruct Solr not to output any HTTP Caching
718
+ related headers
719
+ -->
720
+ <httpCaching never304="true" />
721
+ <!-- If you include a <cacheControl> directive, it will be used to
722
+ generate a Cache-Control header (as well as an Expires header
723
+ if the value contains "max-age=")
724
+
725
+ By default, no Cache-Control header is generated.
726
+
727
+ You can use the <cacheControl> option even if you have set
728
+ never304="true"
729
+ -->
730
+ <!--
731
+ <httpCaching never304="true" >
732
+ <cacheControl>max-age=30, public</cacheControl>
733
+ </httpCaching>
734
+ -->
735
+ <!-- To enable Solr to respond with automatically generated HTTP
736
+ Caching headers, and to response to Cache Validation requests
737
+ correctly, set the value of never304="false"
738
+
739
+ This will cause Solr to generate Last-Modified and ETag
740
+ headers based on the properties of the Index.
741
+
742
+ The following options can also be specified to affect the
743
+ values of these headers...
744
+
745
+ lastModFrom - the default value is "openTime" which means the
746
+ Last-Modified value (and validation against If-Modified-Since
747
+ requests) will all be relative to when the current Searcher
748
+ was opened. You can change it to lastModFrom="dirLastMod" if
749
+ you want the value to exactly correspond to when the physical
750
+ index was last modified.
751
+
752
+ etagSeed="..." is an option you can change to force the ETag
753
+ header (and validation against If-None-Match requests) to be
754
+ different even if the index has not changed (ie: when making
755
+ significant changes to your config file)
756
+
757
+ (lastModifiedFrom and etagSeed are both ignored if you use
758
+ the never304="true" option)
759
+ -->
760
+ <!--
761
+ <httpCaching lastModifiedFrom="openTime"
762
+ etagSeed="Solr">
763
+ <cacheControl>max-age=30, public</cacheControl>
764
+ </httpCaching>
765
+ -->
766
+ </requestDispatcher>
767
+
768
+ <!-- Request Handlers
769
+
770
+ http://wiki.apache.org/solr/SolrRequestHandler
771
+
772
+ Incoming queries will be dispatched to a specific handler by name
773
+ based on the path specified in the request.
774
+
775
+ Legacy behavior: If the request path uses "/select" but no Request
776
+ Handler has that name, and if handleSelect="true" has been specified in
777
+ the requestDispatcher, then the Request Handler is dispatched based on
778
+ the qt parameter. Handlers without a leading '/' are accessed this way
779
+ like so: http://host/app/[core/]select?qt=name If no qt is
780
+ given, then the requestHandler that declares default="true" will be
781
+ used or the one named "standard".
782
+
783
+ If a Request Handler is declared with startup="lazy", then it will
784
+ not be initialized until the first request that uses it.
785
+
786
+ -->
787
+ <!-- SearchHandler
788
+
789
+ http://wiki.apache.org/solr/SearchHandler
790
+
791
+ For processing Search Queries, the primary Request Handler
792
+ provided with Solr is "SearchHandler" It delegates to a sequent
793
+ of SearchComponents (see below) and supports distributed
794
+ queries across multiple shards
795
+ -->
796
+ <requestHandler name="/select" class="solr.SearchHandler">
797
+ <!-- default values for query parameters can be specified, these
798
+ will be overridden by parameters in the request
799
+ -->
800
+ <lst name="defaults">
801
+ <str name="echoParams">explicit</str>
802
+ <int name="rows">10</int>
803
+ <str name="df">text</str>
804
+ </lst>
805
+ <!-- In addition to defaults, "appends" params can be specified
806
+ to identify values which should be appended to the list of
807
+ multi-val params from the query (or the existing "defaults").
808
+ -->
809
+ <!-- In this example, the param "fq=instock:true" would be appended to
810
+ any query time fq params the user may specify, as a mechanism for
811
+ partitioning the index, independent of any user selected filtering
812
+ that may also be desired (perhaps as a result of faceted searching).
813
+
814
+ NOTE: there is *absolutely* nothing a client can do to prevent these
815
+ "appends" values from being used, so don't use this mechanism
816
+ unless you are sure you always want it.
817
+ -->
818
+ <!--
819
+ <lst name="appends">
820
+ <str name="fq">inStock:true</str>
821
+ </lst>
822
+ -->
823
+ <!-- "invariants" are a way of letting the Solr maintainer lock down
824
+ the options available to Solr clients. Any params values
825
+ specified here are used regardless of what values may be specified
826
+ in either the query, the "defaults", or the "appends" params.
827
+
828
+ In this example, the facet.field and facet.query params would
829
+ be fixed, limiting the facets clients can use. Faceting is
830
+ not turned on by default - but if the client does specify
831
+ facet=true in the request, these are the only facets they
832
+ will be able to see counts for; regardless of what other
833
+ facet.field or facet.query params they may specify.
834
+
835
+ NOTE: there is *absolutely* nothing a client can do to prevent these
836
+ "invariants" values from being used, so don't use this mechanism
837
+ unless you are sure you always want it.
838
+ -->
839
+ <!--
840
+ <lst name="invariants">
841
+ <str name="facet.field">cat</str>
842
+ <str name="facet.field">manu_exact</str>
843
+ <str name="facet.query">price:[* TO 500]</str>
844
+ <str name="facet.query">price:[500 TO *]</str>
845
+ </lst>
846
+ -->
847
+ <!-- If the default list of SearchComponents is not desired, that
848
+ list can either be overridden completely, or components can be
849
+ prepended or appended to the default list. (see below)
850
+ -->
851
+ <!--
852
+ <arr name="components">
853
+ <str>nameOfCustomComponent1</str>
854
+ <str>nameOfCustomComponent2</str>
855
+ </arr>
856
+ -->
857
+ </requestHandler>
858
+
859
+ <!-- A request handler that returns indented JSON by default -->
860
+ <requestHandler name="/query" class="solr.SearchHandler">
861
+ <lst name="defaults">
862
+ <str name="echoParams">explicit</str>
863
+ <str name="wt">json</str>
864
+ <str name="indent">true</str>
865
+ <str name="df">text</str>
866
+ </lst>
867
+ </requestHandler>
868
+
869
+
870
+ <!-- realtime get handler, guaranteed to return the latest stored fields of
871
+ any document, without the need to commit or open a new searcher. The
872
+ current implementation relies on the updateLog feature being enabled. -->
873
+ <requestHandler name="/get" class="solr.RealTimeGetHandler">
874
+ <lst name="defaults">
875
+ <str name="omitHeader">true</str>
876
+ <str name="wt">json</str>
877
+ <str name="indent">true</str>
878
+ </lst>
879
+ </requestHandler>
880
+
881
+
882
+ <!-- A Robust Example
883
+
884
+ This example SearchHandler declaration shows off usage of the
885
+ SearchHandler with many defaults declared
886
+
887
+ Note that multiple instances of the same Request Handler
888
+ (SearchHandler) can be registered multiple times with different
889
+ names (and different init parameters)
890
+ -->
891
+ <requestHandler name="/browse" class="solr.SearchHandler">
892
+ <lst name="defaults">
893
+ <str name="echoParams">explicit</str>
894
+
895
+ <!-- VelocityResponseWriter settings -->
896
+ <str name="wt">velocity</str>
897
+ <str name="v.template">browse</str>
898
+ <str name="v.layout">layout</str>
899
+ <str name="title">Solritas</str>
900
+
901
+ <!-- Query settings -->
902
+ <str name="defType">edismax</str>
903
+ <str name="qf">
904
+ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
905
+ title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
906
+ </str>
907
+ <str name="df">text</str>
908
+ <str name="mm">100%</str>
909
+ <str name="q.alt">*:*</str>
910
+ <str name="rows">10</str>
911
+ <str name="fl">*,score</str>
912
+
913
+ <str name="mlt.qf">
914
+ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
915
+ title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
916
+ </str>
917
+ <str name="mlt.fl">text,features,name,sku,id,manu,cat,title,description,keywords,author,resourcename</str>
918
+ <int name="mlt.count">3</int>
919
+
920
+ <!-- Faceting defaults -->
921
+ <str name="facet">on</str>
922
+ <str name="facet.field">cat</str>
923
+ <str name="facet.field">manu_exact</str>
924
+ <str name="facet.field">content_type</str>
925
+ <str name="facet.field">author_s</str>
926
+ <str name="facet.query">ipod</str>
927
+ <str name="facet.query">GB</str>
928
+ <str name="facet.mincount">1</str>
929
+ <str name="facet.pivot">cat,inStock</str>
930
+ <str name="facet.range.other">after</str>
931
+ <str name="facet.range">price</str>
932
+ <int name="f.price.facet.range.start">0</int>
933
+ <int name="f.price.facet.range.end">600</int>
934
+ <int name="f.price.facet.range.gap">50</int>
935
+ <str name="facet.range">popularity</str>
936
+ <int name="f.popularity.facet.range.start">0</int>
937
+ <int name="f.popularity.facet.range.end">10</int>
938
+ <int name="f.popularity.facet.range.gap">3</int>
939
+ <str name="facet.range">manufacturedate_dt</str>
940
+ <str name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
941
+ <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
942
+ <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
943
+ <str name="f.manufacturedate_dt.facet.range.other">before</str>
944
+ <str name="f.manufacturedate_dt.facet.range.other">after</str>
945
+
946
+ <!-- Highlighting defaults -->
947
+ <str name="hl">on</str>
948
+ <str name="hl.fl">content features title name</str>
949
+ <str name="hl.encoder">html</str>
950
+ <str name="hl.simple.pre">&lt;b&gt;</str>
951
+ <str name="hl.simple.post">&lt;/b&gt;</str>
952
+ <str name="f.title.hl.fragsize">0</str>
953
+ <str name="f.title.hl.alternateField">title</str>
954
+ <str name="f.name.hl.fragsize">0</str>
955
+ <str name="f.name.hl.alternateField">name</str>
956
+ <str name="f.content.hl.snippets">3</str>
957
+ <str name="f.content.hl.fragsize">200</str>
958
+ <str name="f.content.hl.alternateField">content</str>
959
+ <str name="f.content.hl.maxAlternateFieldLength">750</str>
960
+
961
+ <!-- Spell checking defaults -->
962
+ <str name="spellcheck">on</str>
963
+ <str name="spellcheck.extendedResults">false</str>
964
+ <str name="spellcheck.count">5</str>
965
+ <str name="spellcheck.alternativeTermCount">2</str>
966
+ <str name="spellcheck.maxResultsForSuggest">5</str>
967
+ <str name="spellcheck.collate">true</str>
968
+ <str name="spellcheck.collateExtendedResults">true</str>
969
+ <str name="spellcheck.maxCollationTries">5</str>
970
+ <str name="spellcheck.maxCollations">3</str>
971
+ </lst>
972
+
973
+ <!-- append spellchecking to our list of components -->
974
+ <arr name="last-components">
975
+ <str>spellcheck</str>
976
+ </arr>
977
+ </requestHandler>
978
+
979
+
980
+ <!-- Update Request Handler.
981
+
982
+ http://wiki.apache.org/solr/UpdateXmlMessages
983
+
984
+ The canonical Request Handler for Modifying the Index through
985
+ commands specified using XML, JSON, CSV, or JAVABIN
986
+
987
+ Note: Since solr1.1 requestHandlers requires a valid content
988
+ type header if posted in the body. For example, curl now
989
+ requires: -H 'Content-type:text/xml; charset=utf-8'
990
+
991
+ To override the request content type and force a specific
992
+ Content-type, use the request parameter:
993
+ ?update.contentType=text/csv
994
+
995
+ This handler will pick a response format to match the input
996
+ if the 'wt' parameter is not explicit
997
+ -->
998
+ <requestHandler name="/update" class="solr.UpdateRequestHandler">
999
+ <!-- See below for information on defining
1000
+ updateRequestProcessorChains that can be used by name
1001
+ on each Update Request
1002
+ -->
1003
+ <!--
1004
+ <lst name="defaults">
1005
+ <str name="update.chain">dedupe</str>
1006
+ </lst>
1007
+ -->
1008
+ </requestHandler>
1009
+
1010
+ <!-- for back compat with clients using /update/json and /update/csv -->
1011
+ <requestHandler name="/update/json" class="solr.JsonUpdateRequestHandler">
1012
+ <lst name="defaults">
1013
+ <str name="stream.contentType">application/json</str>
1014
+ </lst>
1015
+ </requestHandler>
1016
+ <requestHandler name="/update/csv" class="solr.CSVRequestHandler">
1017
+ <lst name="defaults">
1018
+ <str name="stream.contentType">application/csv</str>
1019
+ </lst>
1020
+ </requestHandler>
1021
+
1022
+ <!-- Solr Cell Update Request Handler
1023
+
1024
+ http://wiki.apache.org/solr/ExtractingRequestHandler
1025
+
1026
+ -->
1027
+ <requestHandler name="/update/extract"
1028
+ startup="lazy"
1029
+ class="solr.extraction.ExtractingRequestHandler" >
1030
+ <lst name="defaults">
1031
+ <str name="lowernames">true</str>
1032
+ <str name="uprefix">ignored_</str>
1033
+
1034
+ <!-- capture link hrefs but ignore div attributes -->
1035
+ <str name="captureAttr">true</str>
1036
+ <str name="fmap.a">links</str>
1037
+ <str name="fmap.div">ignored_</str>
1038
+ </lst>
1039
+ </requestHandler>
1040
+
1041
+
1042
+ <!-- Field Analysis Request Handler
1043
+
1044
+ RequestHandler that provides much the same functionality as
1045
+ analysis.jsp. Provides the ability to specify multiple field
1046
+ types and field names in the same request and outputs
1047
+ index-time and query-time analysis for each of them.
1048
+
1049
+ Request parameters are:
1050
+ analysis.fieldname - field name whose analyzers are to be used
1051
+
1052
+ analysis.fieldtype - field type whose analyzers are to be used
1053
+ analysis.fieldvalue - text for index-time analysis
1054
+ q (or analysis.q) - text for query time analysis
1055
+ analysis.showmatch (true|false) - When set to true and when
1056
+ query analysis is performed, the produced tokens of the
1057
+ field value analysis will be marked as "matched" for every
1058
+ token that is produces by the query analysis
1059
+ -->
1060
+ <requestHandler name="/analysis/field"
1061
+ startup="lazy"
1062
+ class="solr.FieldAnalysisRequestHandler" />
1063
+
1064
+
1065
+ <!-- Document Analysis Handler
1066
+
1067
+ http://wiki.apache.org/solr/AnalysisRequestHandler
1068
+
1069
+ An analysis handler that provides a breakdown of the analysis
1070
+ process of provided documents. This handler expects a (single)
1071
+ content stream with the following format:
1072
+
1073
+ <docs>
1074
+ <doc>
1075
+ <field name="id">1</field>
1076
+ <field name="name">The Name</field>
1077
+ <field name="text">The Text Value</field>
1078
+ </doc>
1079
+ <doc>...</doc>
1080
+ <doc>...</doc>
1081
+ ...
1082
+ </docs>
1083
+
1084
+ Note: Each document must contain a field which serves as the
1085
+ unique key. This key is used in the returned response to associate
1086
+ an analysis breakdown to the analyzed document.
1087
+
1088
+ Like the FieldAnalysisRequestHandler, this handler also supports
1089
+ query analysis by sending either an "analysis.query" or "q"
1090
+ request parameter that holds the query text to be analyzed. It
1091
+ also supports the "analysis.showmatch" parameter which when set to
1092
+ true, all field tokens that match the query tokens will be marked
1093
+ as a "match".
1094
+ -->
1095
+ <requestHandler name="/analysis/document"
1096
+ class="solr.DocumentAnalysisRequestHandler"
1097
+ startup="lazy" />
1098
+
1099
+ <!-- Admin Handlers
1100
+
1101
+ Admin Handlers - This will register all the standard admin
1102
+ RequestHandlers.
1103
+ -->
1104
+ <requestHandler name="/admin/"
1105
+ class="solr.admin.AdminHandlers" />
1106
+ <!-- This single handler is equivalent to the following... -->
1107
+ <!--
1108
+ <requestHandler name="/admin/luke" class="solr.admin.LukeRequestHandler" />
1109
+ <requestHandler name="/admin/system" class="solr.admin.SystemInfoHandler" />
1110
+ <requestHandler name="/admin/plugins" class="solr.admin.PluginInfoHandler" />
1111
+ <requestHandler name="/admin/threads" class="solr.admin.ThreadDumpHandler" />
1112
+ <requestHandler name="/admin/properties" class="solr.admin.PropertiesRequestHandler" />
1113
+ <requestHandler name="/admin/file" class="solr.admin.ShowFileRequestHandler" >
1114
+ -->
1115
+ <!-- If you wish to hide files under ${solr.home}/conf, explicitly
1116
+ register the ShowFileRequestHandler using:
1117
+ -->
1118
+ <!--
1119
+ <requestHandler name="/admin/file"
1120
+ class="solr.admin.ShowFileRequestHandler" >
1121
+ <lst name="invariants">
1122
+ <str name="hidden">synonyms.txt</str>
1123
+ <str name="hidden">anotherfile.txt</str>
1124
+ </lst>
1125
+ </requestHandler>
1126
+ -->
1127
+
1128
+ <!-- ping/healthcheck -->
1129
+ <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
1130
+ <lst name="invariants">
1131
+ <str name="q">solrpingquery</str>
1132
+ </lst>
1133
+ <lst name="defaults">
1134
+ <str name="echoParams">all</str>
1135
+ </lst>
1136
+ <!-- An optional feature of the PingRequestHandler is to configure the
1137
+ handler with a "healthcheckFile" which can be used to enable/disable
1138
+ the PingRequestHandler.
1139
+ relative paths are resolved against the data dir
1140
+ -->
1141
+ <!-- <str name="healthcheckFile">server-enabled.txt</str> -->
1142
+ </requestHandler>
1143
+
1144
+ <!-- Echo the request contents back to the client -->
1145
+ <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
1146
+ <lst name="defaults">
1147
+ <str name="echoParams">explicit</str>
1148
+ <str name="echoHandler">true</str>
1149
+ </lst>
1150
+ </requestHandler>
1151
+
1152
+ <!-- Solr Replication
1153
+
1154
+ The SolrReplicationHandler supports replicating indexes from a
1155
+ "master" used for indexing and "slaves" used for queries.
1156
+
1157
+ http://wiki.apache.org/solr/SolrReplication
1158
+
1159
+ It is also necessary for SolrCloud to function (in Cloud mode, the
1160
+ replication handler is used to bulk transfer segments when nodes
1161
+ are added or need to recover).
1162
+
1163
+ https://wiki.apache.org/solr/SolrCloud/
1164
+ -->
1165
+ <requestHandler name="/replication" class="solr.ReplicationHandler" >
1166
+ <!--
1167
+ To enable simple master/slave replication, uncomment one of the
1168
+ sections below, depending on whether this solr instance should be
1169
+ the "master" or a "slave". If this instance is a "slave" you will
1170
+ also need to fill in the masterUrl to point to a real machine.
1171
+ -->
1172
+ <!--
1173
+ <lst name="master">
1174
+ <str name="replicateAfter">commit</str>
1175
+ <str name="replicateAfter">startup</str>
1176
+ <str name="confFiles">schema.xml,stopwords.txt</str>
1177
+ </lst>
1178
+ -->
1179
+ <!--
1180
+ <lst name="slave">
1181
+ <str name="masterUrl">http://your-master-hostname:8983/solr</str>
1182
+ <str name="pollInterval">00:00:60</str>
1183
+ </lst>
1184
+ -->
1185
+ </requestHandler>
1186
+
1187
+ <!-- Search Components
1188
+
1189
+ Search components are registered to SolrCore and used by
1190
+ instances of SearchHandler (which can access them by name)
1191
+
1192
+ By default, the following components are available:
1193
+
1194
+ <searchComponent name="query" class="solr.QueryComponent" />
1195
+ <searchComponent name="facet" class="solr.FacetComponent" />
1196
+ <searchComponent name="mlt" class="solr.MoreLikeThisComponent" />
1197
+ <searchComponent name="highlight" class="solr.HighlightComponent" />
1198
+ <searchComponent name="stats" class="solr.StatsComponent" />
1199
+ <searchComponent name="debug" class="solr.DebugComponent" />
1200
+
1201
+ Default configuration in a requestHandler would look like:
1202
+
1203
+ <arr name="components">
1204
+ <str>query</str>
1205
+ <str>facet</str>
1206
+ <str>mlt</str>
1207
+ <str>highlight</str>
1208
+ <str>stats</str>
1209
+ <str>debug</str>
1210
+ </arr>
1211
+
1212
+ If you register a searchComponent to one of the standard names,
1213
+ that will be used instead of the default.
1214
+
1215
+ To insert components before or after the 'standard' components, use:
1216
+
1217
+ <arr name="first-components">
1218
+ <str>myFirstComponentName</str>
1219
+ </arr>
1220
+
1221
+ <arr name="last-components">
1222
+ <str>myLastComponentName</str>
1223
+ </arr>
1224
+
1225
+ NOTE: The component registered with the name "debug" will
1226
+ always be executed after the "last-components"
1227
+
1228
+ -->
1229
+
1230
+ <!-- Spell Check
1231
+
1232
+ The spell check component can return a list of alternative spelling
1233
+ suggestions.
1234
+
1235
+ http://wiki.apache.org/solr/SpellCheckComponent
1236
+ -->
1237
+ <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
1238
+
1239
+ <str name="queryAnalyzerFieldType">text_general</str>
1240
+
1241
+ <!-- Multiple "Spell Checkers" can be declared and used by this
1242
+ component
1243
+ -->
1244
+
1245
+ <!-- a spellchecker built from a field of the main index -->
1246
+ <lst name="spellchecker">
1247
+ <str name="name">default</str>
1248
+ <str name="field">text</str>
1249
+ <str name="classname">solr.DirectSolrSpellChecker</str>
1250
+ <!-- the spellcheck distance measure used, the default is the internal levenshtein -->
1251
+ <str name="distanceMeasure">internal</str>
1252
+ <!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
1253
+ <float name="accuracy">0.5</float>
1254
+ <!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
1255
+ <int name="maxEdits">2</int>
1256
+ <!-- the minimum shared prefix when enumerating terms -->
1257
+ <int name="minPrefix">1</int>
1258
+ <!-- maximum number of inspections per result. -->
1259
+ <int name="maxInspections">5</int>
1260
+ <!-- minimum length of a query term to be considered for correction -->
1261
+ <int name="minQueryLength">4</int>
1262
+ <!-- maximum threshold of documents a query term can appear to be considered for correction -->
1263
+ <float name="maxQueryFrequency">0.01</float>
1264
+ <!-- uncomment this to require suggestions to occur in 1% of the documents
1265
+ <float name="thresholdTokenFrequency">.01</float>
1266
+ -->
1267
+ </lst>
1268
+
1269
+ <!-- a spellchecker that can break or combine words. See "/spell" handler below for usage -->
1270
+ <lst name="spellchecker">
1271
+ <str name="name">wordbreak</str>
1272
+ <str name="classname">solr.WordBreakSolrSpellChecker</str>
1273
+ <str name="field">name</str>
1274
+ <str name="combineWords">true</str>
1275
+ <str name="breakWords">true</str>
1276
+ <int name="maxChanges">10</int>
1277
+ </lst>
1278
+
1279
+ <!-- a spellchecker that uses a different distance measure -->
1280
+ <!--
1281
+ <lst name="spellchecker">
1282
+ <str name="name">jarowinkler</str>
1283
+ <str name="field">spell</str>
1284
+ <str name="classname">solr.DirectSolrSpellChecker</str>
1285
+ <str name="distanceMeasure">
1286
+ org.apache.lucene.search.spell.JaroWinklerDistance
1287
+ </str>
1288
+ </lst>
1289
+ -->
1290
+
1291
+ <!-- a spellchecker that use an alternate comparator
1292
+
1293
+ comparatorClass be one of:
1294
+ 1. score (default)
1295
+ 2. freq (Frequency first, then score)
1296
+ 3. A fully qualified class name
1297
+ -->
1298
+ <!--
1299
+ <lst name="spellchecker">
1300
+ <str name="name">freq</str>
1301
+ <str name="field">lowerfilt</str>
1302
+ <str name="classname">solr.DirectSolrSpellChecker</str>
1303
+ <str name="comparatorClass">freq</str>
1304
+ -->
1305
+
1306
+ <!-- A spellchecker that reads the list of words from a file -->
1307
+ <!--
1308
+ <lst name="spellchecker">
1309
+ <str name="classname">solr.FileBasedSpellChecker</str>
1310
+ <str name="name">file</str>
1311
+ <str name="sourceLocation">spellings.txt</str>
1312
+ <str name="characterEncoding">UTF-8</str>
1313
+ <str name="spellcheckIndexDir">spellcheckerFile</str>
1314
+ </lst>
1315
+ -->
1316
+ </searchComponent>
1317
+
1318
+ <!-- A request handler for demonstrating the spellcheck component.
1319
+
1320
+ NOTE: This is purely as an example. The whole purpose of the
1321
+ SpellCheckComponent is to hook it into the request handler that
1322
+ handles your normal user queries so that a separate request is
1323
+ not needed to get suggestions.
1324
+
1325
+ IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
1326
+ NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
1327
+
1328
+ See http://wiki.apache.org/solr/SpellCheckComponent for details
1329
+ on the request parameters.
1330
+ -->
1331
+ <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
1332
+ <lst name="defaults">
1333
+ <str name="df">text</str>
1334
+ <!-- Solr will use suggestions from both the 'default' spellchecker
1335
+ and from the 'wordbreak' spellchecker and combine them.
1336
+ collations (re-written queries) can include a combination of
1337
+ corrections from both spellcheckers -->
1338
+ <str name="spellcheck.dictionary">default</str>
1339
+ <str name="spellcheck.dictionary">wordbreak</str>
1340
+ <str name="spellcheck">on</str>
1341
+ <str name="spellcheck.extendedResults">true</str>
1342
+ <str name="spellcheck.count">10</str>
1343
+ <str name="spellcheck.alternativeTermCount">5</str>
1344
+ <str name="spellcheck.maxResultsForSuggest">5</str>
1345
+ <str name="spellcheck.collate">true</str>
1346
+ <str name="spellcheck.collateExtendedResults">true</str>
1347
+ <str name="spellcheck.maxCollationTries">10</str>
1348
+ <str name="spellcheck.maxCollations">5</str>
1349
+ </lst>
1350
+ <arr name="last-components">
1351
+ <str>spellcheck</str>
1352
+ </arr>
1353
+ </requestHandler>
1354
+
1355
+ <!-- Term Vector Component
1356
+
1357
+ http://wiki.apache.org/solr/TermVectorComponent
1358
+ -->
1359
+ <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
1360
+
1361
+ <!-- A request handler for demonstrating the term vector component
1362
+
1363
+ This is purely as an example.
1364
+
1365
+ In reality you will likely want to add the component to your
1366
+ already specified request handlers.
1367
+ -->
1368
+ <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
1369
+ <lst name="defaults">
1370
+ <str name="df">text</str>
1371
+ <bool name="tv">true</bool>
1372
+ </lst>
1373
+ <arr name="last-components">
1374
+ <str>tvComponent</str>
1375
+ </arr>
1376
+ </requestHandler>
1377
+
1378
+ <!-- Clustering Component
1379
+
1380
+ http://wiki.apache.org/solr/ClusteringComponent
1381
+
1382
+ You'll need to set the solr.clustering.enabled system property
1383
+ when running solr to run with clustering enabled:
1384
+
1385
+ java -Dsolr.clustering.enabled=true -jar start.jar
1386
+
1387
+ -->
1388
+ <searchComponent name="clustering"
1389
+ enable="${solr.clustering.enabled:false}"
1390
+ class="solr.clustering.ClusteringComponent" >
1391
+ <!-- Declare an engine -->
1392
+ <lst name="engine">
1393
+ <!-- The name, only one can be named "default" -->
1394
+ <str name="name">default</str>
1395
+
1396
+ <!-- Class name of Carrot2 clustering algorithm.
1397
+
1398
+ Currently available algorithms are:
1399
+
1400
+ * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
1401
+ * org.carrot2.clustering.stc.STCClusteringAlgorithm
1402
+ * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
1403
+
1404
+ See http://project.carrot2.org/algorithms.html for the
1405
+ algorithm's characteristics.
1406
+ -->
1407
+ <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
1408
+
1409
+ <!-- Overriding values for Carrot2 default algorithm attributes.
1410
+
1411
+ For a description of all available attributes, see:
1412
+ http://download.carrot2.org/stable/manual/#chapter.components.
1413
+ Use attribute key as name attribute of str elements
1414
+ below. These can be further overridden for individual
1415
+ requests by specifying attribute key as request parameter
1416
+ name and attribute value as parameter value.
1417
+ -->
1418
+ <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>
1419
+
1420
+ <!-- Location of Carrot2 lexical resources.
1421
+
1422
+ A directory from which to load Carrot2-specific stop words
1423
+ and stop labels. Absolute or relative to Solr config directory.
1424
+ If a specific resource (e.g. stopwords.en) is present in the
1425
+ specified dir, it will completely override the corresponding
1426
+ default one that ships with Carrot2.
1427
+
1428
+ For an overview of Carrot2 lexical resources, see:
1429
+ http://download.carrot2.org/head/manual/#chapter.lexical-resources
1430
+ -->
1431
+ <str name="carrot.lexicalResourcesDir">clustering/carrot2</str>
1432
+
1433
+ <!-- The language to assume for the documents.
1434
+
1435
+ For a list of allowed values, see:
1436
+ http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
1437
+ -->
1438
+ <str name="MultilingualClustering.defaultLanguage">ENGLISH</str>
1439
+ </lst>
1440
+ <lst name="engine">
1441
+ <str name="name">stc</str>
1442
+ <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
1443
+ </lst>
1444
+ </searchComponent>
1445
+
1446
+ <!-- A request handler for demonstrating the clustering component
1447
+
1448
+ This is purely as an example.
1449
+
1450
+ In reality you will likely want to add the component to your
1451
+ already specified request handlers.
1452
+ -->
1453
+ <requestHandler name="/clustering"
1454
+ startup="lazy"
1455
+ enable="${solr.clustering.enabled:false}"
1456
+ class="solr.SearchHandler">
1457
+ <lst name="defaults">
1458
+ <bool name="clustering">true</bool>
1459
+ <str name="clustering.engine">default</str>
1460
+ <bool name="clustering.results">true</bool>
1461
+ <!-- The title field -->
1462
+ <str name="carrot.title">name</str>
1463
+ <str name="carrot.url">id</str>
1464
+ <!-- The field to cluster on -->
1465
+ <str name="carrot.snippet">features</str>
1466
+ <!-- produce summaries -->
1467
+ <bool name="carrot.produceSummary">true</bool>
1468
+ <!-- the maximum number of labels per cluster -->
1469
+ <!--<int name="carrot.numDescriptions">5</int>-->
1470
+ <!-- produce sub clusters -->
1471
+ <bool name="carrot.outputSubClusters">false</bool>
1472
+
1473
+ <str name="defType">edismax</str>
1474
+ <str name="qf">
1475
+ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
1476
+ </str>
1477
+ <str name="q.alt">*:*</str>
1478
+ <str name="rows">10</str>
1479
+ <str name="fl">*,score</str>
1480
+ </lst>
1481
+ <arr name="last-components">
1482
+ <str>clustering</str>
1483
+ </arr>
1484
+ </requestHandler>
1485
+
1486
+ <!-- Terms Component
1487
+
1488
+ http://wiki.apache.org/solr/TermsComponent
1489
+
1490
+ A component to return terms and document frequency of those
1491
+ terms
1492
+ -->
1493
+ <searchComponent name="terms" class="solr.TermsComponent"/>
1494
+
1495
+ <!-- A request handler for demonstrating the terms component -->
1496
+ <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
1497
+ <lst name="defaults">
1498
+ <bool name="terms">true</bool>
1499
+ <bool name="distrib">false</bool>
1500
+ </lst>
1501
+ <arr name="components">
1502
+ <str>terms</str>
1503
+ </arr>
1504
+ </requestHandler>
1505
+
1506
+
1507
+ <!-- Query Elevation Component
1508
+
1509
+ http://wiki.apache.org/solr/QueryElevationComponent
1510
+
1511
+ a search component that enables you to configure the top
1512
+ results for a given query regardless of the normal lucene
1513
+ scoring.
1514
+ -->
1515
+ <searchComponent name="elevator" class="solr.QueryElevationComponent" >
1516
+ <!-- pick a fieldType to analyze queries -->
1517
+ <str name="queryFieldType">string</str>
1518
+ <str name="config-file">elevate.xml</str>
1519
+ </searchComponent>
1520
+
1521
+ <!-- A request handler for demonstrating the elevator component -->
1522
+ <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
1523
+ <lst name="defaults">
1524
+ <str name="echoParams">explicit</str>
1525
+ <str name="df">text</str>
1526
+ </lst>
1527
+ <arr name="last-components">
1528
+ <str>elevator</str>
1529
+ </arr>
1530
+ </requestHandler>
1531
+
1532
+ <!-- Highlighting Component
1533
+
1534
+ http://wiki.apache.org/solr/HighlightingParameters
1535
+ -->
1536
+ <searchComponent class="solr.HighlightComponent" name="highlight">
1537
+ <highlighting>
1538
+ <!-- Configure the standard fragmenter -->
1539
+ <!-- This could most likely be commented out in the "default" case -->
1540
+ <fragmenter name="gap"
1541
+ default="true"
1542
+ class="solr.highlight.GapFragmenter">
1543
+ <lst name="defaults">
1544
+ <int name="hl.fragsize">100</int>
1545
+ </lst>
1546
+ </fragmenter>
1547
+
1548
+ <!-- A regular-expression-based fragmenter
1549
+ (for sentence extraction)
1550
+ -->
1551
+ <fragmenter name="regex"
1552
+ class="solr.highlight.RegexFragmenter">
1553
+ <lst name="defaults">
1554
+ <!-- slightly smaller fragsizes work better because of slop -->
1555
+ <int name="hl.fragsize">70</int>
1556
+ <!-- allow 50% slop on fragment sizes -->
1557
+ <float name="hl.regex.slop">0.5</float>
1558
+ <!-- a basic sentence pattern -->
1559
+ <str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
1560
+ </lst>
1561
+ </fragmenter>
1562
+
1563
+ <!-- Configure the standard formatter -->
1564
+ <formatter name="html"
1565
+ default="true"
1566
+ class="solr.highlight.HtmlFormatter">
1567
+ <lst name="defaults">
1568
+ <str name="hl.simple.pre"><![CDATA[<em>]]></str>
1569
+ <str name="hl.simple.post"><![CDATA[</em>]]></str>
1570
+ </lst>
1571
+ </formatter>
1572
+
1573
+ <!-- Configure the standard encoder -->
1574
+ <encoder name="html"
1575
+ class="solr.highlight.HtmlEncoder" />
1576
+
1577
+ <!-- Configure the standard fragListBuilder -->
1578
+ <fragListBuilder name="simple"
1579
+ class="solr.highlight.SimpleFragListBuilder"/>
1580
+
1581
+ <!-- Configure the single fragListBuilder -->
1582
+ <fragListBuilder name="single"
1583
+ class="solr.highlight.SingleFragListBuilder"/>
1584
+
1585
+ <!-- Configure the weighted fragListBuilder -->
1586
+ <fragListBuilder name="weighted"
1587
+ default="true"
1588
+ class="solr.highlight.WeightedFragListBuilder"/>
1589
+
1590
+ <!-- default tag FragmentsBuilder -->
1591
+ <fragmentsBuilder name="default"
1592
+ default="true"
1593
+ class="solr.highlight.ScoreOrderFragmentsBuilder">
1594
+ <!--
1595
+ <lst name="defaults">
1596
+ <str name="hl.multiValuedSeparatorChar">/</str>
1597
+ </lst>
1598
+ -->
1599
+ </fragmentsBuilder>
1600
+
1601
+ <!-- multi-colored tag FragmentsBuilder -->
1602
+ <fragmentsBuilder name="colored"
1603
+ class="solr.highlight.ScoreOrderFragmentsBuilder">
1604
+ <lst name="defaults">
1605
+ <str name="hl.tag.pre"><![CDATA[
1606
+ <b style="background:yellow">,<b style="background:lawgreen">,
1607
+ <b style="background:aquamarine">,<b style="background:magenta">,
1608
+ <b style="background:palegreen">,<b style="background:coral">,
1609
+ <b style="background:wheat">,<b style="background:khaki">,
1610
+ <b style="background:lime">,<b style="background:deepskyblue">]]></str>
1611
+ <str name="hl.tag.post"><![CDATA[</b>]]></str>
1612
+ </lst>
1613
+ </fragmentsBuilder>
1614
+
1615
+ <boundaryScanner name="default"
1616
+ default="true"
1617
+ class="solr.highlight.SimpleBoundaryScanner">
1618
+ <lst name="defaults">
1619
+ <str name="hl.bs.maxScan">10</str>
1620
+ <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
1621
+ </lst>
1622
+ </boundaryScanner>
1623
+
1624
+ <boundaryScanner name="breakIterator"
1625
+ class="solr.highlight.BreakIteratorBoundaryScanner">
1626
+ <lst name="defaults">
1627
+ <!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
1628
+ <str name="hl.bs.type">WORD</str>
1629
+ <!-- language and country are used when constructing Locale object. -->
1630
+ <!-- And the Locale object will be used when getting instance of BreakIterator -->
1631
+ <str name="hl.bs.language">en</str>
1632
+ <str name="hl.bs.country">US</str>
1633
+ </lst>
1634
+ </boundaryScanner>
1635
+ </highlighting>
1636
+ </searchComponent>
1637
+
1638
+ <!-- Update Processors
1639
+
1640
+ Chains of Update Processor Factories for dealing with Update
1641
+ Requests can be declared, and then used by name in Update
1642
+ Request Processors
1643
+
1644
+ http://wiki.apache.org/solr/UpdateRequestProcessor
1645
+
1646
+ -->
1647
+ <!-- Deduplication
1648
+
1649
+ An example dedup update processor that creates the "id" field
1650
+ on the fly based on the hash code of some other fields. This
1651
+ example has overwriteDupes set to false since we are using the
1652
+ id field as the signatureField and Solr will maintain
1653
+ uniqueness based on that anyway.
1654
+
1655
+ -->
1656
+ <!--
1657
+ <updateRequestProcessorChain name="dedupe">
1658
+ <processor class="solr.processor.SignatureUpdateProcessorFactory">
1659
+ <bool name="enabled">true</bool>
1660
+ <str name="signatureField">id</str>
1661
+ <bool name="overwriteDupes">false</bool>
1662
+ <str name="fields">name,features,cat</str>
1663
+ <str name="signatureClass">solr.processor.Lookup3Signature</str>
1664
+ </processor>
1665
+ <processor class="solr.LogUpdateProcessorFactory" />
1666
+ <processor class="solr.RunUpdateProcessorFactory" />
1667
+ </updateRequestProcessorChain>
1668
+ -->
1669
+
1670
+ <!-- Language identification
1671
+
1672
+ This example update chain identifies the language of the incoming
1673
+ documents using the langid contrib. The detected language is
1674
+ written to field language_s. No field name mapping is done.
1675
+ The fields used for detection are text, title, subject and description,
1676
+ making this example suitable for detecting languages form full-text
1677
+ rich documents injected via ExtractingRequestHandler.
1678
+ See more about langId at http://wiki.apache.org/solr/LanguageDetection
1679
+ -->
1680
+ <!--
1681
+ <updateRequestProcessorChain name="langid">
1682
+ <processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
1683
+ <str name="langid.fl">text,title,subject,description</str>
1684
+ <str name="langid.langField">language_s</str>
1685
+ <str name="langid.fallback">en</str>
1686
+ </processor>
1687
+ <processor class="solr.LogUpdateProcessorFactory" />
1688
+ <processor class="solr.RunUpdateProcessorFactory" />
1689
+ </updateRequestProcessorChain>
1690
+ -->
1691
+
1692
+ <!-- Script update processor
1693
+
1694
+ This example hooks in an update processor implemented using JavaScript.
1695
+
1696
+ See more about the script update processor at http://wiki.apache.org/solr/ScriptUpdateProcessor
1697
+ -->
1698
+ <!--
1699
+ <updateRequestProcessorChain name="script">
1700
+ <processor class="solr.StatelessScriptUpdateProcessorFactory">
1701
+ <str name="script">update-script.js</str>
1702
+ <lst name="params">
1703
+ <str name="config_param">example config parameter</str>
1704
+ </lst>
1705
+ </processor>
1706
+ <processor class="solr.RunUpdateProcessorFactory" />
1707
+ </updateRequestProcessorChain>
1708
+ -->
1709
+
1710
+ <!-- Response Writers
1711
+
1712
+ http://wiki.apache.org/solr/QueryResponseWriter
1713
+
1714
+ Request responses will be written using the writer specified by
1715
+ the 'wt' request parameter matching the name of a registered
1716
+ writer.
1717
+
1718
+ The "default" writer is the default and will be used if 'wt' is
1719
+ not specified in the request.
1720
+ -->
1721
+ <!-- The following response writers are implicitly configured unless
1722
+ overridden...
1723
+ -->
1724
+ <!--
1725
+ <queryResponseWriter name="xml"
1726
+ default="true"
1727
+ class="solr.XMLResponseWriter" />
1728
+ <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
1729
+ <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
1730
+ <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
1731
+ <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
1732
+ <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
1733
+ <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
1734
+ <queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
1735
+ -->
1736
+
1737
+ <queryResponseWriter name="json" class="solr.JSONResponseWriter">
1738
+ <!-- For the purposes of the tutorial, JSON responses are written as
1739
+ plain text so that they are easy to read in *any* browser.
1740
+ If you expect a MIME type of "application/json" just remove this override.
1741
+ -->
1742
+ <str name="content-type">text/plain; charset=UTF-8</str>
1743
+ </queryResponseWriter>
1744
+
1745
+ <!--
1746
+ Custom response writers can be declared as needed...
1747
+ -->
1748
+ <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy"/>
1749
+
1750
+
1751
+ <!-- XSLT response writer transforms the XML output by any xslt file found
1752
+ in Solr's conf/xslt directory. Changes to xslt files are checked for
1753
+ every xsltCacheLifetimeSeconds.
1754
+ -->
1755
+ <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
1756
+ <int name="xsltCacheLifetimeSeconds">5</int>
1757
+ </queryResponseWriter>
1758
+
1759
+ <!-- Query Parsers
1760
+
1761
+ http://wiki.apache.org/solr/SolrQuerySyntax
1762
+
1763
+ Multiple QParserPlugins can be registered by name, and then
1764
+ used in either the "defType" param for the QueryComponent (used
1765
+ by SearchHandler) or in LocalParams
1766
+ -->
1767
+ <!-- example of registering a query parser -->
1768
+ <!--
1769
+ <queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
1770
+ -->
1771
+
1772
+ <!-- Function Parsers
1773
+
1774
+ http://wiki.apache.org/solr/FunctionQuery
1775
+
1776
+ Multiple ValueSourceParsers can be registered by name, and then
1777
+ used as function names when using the "func" QParser.
1778
+ -->
1779
+ <!-- example of registering a custom function parser -->
1780
+ <!--
1781
+ <valueSourceParser name="myfunc"
1782
+ class="com.mycompany.MyValueSourceParser" />
1783
+ -->
1784
+
1785
+
1786
+ <!-- Document Transformers
1787
+ http://wiki.apache.org/solr/DocTransformers
1788
+ -->
1789
+ <!--
1790
+ Could be something like:
1791
+ <transformer name="db" class="com.mycompany.LoadFromDatabaseTransformer" >
1792
+ <int name="connection">jdbc://....</int>
1793
+ </transformer>
1794
+
1795
+ To add a constant value to all docs, use:
1796
+ <transformer name="mytrans2" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
1797
+ <int name="value">5</int>
1798
+ </transformer>
1799
+
1800
+ If you want the user to still be able to change it with _value:something_ use this:
1801
+ <transformer name="mytrans3" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
1802
+ <double name="defaultValue">5</double>
1803
+ </transformer>
1804
+
1805
+ If you are using the QueryElevationComponent, you may wish to mark documents that get boosted. The
1806
+ EditorialMarkerFactory will do exactly that:
1807
+ <transformer name="qecBooster" class="org.apache.solr.response.transform.EditorialMarkerFactory" />
1808
+ -->
1809
+
1810
+
1811
+ <!-- Legacy config for the admin interface -->
1812
+ <admin>
1813
+ <defaultQuery>*:*</defaultQuery>
1814
+ </admin>
1815
+
1816
+ </config>