smartcloud 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. checksums.yaml +4 -4
  2. data/{lib/smartcloud/grids/grid-elasticsearch/.keep → CHANGELOG.rdoc} +0 -0
  3. data/README.rdoc +9 -0
  4. data/bin/smartcloud +17 -17
  5. data/lib/smart_cloud.rb +24 -0
  6. data/lib/{smartcloud → smart_cloud}/apps/app.rb +22 -22
  7. data/lib/{smartcloud → smart_cloud}/apps/rails.rb +8 -8
  8. data/lib/{smartcloud → smart_cloud}/base.rb +3 -3
  9. data/lib/smart_cloud/boot.rb +24 -0
  10. data/lib/{smartcloud → smart_cloud}/buildpacker.rb +4 -4
  11. data/lib/{smartcloud → smart_cloud}/credentials.rb +6 -23
  12. data/lib/{smartcloud → smart_cloud}/docker.rb +9 -11
  13. data/lib/{smartcloud → smart_cloud}/engine.rb +13 -13
  14. data/lib/{smartcloud → smart_cloud}/engine/Dockerfile +2 -2
  15. data/lib/{smartcloud → smart_cloud}/engine/buildpacks/rails/Dockerfile +0 -0
  16. data/lib/smart_cloud/gem_version.rb +17 -0
  17. data/lib/{smartcloud → smart_cloud}/grids/nextcloud.rb +17 -17
  18. data/lib/{smartcloud/grids/grid-minio → smart_cloud/grids/nextcloud}/.keep +0 -0
  19. data/lib/{smartcloud → smart_cloud}/grids/redmine.rb +18 -18
  20. data/lib/{smartcloud/grids/grid-mysql/docker-entrypoint-initdb.d → smart_cloud/grids/redmine}/.keep +0 -0
  21. data/lib/{smartcloud → smart_cloud}/logger.rb +4 -4
  22. data/lib/{smartcloud → smart_cloud}/machine.rb +80 -80
  23. data/lib/{smartcloud → smart_cloud}/ssh.rb +6 -6
  24. data/lib/{smartcloud/grids/grid-nextcloud → smart_cloud/templates/dotsmartcloud/apps/containers}/.keep +0 -0
  25. data/lib/{smartcloud/grids/grid-nginx → smart_cloud/templates/dotsmartcloud/apps/repositories}/.keep +0 -0
  26. data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/bin/smartcloud.sh +0 -0
  27. data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/config/environment.rb +5 -5
  28. data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/config/users.yml +0 -0
  29. data/lib/{smartcloud/grids/grid-redis → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html}/.keep +0 -0
  30. data/lib/{smartcloud/grids/grid-redmine → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html/apps}/.keep +0 -0
  31. data/lib/{smartcloud/grids/grid-solr → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html}/config/.keep +0 -0
  32. data/lib/{smartcloud/grids/grid-solr/config/lib → smart_cloud/templates/dotsmartcloud/grids/redmine/files}/.keep +0 -0
  33. data/lib/{smartcloud/grids/grid-solr/docker-entrypoint-initdb.d → smart_cloud/templates/dotsmartcloud/tmp}/.keep +0 -0
  34. data/lib/{smartcloud → smart_cloud}/user.rb +6 -6
  35. data/lib/smart_cloud/version.rb +10 -0
  36. metadata +48 -241
  37. data/README.md +0 -81
  38. data/bin/buildpacker +0 -8
  39. data/bin/prereceiver +0 -8
  40. data/lib/smartcloud.rb +0 -24
  41. data/lib/smartcloud/boot.rb +0 -30
  42. data/lib/smartcloud/grids/elasticsearch.rb +0 -90
  43. data/lib/smartcloud/grids/grid-prereceiver/Dockerfile +0 -18
  44. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/APKBUILD +0 -49
  45. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.confd +0 -6
  46. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd +0 -43
  47. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.pre-install +0 -7
  48. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/APKINDEX.tar.gz +0 -0
  49. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-1.1.1-r4.apk +0 -0
  50. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-doc-1.1.1-r4.apk +0 -0
  51. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-openrc-1.1.1-r4.apk +0 -0
  52. data/lib/smartcloud/grids/grid-solr/config/README.txt +0 -77
  53. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_ca.txt +0 -8
  54. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_fr.txt +0 -15
  55. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_ga.txt +0 -5
  56. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_it.txt +0 -23
  57. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/hyphenations_ga.txt +0 -5
  58. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stemdict_nl.txt +0 -6
  59. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stoptags_ja.txt +0 -420
  60. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ar.txt +0 -125
  61. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_bg.txt +0 -193
  62. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ca.txt +0 -220
  63. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_cz.txt +0 -172
  64. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_da.txt +0 -110
  65. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_de.txt +0 -294
  66. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_el.txt +0 -78
  67. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_en.txt +0 -54
  68. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_es.txt +0 -356
  69. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_eu.txt +0 -99
  70. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fa.txt +0 -313
  71. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fi.txt +0 -97
  72. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fr.txt +0 -186
  73. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ga.txt +0 -110
  74. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_gl.txt +0 -161
  75. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hi.txt +0 -235
  76. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hu.txt +0 -211
  77. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hy.txt +0 -46
  78. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_id.txt +0 -359
  79. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_it.txt +0 -303
  80. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ja.txt +0 -127
  81. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_lv.txt +0 -172
  82. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_nl.txt +0 -119
  83. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_no.txt +0 -194
  84. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_pt.txt +0 -253
  85. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ro.txt +0 -233
  86. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ru.txt +0 -243
  87. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_sv.txt +0 -133
  88. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_th.txt +0 -119
  89. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_tr.txt +0 -212
  90. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/userdict_ja.txt +0 -29
  91. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/managed-schema +0 -1007
  92. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/params.json +0 -20
  93. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/protwords.txt +0 -21
  94. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/solrconfig.xml +0 -1355
  95. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/stopwords.txt +0 -14
  96. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/synonyms.txt +0 -29
  97. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_rest_managed.json +0 -1
  98. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_stopwords_english.json +0 -38
  99. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_synonyms_english.json +0 -11
  100. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/README.txt +0 -11
  101. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/kmeans-attributes.xml +0 -19
  102. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/lingo-attributes.xml +0 -24
  103. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/stc-attributes.xml +0 -19
  104. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/currency.xml +0 -67
  105. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/elevate.xml +0 -42
  106. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ca.txt +0 -8
  107. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_fr.txt +0 -15
  108. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ga.txt +0 -5
  109. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_it.txt +0 -23
  110. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/hyphenations_ga.txt +0 -5
  111. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stemdict_nl.txt +0 -6
  112. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stoptags_ja.txt +0 -420
  113. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ar.txt +0 -125
  114. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_bg.txt +0 -193
  115. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ca.txt +0 -220
  116. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ckb.txt +0 -136
  117. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_cz.txt +0 -172
  118. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_da.txt +0 -110
  119. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_de.txt +0 -294
  120. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_el.txt +0 -78
  121. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_en.txt +0 -54
  122. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_es.txt +0 -356
  123. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_eu.txt +0 -99
  124. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fa.txt +0 -313
  125. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fi.txt +0 -97
  126. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fr.txt +0 -186
  127. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ga.txt +0 -110
  128. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_gl.txt +0 -161
  129. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hi.txt +0 -235
  130. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hu.txt +0 -211
  131. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hy.txt +0 -46
  132. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_id.txt +0 -359
  133. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_it.txt +0 -303
  134. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ja.txt +0 -127
  135. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_lv.txt +0 -172
  136. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_nl.txt +0 -119
  137. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_no.txt +0 -194
  138. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_pt.txt +0 -253
  139. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ro.txt +0 -233
  140. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ru.txt +0 -243
  141. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_sv.txt +0 -133
  142. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_th.txt +0 -119
  143. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_tr.txt +0 -212
  144. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/userdict_ja.txt +0 -29
  145. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/managed-schema +0 -1187
  146. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/mapping-FoldToASCII.txt +0 -3813
  147. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/mapping-ISOLatin1Accent.txt +0 -246
  148. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/params.json +0 -11
  149. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/protwords.txt +0 -21
  150. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/solrconfig.xml +0 -1616
  151. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/spellings.txt +0 -2
  152. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/stopwords.txt +0 -14
  153. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/synonyms.txt +0 -29
  154. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/update-script.js +0 -53
  155. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/README.txt +0 -101
  156. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/VM_global_library.vm +0 -186
  157. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/browse.vm +0 -33
  158. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster.vm +0 -19
  159. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster_results.vm +0 -31
  160. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/debug.vm +0 -28
  161. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/did_you_mean.vm +0 -11
  162. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/error.vm +0 -11
  163. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_fields.vm +0 -24
  164. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_pivot.vm +0 -12
  165. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_queries.vm +0 -12
  166. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_ranges.vm +0 -23
  167. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facets.vm +0 -10
  168. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/footer.vm +0 -43
  169. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/head.vm +0 -37
  170. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/header.vm +0 -7
  171. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit.vm +0 -25
  172. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_grouped.vm +0 -43
  173. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_plain.vm +0 -25
  174. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/join_doc.vm +0 -20
  175. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.css +0 -48
  176. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.js +0 -763
  177. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/layout.vm +0 -24
  178. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/main.css +0 -231
  179. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/mime_type_lists.vm +0 -68
  180. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_bottom.vm +0 -22
  181. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_top.vm +0 -29
  182. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/product_doc.vm +0 -32
  183. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query.vm +0 -42
  184. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_form.vm +0 -64
  185. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_group.vm +0 -43
  186. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_spatial.vm +0 -75
  187. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/results_list.vm +0 -22
  188. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/richtext_doc.vm +0 -153
  189. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/suggest.vm +0 -8
  190. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/tabs.vm +0 -50
  191. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example.xsl +0 -132
  192. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example_atom.xsl +0 -67
  193. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example_rss.xsl +0 -66
  194. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/luke.xsl +0 -337
  195. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/updateXml.xsl +0 -70
  196. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/_rest_managed.json +0 -1
  197. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/admin-extra.html +0 -31
  198. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/currency.xml +0 -67
  199. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/elevate.xml +0 -36
  200. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/lang/stopwords_en.txt +0 -54
  201. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/mapping-ISOLatin1Accent.txt +0 -246
  202. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/protwords.txt +0 -21
  203. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/schema.xml +0 -278
  204. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/scripts.conf +0 -24
  205. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/solrconfig.xml +0 -632
  206. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/spellings.txt +0 -2
  207. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/synonyms.txt +0 -29
  208. data/lib/smartcloud/grids/grid-solr/config/solr.xml +0 -53
  209. data/lib/smartcloud/grids/grid-solr/config/zoo.cfg +0 -31
  210. data/lib/smartcloud/grids/grid-solr/sunspot/conf/schema.xml +0 -278
  211. data/lib/smartcloud/grids/grid-solr/sunspot/conf/solrconfig.xml +0 -632
  212. data/lib/smartcloud/grids/minio.rb +0 -77
  213. data/lib/smartcloud/grids/mysql.rb +0 -66
  214. data/lib/smartcloud/grids/nginx.rb +0 -137
  215. data/lib/smartcloud/grids/prereceiver.rb +0 -134
  216. data/lib/smartcloud/grids/redis.rb +0 -58
  217. data/lib/smartcloud/grids/solr.rb +0 -99
  218. data/lib/smartcloud/templates/dotsmartcloud/apps/containers/.keep +0 -0
  219. data/lib/smartcloud/templates/dotsmartcloud/apps/repositories/.keep +0 -0
  220. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-elasticsearch/data/.keep +0 -0
  221. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-elasticsearch/logs/.keep +0 -0
  222. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-minio/data/.keep +0 -0
  223. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-mysql/data/.keep +0 -0
  224. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/.keep +0 -0
  225. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/apps/.keep +0 -0
  226. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/config/.keep +0 -0
  227. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/certificates/.keep +0 -0
  228. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/fastcgi.conf +0 -11
  229. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/htpasswd/.keep +0 -0
  230. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/nginx.tmpl +0 -373
  231. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive +0 -17
  232. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-redis/data/.keep +0 -0
  233. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-redmine/files/.keep +0 -0
  234. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/solr/.keep +0 -0
  235. data/lib/smartcloud/templates/dotsmartcloud/tmp/.keep +0 -0
  236. data/lib/smartcloud/version.rb +0 -15
@@ -1,246 +0,0 @@
1
- # The ASF licenses this file to You under the Apache License, Version 2.0
2
- # (the "License"); you may not use this file except in compliance with
3
- # the License. You may obtain a copy of the License at
4
- #
5
- # http://www.apache.org/licenses/LICENSE-2.0
6
- #
7
- # Unless required by applicable law or agreed to in writing, software
8
- # distributed under the License is distributed on an "AS IS" BASIS,
9
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- # See the License for the specific language governing permissions and
11
- # limitations under the License.
12
-
13
- # Syntax:
14
- # "source" => "target"
15
- # "source".length() > 0 (source cannot be empty.)
16
- # "target".length() >= 0 (target can be empty.)
17
-
18
- # example:
19
- # "À" => "A"
20
- # "\u00C0" => "A"
21
- # "\u00C0" => "\u0041"
22
- # "ß" => "ss"
23
- # "\t" => " "
24
- # "\n" => ""
25
-
26
- # À => A
27
- "\u00C0" => "A"
28
-
29
- # Á => A
30
- "\u00C1" => "A"
31
-
32
- # Â => A
33
- "\u00C2" => "A"
34
-
35
- # Ã => A
36
- "\u00C3" => "A"
37
-
38
- # Ä => A
39
- "\u00C4" => "A"
40
-
41
- # Å => A
42
- "\u00C5" => "A"
43
-
44
- # Æ => AE
45
- "\u00C6" => "AE"
46
-
47
- # Ç => C
48
- "\u00C7" => "C"
49
-
50
- # È => E
51
- "\u00C8" => "E"
52
-
53
- # É => E
54
- "\u00C9" => "E"
55
-
56
- # Ê => E
57
- "\u00CA" => "E"
58
-
59
- # Ë => E
60
- "\u00CB" => "E"
61
-
62
- # Ì => I
63
- "\u00CC" => "I"
64
-
65
- # Í => I
66
- "\u00CD" => "I"
67
-
68
- # Î => I
69
- "\u00CE" => "I"
70
-
71
- # Ï => I
72
- "\u00CF" => "I"
73
-
74
- # IJ => IJ
75
- "\u0132" => "IJ"
76
-
77
- # Ð => D
78
- "\u00D0" => "D"
79
-
80
- # Ñ => N
81
- "\u00D1" => "N"
82
-
83
- # Ò => O
84
- "\u00D2" => "O"
85
-
86
- # Ó => O
87
- "\u00D3" => "O"
88
-
89
- # Ô => O
90
- "\u00D4" => "O"
91
-
92
- # Õ => O
93
- "\u00D5" => "O"
94
-
95
- # Ö => O
96
- "\u00D6" => "O"
97
-
98
- # Ø => O
99
- "\u00D8" => "O"
100
-
101
- # Π=> OE
102
- "\u0152" => "OE"
103
-
104
- # Þ
105
- "\u00DE" => "TH"
106
-
107
- # Ù => U
108
- "\u00D9" => "U"
109
-
110
- # Ú => U
111
- "\u00DA" => "U"
112
-
113
- # Û => U
114
- "\u00DB" => "U"
115
-
116
- # Ü => U
117
- "\u00DC" => "U"
118
-
119
- # Ý => Y
120
- "\u00DD" => "Y"
121
-
122
- # Ÿ => Y
123
- "\u0178" => "Y"
124
-
125
- # à => a
126
- "\u00E0" => "a"
127
-
128
- # á => a
129
- "\u00E1" => "a"
130
-
131
- # â => a
132
- "\u00E2" => "a"
133
-
134
- # ã => a
135
- "\u00E3" => "a"
136
-
137
- # ä => a
138
- "\u00E4" => "a"
139
-
140
- # å => a
141
- "\u00E5" => "a"
142
-
143
- # æ => ae
144
- "\u00E6" => "ae"
145
-
146
- # ç => c
147
- "\u00E7" => "c"
148
-
149
- # è => e
150
- "\u00E8" => "e"
151
-
152
- # é => e
153
- "\u00E9" => "e"
154
-
155
- # ê => e
156
- "\u00EA" => "e"
157
-
158
- # ë => e
159
- "\u00EB" => "e"
160
-
161
- # ì => i
162
- "\u00EC" => "i"
163
-
164
- # í => i
165
- "\u00ED" => "i"
166
-
167
- # î => i
168
- "\u00EE" => "i"
169
-
170
- # ï => i
171
- "\u00EF" => "i"
172
-
173
- # ij => ij
174
- "\u0133" => "ij"
175
-
176
- # ð => d
177
- "\u00F0" => "d"
178
-
179
- # ñ => n
180
- "\u00F1" => "n"
181
-
182
- # ò => o
183
- "\u00F2" => "o"
184
-
185
- # ó => o
186
- "\u00F3" => "o"
187
-
188
- # ô => o
189
- "\u00F4" => "o"
190
-
191
- # õ => o
192
- "\u00F5" => "o"
193
-
194
- # ö => o
195
- "\u00F6" => "o"
196
-
197
- # ø => o
198
- "\u00F8" => "o"
199
-
200
- # œ => oe
201
- "\u0153" => "oe"
202
-
203
- # ß => ss
204
- "\u00DF" => "ss"
205
-
206
- # þ => th
207
- "\u00FE" => "th"
208
-
209
- # ù => u
210
- "\u00F9" => "u"
211
-
212
- # ú => u
213
- "\u00FA" => "u"
214
-
215
- # û => u
216
- "\u00FB" => "u"
217
-
218
- # ü => u
219
- "\u00FC" => "u"
220
-
221
- # ý => y
222
- "\u00FD" => "y"
223
-
224
- # ÿ => y
225
- "\u00FF" => "y"
226
-
227
- # ff => ff
228
- "\uFB00" => "ff"
229
-
230
- # fi => fi
231
- "\uFB01" => "fi"
232
-
233
- # fl => fl
234
- "\uFB02" => "fl"
235
-
236
- # ffi => ffi
237
- "\uFB03" => "ffi"
238
-
239
- # ffl => ffl
240
- "\uFB04" => "ffl"
241
-
242
- # ſt => ft
243
- "\uFB05" => "ft"
244
-
245
- # st => st
246
- "\uFB06" => "st"
@@ -1,11 +0,0 @@
1
- {
2
- "params": {
3
- "_UPDATE_JSON_DOCS": {
4
- "srcField": "_src_",
5
- "mapUniqueKeyOnly": true,
6
- "": {
7
- "v": 0
8
- }
9
- }
10
- }
11
- }
@@ -1,21 +0,0 @@
1
- # The ASF licenses this file to You under the Apache License, Version 2.0
2
- # (the "License"); you may not use this file except in compliance with
3
- # the License. You may obtain a copy of the License at
4
- #
5
- # http://www.apache.org/licenses/LICENSE-2.0
6
- #
7
- # Unless required by applicable law or agreed to in writing, software
8
- # distributed under the License is distributed on an "AS IS" BASIS,
9
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- # See the License for the specific language governing permissions and
11
- # limitations under the License.
12
-
13
- #-----------------------------------------------------------------------
14
- # Use a protected word file to protect against the stemmer reducing two
15
- # unrelated words to the same base word.
16
-
17
- # Some non-words that normally won't be encountered,
18
- # just to test that they won't be stemmed.
19
- dontstems
20
- zwhacky
21
-
@@ -1,1616 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <!--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- -->
18
-
19
- <!--
20
- For more details about configurations options that may appear in
21
- this file, see http://wiki.apache.org/solr/SolrConfigXml.
22
- -->
23
- <config>
24
- <!-- In all configuration below, a prefix of "solr." for class names
25
- is an alias that causes solr to search appropriate packages,
26
- including org.apache.solr.(search|update|request|core|analysis)
27
-
28
- You may also specify a fully qualified Java classname if you
29
- have your own custom plugins.
30
- -->
31
-
32
- <!-- Controls what version of Lucene various components of Solr
33
- adhere to. Generally, you want to use the latest version to
34
- get all bug fixes and improvements. It is highly recommended
35
- that you fully re-index after changing this setting as it can
36
- affect both how text is indexed and queried.
37
- -->
38
- <luceneMatchVersion>8.0.0</luceneMatchVersion>
39
-
40
- <!-- <lib/> directives can be used to instruct Solr to load any 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
- If a 'dir' option (with or without a regex) is used and nothing
70
- is found that matches, a warning will be logged.
71
-
72
- The examples below can be used to load some solr-contribs along
73
- with their external dependencies.
74
- -->
75
- <lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
76
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
77
-
78
- <lib dir="${solr.install.dir:../../../..}/contrib/clustering/lib/" regex=".*\.jar" />
79
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-clustering-\d.*\.jar" />
80
-
81
- <lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/" regex=".*\.jar" />
82
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-langid-\d.*\.jar" />
83
-
84
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-ltr-\d.*\.jar" />
85
-
86
- <lib dir="${solr.install.dir:../../../..}/contrib/velocity/lib" regex=".*\.jar" />
87
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-velocity-\d.*\.jar" />
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 and not persistent.
119
- -->
120
- <directoryFactory name="DirectoryFactory"
121
- class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
122
-
123
- <!-- The CodecFactory for defining the format of the inverted index.
124
- The default implementation is SchemaCodecFactory, which is the official Lucene
125
- index format, but hooks into the schema to provide per-field customization of
126
- the postings lists and per-document values in the fieldType element
127
- (postingsFormat/docValuesFormat). Note that most of the alternative implementations
128
- are experimental, so if you choose to customize the index format, it's a good
129
- idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
130
- before upgrading to a newer version to avoid unnecessary reindexing.
131
- A "compressionMode" string element can be added to <codecFactory> to choose
132
- between the existing compression modes in the default codec: "BEST_SPEED" (default)
133
- or "BEST_COMPRESSION".
134
- -->
135
- <codecFactory class="solr.SchemaCodecFactory"/>
136
-
137
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138
- Index Config - These settings control low-level behavior of indexing
139
- Most example settings here show the default value, but are commented
140
- out, to more easily see where customizations have been made.
141
-
142
- Note: This replaces <indexDefaults> and <mainIndex> from older versions
143
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
144
- <indexConfig>
145
- <!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
146
- LimitTokenCountFilterFactory in your fieldType definition. E.g.
147
- <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
148
- -->
149
- <!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
150
- <!-- <writeLockTimeout>1000</writeLockTimeout> -->
151
-
152
- <!-- Expert: Enabling compound file will use less files for the index,
153
- using fewer file descriptors on the expense of performance decrease.
154
- Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
155
- <!-- <useCompoundFile>false</useCompoundFile> -->
156
-
157
- <!-- ramBufferSizeMB sets the amount of RAM that may be used by Lucene
158
- indexing for buffering added documents and deletions before they are
159
- flushed to the Directory.
160
- maxBufferedDocs sets a limit on the number of documents buffered
161
- before flushing.
162
- If both ramBufferSizeMB and maxBufferedDocs is set, then
163
- Lucene will flush based on whichever limit is hit first.
164
- The default is 100 MB. -->
165
- <!-- <ramBufferSizeMB>100</ramBufferSizeMB> -->
166
- <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
167
-
168
- <!-- Expert: Merge Policy
169
- The Merge Policy in Lucene controls how merging of segments is done.
170
- The default since Solr/Lucene 3.3 is TieredMergePolicy.
171
- The default since Lucene 2.3 was the LogByteSizeMergePolicy,
172
- Even older versions of Lucene used LogDocMergePolicy.
173
- -->
174
- <!--
175
- <mergePolicyFactory class="org.apache.solr.index.TieredMergePolicyFactory">
176
- <int name="maxMergeAtOnce">10</int>
177
- <int name="segmentsPerTier">10</int>
178
- <double name="noCFSRatio">0.1</double>
179
- </mergePolicyFactory>
180
- -->
181
-
182
- <!-- Expert: Merge Scheduler
183
- The Merge Scheduler in Lucene controls how merges are
184
- performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
185
- can perform merges in the background using separate threads.
186
- The SerialMergeScheduler (Lucene 2.2 default) does not.
187
- -->
188
- <!--
189
- <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
190
- -->
191
-
192
- <!-- LockFactory
193
-
194
- This option specifies which Lucene LockFactory implementation
195
- to use.
196
-
197
- single = SingleInstanceLockFactory - suggested for a
198
- read-only index or when there is no possibility of
199
- another process trying to modify the index.
200
- native = NativeFSLockFactory - uses OS native file locking.
201
- Do not use when multiple solr webapps in the same
202
- JVM are attempting to share a single index.
203
- simple = SimpleFSLockFactory - uses a plain file for locking
204
-
205
- Defaults: 'native' is default for Solr3.6 and later, otherwise
206
- 'simple' is the default
207
-
208
- More details on the nuances of each LockFactory...
209
- http://wiki.apache.org/lucene-java/AvailableLockFactories
210
- -->
211
- <lockType>${solr.lock.type:native}</lockType>
212
-
213
- <!-- Commit Deletion Policy
214
- Custom deletion policies can be specified here. The class must
215
- implement org.apache.lucene.index.IndexDeletionPolicy.
216
-
217
- The default Solr IndexDeletionPolicy implementation supports
218
- deleting index commit points on number of commits, age of
219
- commit point and optimized status.
220
-
221
- The latest commit point should always be preserved regardless
222
- of the criteria.
223
- -->
224
- <!--
225
- <deletionPolicy class="solr.SolrDeletionPolicy">
226
- -->
227
- <!-- The number of commit points to be kept -->
228
- <!-- <str name="maxCommitsToKeep">1</str> -->
229
- <!-- The number of optimized commit points to be kept -->
230
- <!-- <str name="maxOptimizedCommitsToKeep">0</str> -->
231
- <!--
232
- Delete all commit points once they have reached the given age.
233
- Supports DateMathParser syntax e.g.
234
- -->
235
- <!--
236
- <str name="maxCommitAge">30MINUTES</str>
237
- <str name="maxCommitAge">1DAY</str>
238
- -->
239
- <!--
240
- </deletionPolicy>
241
- -->
242
-
243
- <!-- Lucene Infostream
244
-
245
- To aid in advanced debugging, Lucene provides an "InfoStream"
246
- of detailed information when indexing.
247
-
248
- Setting the value to true will instruct the underlying Lucene
249
- IndexWriter to write its info stream to solr's log. By default,
250
- this is enabled here, and controlled through log4j2.xml
251
- -->
252
- <infoStream>true</infoStream>
253
- </indexConfig>
254
-
255
-
256
- <!-- JMX
257
-
258
- This example enables JMX if and only if an existing MBeanServer
259
- is found, use this if you want to configure JMX through JVM
260
- parameters. Remove this to disable exposing Solr configuration
261
- and statistics to JMX.
262
-
263
- For more details see http://wiki.apache.org/solr/SolrJmx
264
- -->
265
- <jmx />
266
- <!-- If you want to connect to a particular server, specify the
267
- agentId
268
- -->
269
- <!-- <jmx agentId="myAgent" /> -->
270
- <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
271
- <!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
272
- -->
273
-
274
- <!-- The default high-performance update handler -->
275
- <updateHandler class="solr.DirectUpdateHandler2">
276
-
277
- <!-- Enables a transaction log, used for real-time get, durability, and
278
- and solr cloud replica recovery. The log can grow as big as
279
- uncommitted changes to the index, so use of a hard autoCommit
280
- is recommended (see below).
281
- "dir" - the target directory for transaction logs, defaults to the
282
- solr data directory.
283
- "numVersionBuckets" - sets the number of buckets used to keep
284
- track of max version values when checking for re-ordered
285
- updates; increase this value to reduce the cost of
286
- synchronizing access to version buckets during high-volume
287
- indexing, this requires 8 bytes (long) * numVersionBuckets
288
- of heap space per Solr core.
289
- -->
290
- <updateLog>
291
- <str name="dir">${solr.ulog.dir:}</str>
292
- <int name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}</int>
293
- </updateLog>
294
-
295
- <!-- AutoCommit
296
-
297
- Perform a hard commit automatically under certain conditions.
298
- Instead of enabling autoCommit, consider using "commitWithin"
299
- when adding documents.
300
-
301
- http://wiki.apache.org/solr/UpdateXmlMessages
302
-
303
- maxDocs - Maximum number of documents to add since the last
304
- commit before automatically triggering a new commit.
305
-
306
- maxTime - Maximum amount of time in ms that is allowed to pass
307
- since a document was added before automatically
308
- triggering a new commit.
309
- openSearcher - if false, the commit causes recent index changes
310
- to be flushed to stable storage, but does not cause a new
311
- searcher to be opened to make those changes visible.
312
-
313
- If the updateLog is enabled, then it's highly recommended to
314
- have some sort of hard autoCommit to limit the log size.
315
- -->
316
- <autoCommit>
317
- <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
318
- <openSearcher>false</openSearcher>
319
- </autoCommit>
320
-
321
- <!-- softAutoCommit is like autoCommit except it causes a
322
- 'soft' commit which only ensures that changes are visible
323
- but does not ensure that data is synced to disk. This is
324
- faster and more near-realtime friendly than a hard commit.
325
- -->
326
-
327
- <autoSoftCommit>
328
- <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
329
- </autoSoftCommit>
330
-
331
- <!-- Update Related Event Listeners
332
-
333
- Various IndexWriter related events can trigger Listeners to
334
- take actions.
335
-
336
- postCommit - fired after every commit or optimize command
337
- postOptimize - fired after every optimize command
338
- -->
339
-
340
- </updateHandler>
341
-
342
- <!-- IndexReaderFactory
343
-
344
- Use the following format to specify a custom IndexReaderFactory,
345
- which allows for alternate IndexReader implementations.
346
-
347
- ** Experimental Feature **
348
-
349
- Please note - Using a custom IndexReaderFactory may prevent
350
- certain other features from working. The API to
351
- IndexReaderFactory may change without warning or may even be
352
- removed from future releases if the problems cannot be
353
- resolved.
354
-
355
-
356
- ** Features that may not work with custom IndexReaderFactory **
357
-
358
- The ReplicationHandler assumes a disk-resident index. Using a
359
- custom IndexReader implementation may cause incompatibility
360
- with ReplicationHandler and may cause replication to not work
361
- correctly. See SOLR-1366 for details.
362
-
363
- -->
364
- <!--
365
- <indexReaderFactory name="IndexReaderFactory" class="package.class">
366
- <str name="someArg">Some Value</str>
367
- </indexReaderFactory >
368
- -->
369
-
370
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
371
- Query section - these settings control query time things like caches
372
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
373
- <query>
374
-
375
- <!-- Maximum number of clauses in each BooleanQuery, an exception
376
- is thrown if exceeded. It is safe to increase or remove this setting,
377
- since it is purely an arbitrary limit to try and catch user errors where
378
- large boolean queries may not be the best implementation choice.
379
- -->
380
- <maxBooleanClauses>1024</maxBooleanClauses>
381
-
382
-
383
- <!-- Slow Query Threshold (in millis)
384
-
385
- At high request rates, logging all requests can become a bottleneck
386
- and therefore INFO logging is often turned off. However, it is still
387
- useful to be able to set a latency threshold above which a request
388
- is considered "slow" and log that request at WARN level so we can
389
- easily identify slow queries.
390
- -->
391
- <slowQueryThresholdMillis>-1</slowQueryThresholdMillis>
392
-
393
-
394
- <!-- Solr Internal Query Caches
395
-
396
- There are two implementations of cache available for Solr,
397
- LRUCache, based on a synchronized LinkedHashMap, and
398
- FastLRUCache, based on a ConcurrentHashMap.
399
-
400
- FastLRUCache has faster gets and slower puts in single
401
- threaded operation and thus is generally faster than LRUCache
402
- when the hit ratio of the cache is high (> 75%), and may be
403
- faster under other scenarios on multi-cpu systems.
404
- -->
405
-
406
- <!-- Filter Cache
407
-
408
- Cache used by SolrIndexSearcher for filters (DocSets),
409
- unordered sets of *all* documents that match a query. When a
410
- new searcher is opened, its caches may be prepopulated or
411
- "autowarmed" using data from caches in the old searcher.
412
- autowarmCount is the number of items to prepopulate. For
413
- LRUCache, the autowarmed items will be the most recently
414
- accessed items.
415
-
416
- Parameters:
417
- class - the SolrCache implementation LRUCache or
418
- (LRUCache or FastLRUCache)
419
- size - the maximum number of entries in the cache
420
- initialSize - the initial capacity (number of entries) of
421
- the cache. (see java.util.HashMap)
422
- autowarmCount - the number of entries to prepopulate from
423
- and old cache.
424
- maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
425
- to occupy. Note that when this option is specified, the size
426
- and initialSize parameters are ignored.
427
- -->
428
- <filterCache class="solr.FastLRUCache"
429
- size="512"
430
- initialSize="512"
431
- autowarmCount="0"/>
432
-
433
- <!-- Query Result Cache
434
-
435
- Caches results of searches - ordered lists of document ids
436
- (DocList) based on a query, a sort, and the range of documents requested.
437
- Additional supported parameter by LRUCache:
438
- maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
439
- to occupy
440
- -->
441
- <queryResultCache class="solr.LRUCache"
442
- size="512"
443
- initialSize="512"
444
- autowarmCount="0"/>
445
-
446
- <!-- Document Cache
447
-
448
- Caches Lucene Document objects (the stored fields for each
449
- document). Since Lucene internal document ids are transient,
450
- this cache will not be autowarmed.
451
- -->
452
- <documentCache class="solr.LRUCache"
453
- size="512"
454
- initialSize="512"
455
- autowarmCount="0"/>
456
-
457
- <!-- custom cache currently used by block join -->
458
- <cache name="perSegFilter"
459
- class="solr.search.LRUCache"
460
- size="10"
461
- initialSize="0"
462
- autowarmCount="10"
463
- regenerator="solr.NoOpRegenerator" />
464
-
465
- <!-- Field Value Cache
466
-
467
- Cache used to hold field values that are quickly accessible
468
- by document id. The fieldValueCache is created by default
469
- even if not configured here.
470
- -->
471
- <!--
472
- <fieldValueCache class="solr.FastLRUCache"
473
- size="512"
474
- autowarmCount="128"
475
- showItems="32" />
476
- -->
477
-
478
- <!-- Feature Values Cache
479
-
480
- Cache used by the Learning To Rank (LTR) contrib module.
481
-
482
- You will need to set the solr.ltr.enabled system property
483
- when running solr to run with ltr enabled:
484
- -Dsolr.ltr.enabled=true
485
-
486
- https://lucene.apache.org/solr/guide/learning-to-rank.html
487
- -->
488
- <cache enable="${solr.ltr.enabled:false}" name="QUERY_DOC_FV"
489
- class="solr.search.LRUCache"
490
- size="4096"
491
- initialSize="2048"
492
- autowarmCount="4096"
493
- regenerator="solr.search.NoOpRegenerator" />
494
-
495
- <!-- Custom Cache
496
-
497
- Example of a generic cache. These caches may be accessed by
498
- name through SolrIndexSearcher.getCache(),cacheLookup(), and
499
- cacheInsert(). The purpose is to enable easy caching of
500
- user/application level data. The regenerator argument should
501
- be specified as an implementation of solr.CacheRegenerator
502
- if autowarming is desired.
503
- -->
504
- <!--
505
- <cache name="myUserCache"
506
- class="solr.LRUCache"
507
- size="4096"
508
- initialSize="1024"
509
- autowarmCount="1024"
510
- regenerator="com.mycompany.MyRegenerator"
511
- />
512
- -->
513
-
514
-
515
- <!-- Lazy Field Loading
516
-
517
- If true, stored fields that are not requested will be loaded
518
- lazily. This can result in a significant speed improvement
519
- if the usual case is to not load all stored fields,
520
- especially if the skipped fields are large compressed text
521
- fields.
522
- -->
523
- <enableLazyFieldLoading>true</enableLazyFieldLoading>
524
-
525
- <!-- Use Filter For Sorted Query
526
-
527
- A possible optimization that attempts to use a filter to
528
- satisfy a search. If the requested sort does not include
529
- score, then the filterCache will be checked for a filter
530
- matching the query. If found, the filter will be used as the
531
- source of document ids, and then the sort will be applied to
532
- that.
533
-
534
- For most situations, this will not be useful unless you
535
- frequently get the same search repeatedly with different sort
536
- options, and none of them ever use "score"
537
- -->
538
- <!--
539
- <useFilterForSortedQuery>true</useFilterForSortedQuery>
540
- -->
541
-
542
- <!-- Result Window Size
543
-
544
- An optimization for use with the queryResultCache. When a search
545
- is requested, a superset of the requested number of document ids
546
- are collected. For example, if a search for a particular query
547
- requests matching documents 10 through 19, and queryWindowSize is 50,
548
- then documents 0 through 49 will be collected and cached. Any further
549
- requests in that range can be satisfied via the cache.
550
- -->
551
- <queryResultWindowSize>20</queryResultWindowSize>
552
-
553
- <!-- Maximum number of documents to cache for any entry in the
554
- queryResultCache.
555
- -->
556
- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
557
-
558
- <!-- Query Related Event Listeners
559
-
560
- Various IndexSearcher related events can trigger Listeners to
561
- take actions.
562
-
563
- newSearcher - fired whenever a new searcher is being prepared
564
- and there is a current searcher handling requests (aka
565
- registered). It can be used to prime certain caches to
566
- prevent long request times for certain requests.
567
-
568
- firstSearcher - fired whenever a new searcher is being
569
- prepared but there is no current registered searcher to handle
570
- requests or to gain autowarming data from.
571
-
572
-
573
- -->
574
- <!-- QuerySenderListener takes an array of NamedList and executes a
575
- local query request for each NamedList in sequence.
576
- -->
577
- <listener event="newSearcher" class="solr.QuerySenderListener">
578
- <arr name="queries">
579
- <!--
580
- <lst><str name="q">solr</str><str name="sort">price asc</str></lst>
581
- <lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
582
- -->
583
- </arr>
584
- </listener>
585
- <listener event="firstSearcher" class="solr.QuerySenderListener">
586
- <arr name="queries">
587
- <lst>
588
- <str name="q">static firstSearcher warming in solrconfig.xml</str>
589
- </lst>
590
- </arr>
591
- </listener>
592
-
593
- <!-- Use Cold Searcher
594
-
595
- If a search request comes in and there is no current
596
- registered searcher, then immediately register the still
597
- warming searcher and use it. If "false" then all requests
598
- will block until the first searcher is done warming.
599
- -->
600
- <useColdSearcher>false</useColdSearcher>
601
-
602
- </query>
603
-
604
-
605
- <!-- Request Dispatcher
606
-
607
- This section contains instructions for how the SolrDispatchFilter
608
- should behave when processing requests for this SolrCore.
609
-
610
- -->
611
- <requestDispatcher>
612
- <!-- Request Parsing
613
-
614
- These settings indicate how Solr Requests may be parsed, and
615
- what restrictions may be placed on the ContentStreams from
616
- those requests
617
-
618
- enableRemoteStreaming - enables use of the stream.file
619
- and stream.url parameters for specifying remote streams.
620
-
621
- multipartUploadLimitInKB - specifies the max size (in KiB) of
622
- Multipart File Uploads that Solr will allow in a Request.
623
-
624
- formdataUploadLimitInKB - specifies the max size (in KiB) of
625
- form data (application/x-www-form-urlencoded) sent via
626
- POST. You can use POST to pass request parameters not
627
- fitting into the URL.
628
-
629
- addHttpRequestToContext - if set to true, it will instruct
630
- the requestParsers to include the original HttpServletRequest
631
- object in the context map of the SolrQueryRequest under the
632
- key "httpRequest". It will not be used by any of the existing
633
- Solr components, but may be useful when developing custom
634
- plugins.
635
-
636
- *** WARNING ***
637
- Before enabling remote streaming, you should make sure your
638
- system has authentication enabled.
639
-
640
- <requestParsers enableRemoteStreaming="false"
641
- multipartUploadLimitInKB="-1"
642
- formdataUploadLimitInKB="-1"
643
- addHttpRequestToContext="false"/>
644
- -->
645
-
646
- <!-- HTTP Caching
647
-
648
- Set HTTP caching related parameters (for proxy caches and clients).
649
-
650
- The options below instruct Solr not to output any HTTP Caching
651
- related headers
652
- -->
653
- <httpCaching never304="true" />
654
- <!-- If you include a <cacheControl> directive, it will be used to
655
- generate a Cache-Control header (as well as an Expires header
656
- if the value contains "max-age=")
657
-
658
- By default, no Cache-Control header is generated.
659
-
660
- You can use the <cacheControl> option even if you have set
661
- never304="true"
662
- -->
663
- <!--
664
- <httpCaching never304="true" >
665
- <cacheControl>max-age=30, public</cacheControl>
666
- </httpCaching>
667
- -->
668
- <!-- To enable Solr to respond with automatically generated HTTP
669
- Caching headers, and to response to Cache Validation requests
670
- correctly, set the value of never304="false"
671
-
672
- This will cause Solr to generate Last-Modified and ETag
673
- headers based on the properties of the Index.
674
-
675
- The following options can also be specified to affect the
676
- values of these headers...
677
-
678
- lastModFrom - the default value is "openTime" which means the
679
- Last-Modified value (and validation against If-Modified-Since
680
- requests) will all be relative to when the current Searcher
681
- was opened. You can change it to lastModFrom="dirLastMod" if
682
- you want the value to exactly correspond to when the physical
683
- index was last modified.
684
-
685
- etagSeed="..." is an option you can change to force the ETag
686
- header (and validation against If-None-Match requests) to be
687
- different even if the index has not changed (ie: when making
688
- significant changes to your config file)
689
-
690
- (lastModifiedFrom and etagSeed are both ignored if you use
691
- the never304="true" option)
692
- -->
693
- <!--
694
- <httpCaching lastModifiedFrom="openTime"
695
- etagSeed="Solr">
696
- <cacheControl>max-age=30, public</cacheControl>
697
- </httpCaching>
698
- -->
699
- </requestDispatcher>
700
-
701
- <!-- Request Handlers
702
-
703
- http://wiki.apache.org/solr/SolrRequestHandler
704
-
705
- Incoming queries will be dispatched to a specific handler by name
706
- based on the path specified in the request.
707
-
708
- If a Request Handler is declared with startup="lazy", then it will
709
- not be initialized until the first request that uses it.
710
-
711
- -->
712
- <!-- SearchHandler
713
-
714
- http://wiki.apache.org/solr/SearchHandler
715
-
716
- For processing Search Queries, the primary Request Handler
717
- provided with Solr is "SearchHandler" It delegates to a sequent
718
- of SearchComponents (see below) and supports distributed
719
- queries across multiple shards
720
- -->
721
- <requestHandler name="/select" class="solr.SearchHandler">
722
- <!-- default values for query parameters can be specified, these
723
- will be overridden by parameters in the request
724
- -->
725
- <lst name="defaults">
726
- <str name="echoParams">explicit</str>
727
- <int name="rows">10</int>
728
- <!-- Default search field
729
- <str name="df">text</str>
730
- -->
731
- <!-- Change from JSON to XML format (the default prior to Solr 7.0)
732
- <str name="wt">xml</str>
733
- -->
734
- <!-- Controls the distribution of a query to shards other than itself.
735
- Consider making 'preferLocalShards' true when:
736
- 1) maxShardsPerNode > 1
737
- 2) Number of shards > 1
738
- 3) CloudSolrClient or LbHttpSolrServer is used by clients.
739
- Without this option, every core broadcasts the distributed query to
740
- a replica of each shard where the replicas are chosen randomly.
741
- This option directs the cores to prefer cores hosted locally, thus
742
- preventing network delays between machines.
743
- This behavior also immunizes a bad/slow machine from slowing down all
744
- the good machines (if those good machines were querying this bad one).
745
-
746
- Specify this option=false for clients connecting through HttpSolrServer
747
- -->
748
- <bool name="preferLocalShards">false</bool>
749
- </lst>
750
- <!-- In addition to defaults, "appends" params can be specified
751
- to identify values which should be appended to the list of
752
- multi-val params from the query (or the existing "defaults").
753
- -->
754
- <!-- In this example, the param "fq=instock:true" would be appended to
755
- any query time fq params the user may specify, as a mechanism for
756
- partitioning the index, independent of any user selected filtering
757
- that may also be desired (perhaps as a result of faceted searching).
758
-
759
- NOTE: there is *absolutely* nothing a client can do to prevent these
760
- "appends" values from being used, so don't use this mechanism
761
- unless you are sure you always want it.
762
- -->
763
- <!--
764
- <lst name="appends">
765
- <str name="fq">inStock:true</str>
766
- </lst>
767
- -->
768
- <!-- "invariants" are a way of letting the Solr maintainer lock down
769
- the options available to Solr clients. Any params values
770
- specified here are used regardless of what values may be specified
771
- in either the query, the "defaults", or the "appends" params.
772
-
773
- In this example, the facet.field and facet.query params would
774
- be fixed, limiting the facets clients can use. Faceting is
775
- not turned on by default - but if the client does specify
776
- facet=true in the request, these are the only facets they
777
- will be able to see counts for; regardless of what other
778
- facet.field or facet.query params they may specify.
779
-
780
- NOTE: there is *absolutely* nothing a client can do to prevent these
781
- "invariants" values from being used, so don't use this mechanism
782
- unless you are sure you always want it.
783
- -->
784
- <!--
785
- <lst name="invariants">
786
- <str name="facet.field">cat</str>
787
- <str name="facet.field">manu_exact</str>
788
- <str name="facet.query">price:[* TO 500]</str>
789
- <str name="facet.query">price:[500 TO *]</str>
790
- </lst>
791
- -->
792
- <!-- If the default list of SearchComponents is not desired, that
793
- list can either be overridden completely, or components can be
794
- prepended or appended to the default list. (see below)
795
- -->
796
- <!--
797
- <arr name="components">
798
- <str>nameOfCustomComponent1</str>
799
- <str>nameOfCustomComponent2</str>
800
- </arr>
801
- -->
802
- </requestHandler>
803
-
804
- <!-- A request handler that returns indented JSON by default -->
805
- <requestHandler name="/query" class="solr.SearchHandler">
806
- <lst name="defaults">
807
- <str name="echoParams">explicit</str>
808
- <str name="wt">json</str>
809
- <str name="indent">true</str>
810
- <str name="df">text</str>
811
- </lst>
812
- </requestHandler>
813
-
814
- <!-- A Robust Example
815
-
816
- This example SearchHandler declaration shows off usage of the
817
- SearchHandler with many defaults declared
818
-
819
- Note that multiple instances of the same Request Handler
820
- (SearchHandler) can be registered multiple times with different
821
- names (and different init parameters)
822
- -->
823
- <requestHandler name="/browse" class="solr.SearchHandler">
824
- <lst name="defaults">
825
- <str name="echoParams">explicit</str>
826
-
827
- <!-- VelocityResponseWriter settings -->
828
- <str name="wt">velocity</str>
829
- <str name="v.template">browse</str>
830
- <str name="v.layout">layout</str>
831
- <str name="title">Solritas</str>
832
-
833
- <!-- Query settings -->
834
- <str name="defType">edismax</str>
835
- <str name="qf">
836
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
837
- title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
838
- </str>
839
- <str name="mm">100%</str>
840
- <str name="q.alt">*:*</str>
841
- <str name="rows">10</str>
842
- <str name="fl">*,score</str>
843
-
844
- <str name="mlt.qf">
845
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
846
- title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
847
- </str>
848
- <str name="mlt.fl">text,features,name,sku,id,manu,cat,title,description,keywords,author,resourcename</str>
849
- <int name="mlt.count">3</int>
850
-
851
- <!-- Faceting defaults -->
852
- <str name="facet">on</str>
853
- <str name="facet.missing">true</str>
854
- <str name="facet.field">cat</str>
855
- <str name="facet.field">manu_exact</str>
856
- <str name="facet.field">content_type</str>
857
- <str name="facet.field">author_s</str>
858
- <str name="facet.query">ipod</str>
859
- <str name="facet.query">GB</str>
860
- <str name="facet.mincount">1</str>
861
- <str name="facet.pivot">cat,inStock</str>
862
- <str name="facet.range.other">after</str>
863
- <str name="facet.range">price</str>
864
- <int name="f.price.facet.range.start">0</int>
865
- <int name="f.price.facet.range.end">600</int>
866
- <int name="f.price.facet.range.gap">50</int>
867
- <str name="facet.range">popularity</str>
868
- <int name="f.popularity.facet.range.start">0</int>
869
- <int name="f.popularity.facet.range.end">10</int>
870
- <int name="f.popularity.facet.range.gap">3</int>
871
- <str name="facet.range">manufacturedate_dt</str>
872
- <str name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
873
- <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
874
- <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
875
- <str name="f.manufacturedate_dt.facet.range.other">before</str>
876
- <str name="f.manufacturedate_dt.facet.range.other">after</str>
877
-
878
- <!-- Highlighting defaults -->
879
- <str name="hl">on</str>
880
- <str name="hl.fl">content features title name</str>
881
- <str name="hl.preserveMulti">true</str>
882
- <str name="hl.encoder">html</str>
883
- <str name="hl.simple.pre">&lt;b&gt;</str>
884
- <str name="hl.simple.post">&lt;/b&gt;</str>
885
- <str name="f.title.hl.fragsize">0</str>
886
- <str name="f.title.hl.alternateField">title</str>
887
- <str name="f.name.hl.fragsize">0</str>
888
- <str name="f.name.hl.alternateField">name</str>
889
- <str name="f.content.hl.snippets">3</str>
890
- <str name="f.content.hl.fragsize">200</str>
891
- <str name="f.content.hl.alternateField">content</str>
892
- <str name="f.content.hl.maxAlternateFieldLength">750</str>
893
-
894
- <!-- Spell checking defaults -->
895
- <str name="spellcheck">on</str>
896
- <str name="spellcheck.extendedResults">false</str>
897
- <str name="spellcheck.count">5</str>
898
- <str name="spellcheck.alternativeTermCount">2</str>
899
- <str name="spellcheck.maxResultsForSuggest">5</str>
900
- <str name="spellcheck.collate">true</str>
901
- <str name="spellcheck.collateExtendedResults">true</str>
902
- <str name="spellcheck.maxCollationTries">5</str>
903
- <str name="spellcheck.maxCollations">3</str>
904
- </lst>
905
-
906
- <!-- append spellchecking to our list of components -->
907
- <arr name="last-components">
908
- <str>spellcheck</str>
909
- </arr>
910
- </requestHandler>
911
-
912
-
913
- <initParams path="/update/**,/query,/select,/tvrh,/elevate,/spell,/browse,update">
914
- <lst name="defaults">
915
- <str name="df">text</str>
916
- </lst>
917
- </initParams>
918
-
919
- <!-- The following are implicitly added
920
- <requestHandler name="/update/json" class="solr.UpdateRequestHandler">
921
- <lst name="invariants">
922
- <str name="stream.contentType">application/json</str>
923
- </lst>
924
- </requestHandler>
925
- <requestHandler name="/update/csv" class="solr.UpdateRequestHandler">
926
- <lst name="invariants">
927
- <str name="stream.contentType">application/csv</str>
928
- </lst>
929
- </requestHandler>
930
- -->
931
-
932
- <!-- Solr Cell Update Request Handler
933
-
934
- http://wiki.apache.org/solr/ExtractingRequestHandler
935
-
936
- -->
937
- <requestHandler name="/update/extract"
938
- startup="lazy"
939
- class="solr.extraction.ExtractingRequestHandler" >
940
- <lst name="defaults">
941
- <str name="lowernames">true</str>
942
- <str name="uprefix">ignored_</str>
943
-
944
- <!-- capture link hrefs but ignore div attributes -->
945
- <str name="captureAttr">true</str>
946
- <str name="fmap.a">links</str>
947
- <str name="fmap.div">ignored_</str>
948
- </lst>
949
- </requestHandler>
950
-
951
- <!-- Search Components
952
-
953
- Search components are registered to SolrCore and used by
954
- instances of SearchHandler (which can access them by name)
955
-
956
- By default, the following components are available:
957
-
958
- <searchComponent name="query" class="solr.QueryComponent" />
959
- <searchComponent name="facet" class="solr.FacetComponent" />
960
- <searchComponent name="mlt" class="solr.MoreLikeThisComponent" />
961
- <searchComponent name="highlight" class="solr.HighlightComponent" />
962
- <searchComponent name="stats" class="solr.StatsComponent" />
963
- <searchComponent name="debug" class="solr.DebugComponent" />
964
-
965
- Default configuration in a requestHandler would look like:
966
-
967
- <arr name="components">
968
- <str>query</str>
969
- <str>facet</str>
970
- <str>mlt</str>
971
- <str>highlight</str>
972
- <str>stats</str>
973
- <str>debug</str>
974
- </arr>
975
-
976
- If you register a searchComponent to one of the standard names,
977
- that will be used instead of the default.
978
-
979
- To insert components before or after the 'standard' components, use:
980
-
981
- <arr name="first-components">
982
- <str>myFirstComponentName</str>
983
- </arr>
984
-
985
- <arr name="last-components">
986
- <str>myLastComponentName</str>
987
- </arr>
988
-
989
- NOTE: The component registered with the name "debug" will
990
- always be executed after the "last-components"
991
-
992
- -->
993
-
994
- <!-- Spell Check
995
-
996
- The spell check component can return a list of alternative spelling
997
- suggestions.
998
-
999
- http://wiki.apache.org/solr/SpellCheckComponent
1000
- -->
1001
- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
1002
-
1003
- <str name="queryAnalyzerFieldType">text_general</str>
1004
-
1005
- <!-- Multiple "Spell Checkers" can be declared and used by this
1006
- component
1007
- -->
1008
-
1009
- <!-- a spellchecker built from a field of the main index -->
1010
- <lst name="spellchecker">
1011
- <str name="name">default</str>
1012
- <str name="field">text</str>
1013
- <str name="classname">solr.DirectSolrSpellChecker</str>
1014
- <!-- the spellcheck distance measure used, the default is the internal levenshtein -->
1015
- <str name="distanceMeasure">internal</str>
1016
- <!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
1017
- <float name="accuracy">0.5</float>
1018
- <!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
1019
- <int name="maxEdits">2</int>
1020
- <!-- the minimum shared prefix when enumerating terms -->
1021
- <int name="minPrefix">1</int>
1022
- <!-- maximum number of inspections per result. -->
1023
- <int name="maxInspections">5</int>
1024
- <!-- minimum length of a query term to be considered for correction -->
1025
- <int name="minQueryLength">4</int>
1026
- <!-- maximum threshold of documents a query term can appear to be considered for correction -->
1027
- <float name="maxQueryFrequency">0.01</float>
1028
- <!-- uncomment this to require suggestions to occur in 1% of the documents
1029
- <float name="thresholdTokenFrequency">.01</float>
1030
- -->
1031
- </lst>
1032
-
1033
- <!-- a spellchecker that can break or combine words. See "/spell" handler below for usage -->
1034
- <lst name="spellchecker">
1035
- <str name="name">wordbreak</str>
1036
- <str name="classname">solr.WordBreakSolrSpellChecker</str>
1037
- <str name="field">name</str>
1038
- <str name="combineWords">true</str>
1039
- <str name="breakWords">true</str>
1040
- <int name="maxChanges">10</int>
1041
- </lst>
1042
-
1043
- <!-- a spellchecker that uses a different distance measure -->
1044
- <!--
1045
- <lst name="spellchecker">
1046
- <str name="name">jarowinkler</str>
1047
- <str name="field">spell</str>
1048
- <str name="classname">solr.DirectSolrSpellChecker</str>
1049
- <str name="distanceMeasure">
1050
- org.apache.lucene.search.spell.JaroWinklerDistance
1051
- </str>
1052
- </lst>
1053
- -->
1054
-
1055
- <!-- a spellchecker that use an alternate comparator
1056
-
1057
- comparatorClass be one of:
1058
- 1. score (default)
1059
- 2. freq (Frequency first, then score)
1060
- 3. A fully qualified class name
1061
- -->
1062
- <!--
1063
- <lst name="spellchecker">
1064
- <str name="name">freq</str>
1065
- <str name="field">lowerfilt</str>
1066
- <str name="classname">solr.DirectSolrSpellChecker</str>
1067
- <str name="comparatorClass">freq</str>
1068
- </lst>
1069
- -->
1070
-
1071
- <!-- A spellchecker that reads the list of words from a file -->
1072
- <!--
1073
- <lst name="spellchecker">
1074
- <str name="classname">solr.FileBasedSpellChecker</str>
1075
- <str name="name">file</str>
1076
- <str name="sourceLocation">spellings.txt</str>
1077
- <str name="characterEncoding">UTF-8</str>
1078
- <str name="spellcheckIndexDir">spellcheckerFile</str>
1079
- </lst>
1080
- -->
1081
- </searchComponent>
1082
-
1083
- <!-- A request handler for demonstrating the spellcheck component.
1084
-
1085
- NOTE: This is purely as an example. The whole purpose of the
1086
- SpellCheckComponent is to hook it into the request handler that
1087
- handles your normal user queries so that a separate request is
1088
- not needed to get suggestions.
1089
-
1090
- IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
1091
- NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
1092
-
1093
- See http://wiki.apache.org/solr/SpellCheckComponent for details
1094
- on the request parameters.
1095
- -->
1096
- <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
1097
- <lst name="defaults">
1098
- <!-- Solr will use suggestions from both the 'default' spellchecker
1099
- and from the 'wordbreak' spellchecker and combine them.
1100
- collations (re-written queries) can include a combination of
1101
- corrections from both spellcheckers -->
1102
- <str name="spellcheck.dictionary">default</str>
1103
- <str name="spellcheck.dictionary">wordbreak</str>
1104
- <str name="spellcheck">on</str>
1105
- <str name="spellcheck.extendedResults">true</str>
1106
- <str name="spellcheck.count">10</str>
1107
- <str name="spellcheck.alternativeTermCount">5</str>
1108
- <str name="spellcheck.maxResultsForSuggest">5</str>
1109
- <str name="spellcheck.collate">true</str>
1110
- <str name="spellcheck.collateExtendedResults">true</str>
1111
- <str name="spellcheck.maxCollationTries">10</str>
1112
- <str name="spellcheck.maxCollations">5</str>
1113
- </lst>
1114
- <arr name="last-components">
1115
- <str>spellcheck</str>
1116
- </arr>
1117
- </requestHandler>
1118
-
1119
- <!-- The SuggestComponent in Solr provides users with automatic suggestions for query terms.
1120
- You can use this to implement a powerful auto-suggest feature in your search application.
1121
- As with the rest of this solrconfig.xml file, the configuration of this component is purely
1122
- an example that applies specifically to this configset and example documents.
1123
-
1124
- More information about this component and other configuration options are described in the
1125
- "Suggester" section of the reference guide available at
1126
- http://archive.apache.org/dist/lucene/solr/ref-guide
1127
- -->
1128
- <searchComponent name="suggest" class="solr.SuggestComponent">
1129
- <lst name="suggester">
1130
- <str name="name">mySuggester</str>
1131
- <str name="lookupImpl">FuzzyLookupFactory</str>
1132
- <str name="dictionaryImpl">DocumentDictionaryFactory</str>
1133
- <str name="field">cat</str>
1134
- <str name="weightField">price</str>
1135
- <str name="suggestAnalyzerFieldType">string</str>
1136
- <str name="buildOnStartup">false</str>
1137
- </lst>
1138
- </searchComponent>
1139
-
1140
- <requestHandler name="/suggest" class="solr.SearchHandler"
1141
- startup="lazy" >
1142
- <lst name="defaults">
1143
- <str name="suggest">true</str>
1144
- <str name="suggest.count">10</str>
1145
- </lst>
1146
- <arr name="components">
1147
- <str>suggest</str>
1148
- </arr>
1149
- </requestHandler>
1150
-
1151
-
1152
- <!-- Term Vector Component
1153
-
1154
- http://wiki.apache.org/solr/TermVectorComponent
1155
- -->
1156
- <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
1157
-
1158
- <!-- A request handler for demonstrating the term vector component
1159
-
1160
- This is purely as an example.
1161
-
1162
- In reality you will likely want to add the component to your
1163
- already specified request handlers.
1164
- -->
1165
- <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
1166
- <lst name="defaults">
1167
- <bool name="tv">true</bool>
1168
- </lst>
1169
- <arr name="last-components">
1170
- <str>tvComponent</str>
1171
- </arr>
1172
- </requestHandler>
1173
-
1174
- <!-- Clustering Component
1175
-
1176
- You'll need to set the solr.clustering.enabled system property
1177
- when running solr to run with clustering enabled:
1178
- -Dsolr.clustering.enabled=true
1179
-
1180
- https://lucene.apache.org/solr/guide/result-clustering.html
1181
- -->
1182
- <searchComponent name="clustering"
1183
- enable="${solr.clustering.enabled:false}"
1184
- class="solr.clustering.ClusteringComponent" >
1185
- <!--
1186
- Declaration of "engines" (clustering algorithms).
1187
-
1188
- The open source algorithms from Carrot2.org project:
1189
- * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
1190
- * org.carrot2.clustering.stc.STCClusteringAlgorithm
1191
- * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
1192
- See http://project.carrot2.org/algorithms.html for more information.
1193
-
1194
- Commercial algorithm Lingo3G (needs to be installed separately):
1195
- * com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm
1196
- -->
1197
-
1198
- <lst name="engine">
1199
- <str name="name">lingo3g</str>
1200
- <bool name="optional">true</bool>
1201
- <str name="carrot.algorithm">com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm</str>
1202
- <str name="carrot.resourcesDir">clustering/carrot2</str>
1203
- </lst>
1204
-
1205
- <lst name="engine">
1206
- <str name="name">lingo</str>
1207
- <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
1208
- <str name="carrot.resourcesDir">clustering/carrot2</str>
1209
- </lst>
1210
-
1211
- <lst name="engine">
1212
- <str name="name">stc</str>
1213
- <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
1214
- <str name="carrot.resourcesDir">clustering/carrot2</str>
1215
- </lst>
1216
-
1217
- <lst name="engine">
1218
- <str name="name">kmeans</str>
1219
- <str name="carrot.algorithm">org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm</str>
1220
- <str name="carrot.resourcesDir">clustering/carrot2</str>
1221
- </lst>
1222
- </searchComponent>
1223
-
1224
- <!-- A request handler for demonstrating the clustering component.
1225
- This is meant as an example.
1226
- In reality you will likely want to add the component to your
1227
- already specified request handlers.
1228
- -->
1229
- <requestHandler name="/clustering"
1230
- startup="lazy"
1231
- enable="${solr.clustering.enabled:false}"
1232
- class="solr.SearchHandler">
1233
- <lst name="defaults">
1234
- <bool name="clustering">true</bool>
1235
- <bool name="clustering.results">true</bool>
1236
- <!-- Field name with the logical "title" of a each document (optional) -->
1237
- <str name="carrot.title">name</str>
1238
- <!-- Field name with the logical "URL" of a each document (optional) -->
1239
- <str name="carrot.url">id</str>
1240
- <!-- Field name with the logical "content" of a each document (optional) -->
1241
- <str name="carrot.snippet">features</str>
1242
- <!-- Apply highlighter to the title/ content and use this for clustering. -->
1243
- <bool name="carrot.produceSummary">true</bool>
1244
- <!-- the maximum number of labels per cluster -->
1245
- <!--<int name="carrot.numDescriptions">5</int>-->
1246
- <!-- produce sub clusters -->
1247
- <bool name="carrot.outputSubClusters">false</bool>
1248
-
1249
- <!-- Configure the remaining request handler parameters. -->
1250
- <str name="defType">edismax</str>
1251
- <str name="qf">
1252
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
1253
- </str>
1254
- <str name="q.alt">*:*</str>
1255
- <str name="rows">100</str>
1256
- <str name="fl">*,score</str>
1257
- </lst>
1258
- <arr name="last-components">
1259
- <str>clustering</str>
1260
- </arr>
1261
- </requestHandler>
1262
-
1263
- <!-- Terms Component
1264
-
1265
- http://wiki.apache.org/solr/TermsComponent
1266
-
1267
- A component to return terms and document frequency of those
1268
- terms
1269
- -->
1270
- <searchComponent name="terms" class="solr.TermsComponent"/>
1271
-
1272
- <!-- A request handler for demonstrating the terms component -->
1273
- <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
1274
- <lst name="defaults">
1275
- <bool name="terms">true</bool>
1276
- <bool name="distrib">false</bool>
1277
- </lst>
1278
- <arr name="components">
1279
- <str>terms</str>
1280
- </arr>
1281
- </requestHandler>
1282
-
1283
-
1284
- <!-- Query Elevation Component
1285
-
1286
- http://wiki.apache.org/solr/QueryElevationComponent
1287
-
1288
- a search component that enables you to configure the top
1289
- results for a given query regardless of the normal lucene
1290
- scoring.
1291
- -->
1292
- <searchComponent name="elevator" class="solr.QueryElevationComponent" >
1293
- <!-- pick a fieldType to analyze queries -->
1294
- <str name="queryFieldType">string</str>
1295
- <str name="config-file">elevate.xml</str>
1296
- </searchComponent>
1297
-
1298
- <!-- A request handler for demonstrating the elevator component -->
1299
- <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
1300
- <lst name="defaults">
1301
- <str name="echoParams">explicit</str>
1302
- </lst>
1303
- <arr name="last-components">
1304
- <str>elevator</str>
1305
- </arr>
1306
- </requestHandler>
1307
-
1308
- <!-- Highlighting Component
1309
-
1310
- http://wiki.apache.org/solr/HighlightingParameters
1311
- -->
1312
- <searchComponent class="solr.HighlightComponent" name="highlight">
1313
- <highlighting>
1314
- <!-- Configure the standard fragmenter -->
1315
- <!-- This could most likely be commented out in the "default" case -->
1316
- <fragmenter name="gap"
1317
- default="true"
1318
- class="solr.highlight.GapFragmenter">
1319
- <lst name="defaults">
1320
- <int name="hl.fragsize">100</int>
1321
- </lst>
1322
- </fragmenter>
1323
-
1324
- <!-- A regular-expression-based fragmenter
1325
- (for sentence extraction)
1326
- -->
1327
- <fragmenter name="regex"
1328
- class="solr.highlight.RegexFragmenter">
1329
- <lst name="defaults">
1330
- <!-- slightly smaller fragsizes work better because of slop -->
1331
- <int name="hl.fragsize">70</int>
1332
- <!-- allow 50% slop on fragment sizes -->
1333
- <float name="hl.regex.slop">0.5</float>
1334
- <!-- a basic sentence pattern -->
1335
- <str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
1336
- </lst>
1337
- </fragmenter>
1338
-
1339
- <!-- Configure the standard formatter -->
1340
- <formatter name="html"
1341
- default="true"
1342
- class="solr.highlight.HtmlFormatter">
1343
- <lst name="defaults">
1344
- <str name="hl.simple.pre"><![CDATA[<em>]]></str>
1345
- <str name="hl.simple.post"><![CDATA[</em>]]></str>
1346
- </lst>
1347
- </formatter>
1348
-
1349
- <!-- Configure the standard encoder -->
1350
- <encoder name="html"
1351
- class="solr.highlight.HtmlEncoder" />
1352
-
1353
- <!-- Configure the standard fragListBuilder -->
1354
- <fragListBuilder name="simple"
1355
- class="solr.highlight.SimpleFragListBuilder"/>
1356
-
1357
- <!-- Configure the single fragListBuilder -->
1358
- <fragListBuilder name="single"
1359
- class="solr.highlight.SingleFragListBuilder"/>
1360
-
1361
- <!-- Configure the weighted fragListBuilder -->
1362
- <fragListBuilder name="weighted"
1363
- default="true"
1364
- class="solr.highlight.WeightedFragListBuilder"/>
1365
-
1366
- <!-- default tag FragmentsBuilder -->
1367
- <fragmentsBuilder name="default"
1368
- default="true"
1369
- class="solr.highlight.ScoreOrderFragmentsBuilder">
1370
- <!--
1371
- <lst name="defaults">
1372
- <str name="hl.multiValuedSeparatorChar">/</str>
1373
- </lst>
1374
- -->
1375
- </fragmentsBuilder>
1376
-
1377
- <!-- multi-colored tag FragmentsBuilder -->
1378
- <fragmentsBuilder name="colored"
1379
- class="solr.highlight.ScoreOrderFragmentsBuilder">
1380
- <lst name="defaults">
1381
- <str name="hl.tag.pre"><![CDATA[
1382
- <b style="background:yellow">,<b style="background:lawgreen">,
1383
- <b style="background:aquamarine">,<b style="background:magenta">,
1384
- <b style="background:palegreen">,<b style="background:coral">,
1385
- <b style="background:wheat">,<b style="background:khaki">,
1386
- <b style="background:lime">,<b style="background:deepskyblue">]]></str>
1387
- <str name="hl.tag.post"><![CDATA[</b>]]></str>
1388
- </lst>
1389
- </fragmentsBuilder>
1390
-
1391
- <boundaryScanner name="default"
1392
- default="true"
1393
- class="solr.highlight.SimpleBoundaryScanner">
1394
- <lst name="defaults">
1395
- <str name="hl.bs.maxScan">10</str>
1396
- <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
1397
- </lst>
1398
- </boundaryScanner>
1399
-
1400
- <boundaryScanner name="breakIterator"
1401
- class="solr.highlight.BreakIteratorBoundaryScanner">
1402
- <lst name="defaults">
1403
- <!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
1404
- <str name="hl.bs.type">WORD</str>
1405
- <!-- language and country are used when constructing Locale object. -->
1406
- <!-- And the Locale object will be used when getting instance of BreakIterator -->
1407
- <str name="hl.bs.language">en</str>
1408
- <str name="hl.bs.country">US</str>
1409
- </lst>
1410
- </boundaryScanner>
1411
- </highlighting>
1412
- </searchComponent>
1413
-
1414
- <!-- Update Processors
1415
-
1416
- Chains of Update Processor Factories for dealing with Update
1417
- Requests can be declared, and then used by name in Update
1418
- Request Processors
1419
-
1420
- http://wiki.apache.org/solr/UpdateRequestProcessor
1421
-
1422
- -->
1423
- <!-- Deduplication
1424
-
1425
- An example dedup update processor that creates the "id" field
1426
- on the fly based on the hash code of some other fields. This
1427
- example has overwriteDupes set to false since we are using the
1428
- id field as the signatureField and Solr will maintain
1429
- uniqueness based on that anyway.
1430
-
1431
- -->
1432
- <!--
1433
- <updateRequestProcessorChain name="dedupe">
1434
- <processor class="solr.processor.SignatureUpdateProcessorFactory">
1435
- <bool name="enabled">true</bool>
1436
- <str name="signatureField">id</str>
1437
- <bool name="overwriteDupes">false</bool>
1438
- <str name="fields">name,features,cat</str>
1439
- <str name="signatureClass">solr.processor.Lookup3Signature</str>
1440
- </processor>
1441
- <processor class="solr.LogUpdateProcessorFactory" />
1442
- <processor class="solr.RunUpdateProcessorFactory" />
1443
- </updateRequestProcessorChain>
1444
- -->
1445
-
1446
- <!-- Language identification
1447
-
1448
- This example update chain identifies the language of the incoming
1449
- documents using the langid contrib. The detected language is
1450
- written to field language_s. No field name mapping is done.
1451
- The fields used for detection are text, title, subject and description,
1452
- making this example suitable for detecting languages form full-text
1453
- rich documents injected via ExtractingRequestHandler.
1454
- See more about langId at http://wiki.apache.org/solr/LanguageDetection
1455
- -->
1456
- <!--
1457
- <updateRequestProcessorChain name="langid">
1458
- <processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
1459
- <str name="langid.fl">text,title,subject,description</str>
1460
- <str name="langid.langField">language_s</str>
1461
- <str name="langid.fallback">en</str>
1462
- </processor>
1463
- <processor class="solr.LogUpdateProcessorFactory" />
1464
- <processor class="solr.RunUpdateProcessorFactory" />
1465
- </updateRequestProcessorChain>
1466
- -->
1467
-
1468
- <!-- Script update processor
1469
-
1470
- This example hooks in an update processor implemented using JavaScript.
1471
-
1472
- See more about the script update processor at http://wiki.apache.org/solr/ScriptUpdateProcessor
1473
- -->
1474
- <!--
1475
- <updateRequestProcessorChain name="script">
1476
- <processor class="solr.StatelessScriptUpdateProcessorFactory">
1477
- <str name="script">update-script.js</str>
1478
- <lst name="params">
1479
- <str name="config_param">example config parameter</str>
1480
- </lst>
1481
- </processor>
1482
- <processor class="solr.RunUpdateProcessorFactory" />
1483
- </updateRequestProcessorChain>
1484
- -->
1485
-
1486
- <!-- Response Writers
1487
-
1488
- http://wiki.apache.org/solr/QueryResponseWriter
1489
-
1490
- Request responses will be written using the writer specified by
1491
- the 'wt' request parameter matching the name of a registered
1492
- writer.
1493
-
1494
- The "default" writer is the default and will be used if 'wt' is
1495
- not specified in the request.
1496
- -->
1497
- <!-- The following response writers are implicitly configured unless
1498
- overridden...
1499
- -->
1500
- <!--
1501
- <queryResponseWriter name="xml"
1502
- default="true"
1503
- class="solr.XMLResponseWriter" />
1504
- <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
1505
- <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
1506
- <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
1507
- <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
1508
- <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
1509
- <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
1510
- <queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
1511
- -->
1512
-
1513
- <queryResponseWriter name="json" class="solr.JSONResponseWriter">
1514
- <!-- For the purposes of the tutorial, JSON responses are written as
1515
- plain text so that they are easy to read in *any* browser.
1516
- If you expect a MIME type of "application/json" just remove this override.
1517
- -->
1518
- <str name="content-type">text/plain; charset=UTF-8</str>
1519
- </queryResponseWriter>
1520
-
1521
- <!--
1522
- Custom response writers can be declared as needed...
1523
- -->
1524
- <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy">
1525
- <str name="template.base.dir">${velocity.template.base.dir:}</str>
1526
- </queryResponseWriter>
1527
-
1528
-
1529
- <!-- XSLT response writer transforms the XML output by any xslt file found
1530
- in Solr's conf/xslt directory. Changes to xslt files are checked for
1531
- every xsltCacheLifetimeSeconds.
1532
- -->
1533
- <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
1534
- <int name="xsltCacheLifetimeSeconds">5</int>
1535
- </queryResponseWriter>
1536
-
1537
- <!-- Query Parsers
1538
-
1539
- https://lucene.apache.org/solr/guide/query-syntax-and-parsing.html
1540
-
1541
- Multiple QParserPlugins can be registered by name, and then
1542
- used in either the "defType" param for the QueryComponent (used
1543
- by SearchHandler) or in LocalParams
1544
- -->
1545
- <!-- example of registering a query parser -->
1546
- <!--
1547
- <queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
1548
- -->
1549
-
1550
- <!-- Function Parsers
1551
-
1552
- http://wiki.apache.org/solr/FunctionQuery
1553
-
1554
- Multiple ValueSourceParsers can be registered by name, and then
1555
- used as function names when using the "func" QParser.
1556
- -->
1557
- <!-- example of registering a custom function parser -->
1558
- <!--
1559
- <valueSourceParser name="myfunc"
1560
- class="com.mycompany.MyValueSourceParser" />
1561
- -->
1562
-
1563
- <!-- LTR query parser
1564
-
1565
- You will need to set the solr.ltr.enabled system property
1566
- when running solr to run with ltr enabled:
1567
- -Dsolr.ltr.enabled=true
1568
-
1569
- https://lucene.apache.org/solr/guide/learning-to-rank.html
1570
-
1571
- Query parser is used to rerank top docs with a provided model
1572
- -->
1573
- <queryParser enable="${solr.ltr.enabled:false}" name="ltr" class="org.apache.solr.ltr.search.LTRQParserPlugin"/>
1574
-
1575
- <!-- Document Transformers
1576
- http://wiki.apache.org/solr/DocTransformers
1577
- -->
1578
- <!--
1579
- Could be something like:
1580
- <transformer name="db" class="com.mycompany.LoadFromDatabaseTransformer" >
1581
- <int name="connection">jdbc://....</int>
1582
- </transformer>
1583
-
1584
- To add a constant value to all docs, use:
1585
- <transformer name="mytrans2" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
1586
- <int name="value">5</int>
1587
- </transformer>
1588
-
1589
- If you want the user to still be able to change it with _value:something_ use this:
1590
- <transformer name="mytrans3" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
1591
- <double name="defaultValue">5</double>
1592
- </transformer>
1593
-
1594
- If you are using the QueryElevationComponent, you may wish to mark documents that get boosted. The
1595
- EditorialMarkerFactory will do exactly that:
1596
- <transformer name="qecBooster" class="org.apache.solr.response.transform.EditorialMarkerFactory" />
1597
- -->
1598
-
1599
- <!--
1600
- LTR Transformer will encode the document features in the response. For each document the transformer
1601
- will add the features as an extra field in the response. The name of the field will be the
1602
- name of the transformer enclosed between brackets (in this case [features]).
1603
- In order to get the feature vector you will have to specify that you
1604
- want the field (e.g., fl="*,[features])
1605
-
1606
- You will need to set the solr.ltr.enabled system property
1607
- when running solr to run with ltr enabled:
1608
- -Dsolr.ltr.enabled=true
1609
-
1610
- https://lucene.apache.org/solr/guide/learning-to-rank.html
1611
- -->
1612
- <transformer enable="${solr.ltr.enabled:false}" name="features" class="org.apache.solr.ltr.response.transform.LTRFeatureLoggerTransformerFactory">
1613
- <str name="fvCacheName">QUERY_DOC_FV</str>
1614
- </transformer>
1615
-
1616
- </config>