smartcloud 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +21 -0
  3. data/README.md +79 -0
  4. data/bin/runner +20 -0
  5. data/bin/smartcloud +54 -0
  6. data/lib/smartcloud.rb +16 -0
  7. data/lib/smartcloud/boot.rb +93 -0
  8. data/lib/smartcloud/docker.rb +120 -0
  9. data/lib/smartcloud/grids/grid-mysql/docker-entrypoint-initdb.d/.keep +0 -0
  10. data/lib/smartcloud/grids/grid-nginx/fastcgi.conf +9 -0
  11. data/lib/smartcloud/grids/grid-nginx/nginx.tmpl +373 -0
  12. data/lib/smartcloud/grids/grid-runner/Dockerfile +27 -0
  13. data/lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile +30 -0
  14. data/lib/smartcloud/grids/grid-solr/docker-entrypoint-initdb.d/.keep +0 -0
  15. data/lib/smartcloud/grids/grid-solr/sunspot/conf/schema.xml +278 -0
  16. data/lib/smartcloud/grids/grid-solr/sunspot/conf/solrconfig.xml +632 -0
  17. data/lib/smartcloud/grids/mysql.rb +60 -0
  18. data/lib/smartcloud/grids/nginx.rb +133 -0
  19. data/lib/smartcloud/grids/runner.rb +373 -0
  20. data/lib/smartcloud/grids/solr.rb +92 -0
  21. data/lib/smartcloud/machine.rb +63 -0
  22. data/lib/smartcloud/templates/dotsmartcloud/config/environment.rb +13 -0
  23. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-mysql/data/.keep +0 -0
  24. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/certificates/.keep +0 -0
  25. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/htpasswd/.keep +0 -0
  26. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/users.yml +1 -0
  27. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/apps/containers/.keep +0 -0
  28. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/apps/repositories/.keep +0 -0
  29. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/buildpacks/rails/gems/.keep +0 -0
  30. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive +13 -0
  31. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/.keep +0 -0
  32. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/README.txt +77 -0
  33. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/contractions_ca.txt +8 -0
  34. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/contractions_fr.txt +15 -0
  35. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/contractions_ga.txt +5 -0
  36. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/contractions_it.txt +23 -0
  37. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/hyphenations_ga.txt +5 -0
  38. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stemdict_nl.txt +6 -0
  39. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stoptags_ja.txt +420 -0
  40. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_ar.txt +125 -0
  41. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_bg.txt +193 -0
  42. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_ca.txt +220 -0
  43. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_cz.txt +172 -0
  44. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_da.txt +110 -0
  45. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_de.txt +294 -0
  46. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_el.txt +78 -0
  47. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_en.txt +54 -0
  48. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_es.txt +356 -0
  49. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_eu.txt +99 -0
  50. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_fa.txt +313 -0
  51. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_fi.txt +97 -0
  52. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_fr.txt +186 -0
  53. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_ga.txt +110 -0
  54. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_gl.txt +161 -0
  55. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_hi.txt +235 -0
  56. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_hu.txt +211 -0
  57. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_hy.txt +46 -0
  58. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_id.txt +359 -0
  59. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_it.txt +303 -0
  60. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_ja.txt +127 -0
  61. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_lv.txt +172 -0
  62. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_nl.txt +119 -0
  63. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_no.txt +194 -0
  64. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_pt.txt +253 -0
  65. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_ro.txt +233 -0
  66. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_ru.txt +243 -0
  67. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_sv.txt +133 -0
  68. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_th.txt +119 -0
  69. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/stopwords_tr.txt +212 -0
  70. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/userdict_ja.txt +29 -0
  71. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/managed-schema +1007 -0
  72. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/params.json +20 -0
  73. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/protwords.txt +21 -0
  74. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/solrconfig.xml +1355 -0
  75. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/stopwords.txt +14 -0
  76. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/synonyms.txt +29 -0
  77. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/_rest_managed.json +1 -0
  78. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/_schema_analysis_stopwords_english.json +38 -0
  79. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/_schema_analysis_synonyms_english.json +11 -0
  80. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/clustering/carrot2/README.txt +11 -0
  81. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/clustering/carrot2/kmeans-attributes.xml +19 -0
  82. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/clustering/carrot2/lingo-attributes.xml +24 -0
  83. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/clustering/carrot2/stc-attributes.xml +19 -0
  84. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/currency.xml +67 -0
  85. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/elevate.xml +42 -0
  86. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/contractions_ca.txt +8 -0
  87. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/contractions_fr.txt +15 -0
  88. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/contractions_ga.txt +5 -0
  89. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/contractions_it.txt +23 -0
  90. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/hyphenations_ga.txt +5 -0
  91. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stemdict_nl.txt +6 -0
  92. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stoptags_ja.txt +420 -0
  93. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_ar.txt +125 -0
  94. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_bg.txt +193 -0
  95. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_ca.txt +220 -0
  96. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_ckb.txt +136 -0
  97. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_cz.txt +172 -0
  98. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_da.txt +110 -0
  99. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_de.txt +294 -0
  100. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_el.txt +78 -0
  101. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_en.txt +54 -0
  102. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_es.txt +356 -0
  103. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_eu.txt +99 -0
  104. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_fa.txt +313 -0
  105. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_fi.txt +97 -0
  106. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_fr.txt +186 -0
  107. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_ga.txt +110 -0
  108. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_gl.txt +161 -0
  109. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_hi.txt +235 -0
  110. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_hu.txt +211 -0
  111. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_hy.txt +46 -0
  112. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_id.txt +359 -0
  113. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_it.txt +303 -0
  114. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_ja.txt +127 -0
  115. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_lv.txt +172 -0
  116. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_nl.txt +119 -0
  117. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_no.txt +194 -0
  118. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_pt.txt +253 -0
  119. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_ro.txt +233 -0
  120. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_ru.txt +243 -0
  121. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_sv.txt +133 -0
  122. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_th.txt +119 -0
  123. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/stopwords_tr.txt +212 -0
  124. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/lang/userdict_ja.txt +29 -0
  125. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/managed-schema +1187 -0
  126. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/mapping-FoldToASCII.txt +3813 -0
  127. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/mapping-ISOLatin1Accent.txt +246 -0
  128. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/params.json +11 -0
  129. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/protwords.txt +21 -0
  130. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/solrconfig.xml +1616 -0
  131. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/spellings.txt +2 -0
  132. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/stopwords.txt +14 -0
  133. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/synonyms.txt +29 -0
  134. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/update-script.js +53 -0
  135. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/README.txt +101 -0
  136. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/VM_global_library.vm +186 -0
  137. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/browse.vm +33 -0
  138. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/cluster.vm +19 -0
  139. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/cluster_results.vm +31 -0
  140. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/debug.vm +28 -0
  141. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/did_you_mean.vm +11 -0
  142. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/error.vm +11 -0
  143. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/facet_fields.vm +24 -0
  144. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/facet_pivot.vm +12 -0
  145. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/facet_queries.vm +12 -0
  146. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/facet_ranges.vm +23 -0
  147. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/facets.vm +10 -0
  148. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/footer.vm +43 -0
  149. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/head.vm +37 -0
  150. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/header.vm +7 -0
  151. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/hit.vm +25 -0
  152. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/hit_grouped.vm +43 -0
  153. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/hit_plain.vm +25 -0
  154. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/join_doc.vm +20 -0
  155. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.css +48 -0
  156. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.js +763 -0
  157. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/layout.vm +24 -0
  158. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/main.css +231 -0
  159. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/mime_type_lists.vm +68 -0
  160. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/pagination_bottom.vm +22 -0
  161. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/pagination_top.vm +29 -0
  162. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/product_doc.vm +32 -0
  163. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/query.vm +42 -0
  164. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/query_form.vm +64 -0
  165. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/query_group.vm +43 -0
  166. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/query_spatial.vm +75 -0
  167. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/results_list.vm +22 -0
  168. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/richtext_doc.vm +153 -0
  169. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/suggest.vm +8 -0
  170. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/velocity/tabs.vm +50 -0
  171. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/xslt/example.xsl +132 -0
  172. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/xslt/example_atom.xsl +67 -0
  173. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/xslt/example_rss.xsl +66 -0
  174. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/xslt/luke.xsl +337 -0
  175. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sample_techproducts_configs/conf/xslt/updateXml.xsl +70 -0
  176. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/_rest_managed.json +1 -0
  177. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/admin-extra.html +31 -0
  178. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/currency.xml +67 -0
  179. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/elevate.xml +36 -0
  180. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/lang/stopwords_en.txt +54 -0
  181. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/mapping-ISOLatin1Accent.txt +246 -0
  182. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/protwords.txt +21 -0
  183. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/schema.xml +278 -0
  184. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/scripts.conf +24 -0
  185. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/solrconfig.xml +632 -0
  186. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/spellings.txt +2 -0
  187. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/sunspot/conf/synonyms.txt +29 -0
  188. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/lib/.keep +0 -0
  189. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/solr.xml +53 -0
  190. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/zoo.cfg +31 -0
  191. data/lib/smartcloud/user.rb +72 -0
  192. metadata +237 -0
@@ -0,0 +1,92 @@
1
+ # The main Smartcloud Grids Solr driver
2
+ module Smartcloud
3
+ module Grids
4
+ class Solr
5
+ def initialize
6
+ end
7
+
8
+ def self.up(exposed)
9
+ if Smartcloud::Docker.running?
10
+ # Creating networks
11
+ unless system("docker network inspect solr-network", [:out, :err] => File::NULL)
12
+ print "-----> Creating network solr-network ... "
13
+ if system("docker network create solr-network", out: File::NULL)
14
+ puts "done"
15
+ end
16
+ end
17
+
18
+ print "-----> Settings permissions solr ... "
19
+ if system("sudo chown -R 8983:8983 #{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-solr/data", out: File::NULL)
20
+ puts "done"
21
+ end
22
+
23
+ # Creating & Starting containers
24
+ print "-----> Creating container solr ... "
25
+ if system("docker create \
26
+ --name='solr' \
27
+ #{"--publish='8983:8983'" if exposed == '--exposed'} \
28
+ --volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-solr/data:/opt/solr/server/solr' \
29
+ --restart='always' \
30
+ --network='solr-network' \
31
+ solr:7.5.0", out: File::NULL)
32
+
33
+ puts "done"
34
+ print "-----> Starting container solr ... "
35
+ if system("docker start solr", out: File::NULL)
36
+ puts "done"
37
+ end
38
+ end
39
+ end
40
+ end
41
+
42
+ def self.down
43
+ if Smartcloud::Docker.running?
44
+ # Stopping & Removing containers - in reverse order
45
+ print "-----> Stopping container solr ... "
46
+ if system("docker stop 'solr'", out: File::NULL)
47
+ puts "done"
48
+ print "-----> Removing container solr ... "
49
+ if system("docker rm 'solr'", out: File::NULL)
50
+ puts "done"
51
+ end
52
+ end
53
+
54
+ # Removing networks
55
+ print "-----> Removing network solr-network ... "
56
+ if system("docker network rm solr-network", out: File::NULL)
57
+ puts "done"
58
+ end
59
+ end
60
+ end
61
+
62
+ def self.create_core(corename)
63
+ if Smartcloud::Docker.running?
64
+ puts "-----> Creating core #{corename} ... "
65
+ if system("docker exec -it --user=solr solr solr create_core -c #{corename}")
66
+ system("docker exec -it --user=solr solr solr config -c #{corename} -p 8983 -action set-user-property -property update.autoCreateFields -value false")
67
+ puts "done"
68
+
69
+ print "-----> Copying core files ... "
70
+ system("sudo cp -r #{Smartcloud.config.root_path}/lib/smartcloud/grids/grid-solr/sunspot/conf/* #{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-solr/data/#{corename}/conf/")
71
+ if system("sudo chown -R 8983:8983 #{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-solr/data/#{corename}/conf", out: File::NULL)
72
+ puts "done"
73
+ end
74
+ else
75
+ puts "error"
76
+ end
77
+ end
78
+ end
79
+
80
+ def self.destroy_core(corename)
81
+ if Smartcloud::Docker.running?
82
+ puts "-----> Removing core #{corename} ... "
83
+ if system("docker exec -it --user=solr solr solr delete -c #{corename}")
84
+ puts "done"
85
+ else
86
+ puts "error"
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,63 @@
1
+ # The main Smartcloud Machine driver
2
+ module Smartcloud
3
+ class Machine
4
+ def initialize
5
+ end
6
+
7
+ def getting_started
8
+ # puts 'You may be prompted to make a menu selection when the Grub package is updated on Ubuntu. If prompted, select keep the local version currently installed.'
9
+
10
+ # apt-get update && apt-get upgrade
11
+
12
+ # hostnamectl set-hostname example_hostname
13
+
14
+ # /etc/hosts
15
+ # 127.0.0.1 localhost.localdomain localhost
16
+ # 203.0.113.10 hostname.example.com hostname
17
+ # 2600:3c01::a123:b456:c789:d012 hostname.example.com hostname
18
+ # Add DNS records for IPv4 and IPv6 for ip addresses and their fully qualified domain names FQDN
19
+
20
+ # dpkg-reconfigure tzdata
21
+ # date
22
+ end
23
+
24
+ def securing_your_server
25
+ # sudo apt install unattended-upgrades
26
+
27
+ # sudo nano /etc/apt/apt.conf.d/20auto-upgrades
28
+ # APT::Periodic::Update-Package-Lists "1";
29
+ # APT::Periodic::Download-Upgradeable-Packages "1";
30
+ # APT::Periodic::AutocleanInterval "7";
31
+ # APT::Periodic::Unattended-Upgrade "1";
32
+
33
+ # sudo apt install apticron
34
+ # /etc/apticron/apticron.conf
35
+ # EMAIL="root@example.com"
36
+
37
+ # adduser example_user
38
+ # adduser example_user sudo
39
+
40
+ # mkdir -p ~/.ssh && sudo chmod -R 700 ~/.ssh/
41
+ # scp ~/.ssh/id_rsa.pub example_user@203.0.113.10:~/.ssh/authorized_keys
42
+ # sudo chmod -R 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys
43
+
44
+ # sudo nano /etc/ssh/sshd_config
45
+ # PermitRootLogin no
46
+ # PasswordAuthentication no
47
+ # echo 'AddressFamily inet' | sudo tee -a /etc/ssh/sshd_config
48
+ # sudo systemctl restart sshd
49
+
50
+ # sudo apt-get update && sudo apt-get upgrade -y
51
+ # sudo apt-get install fail2ban
52
+ # sudo apt-get install sendmail
53
+ # sudo ufw allow ssh
54
+ # sudo ufw enable
55
+ # sudo cp /etc/fail2ban/fail2ban.conf /etc/fail2ban/fail2ban.local
56
+ # sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
57
+ # Change destmail, sendername, sender
58
+ # Change action = %(action_mwl)s
59
+ # sudo fail2ban-client reload
60
+ # sudo fail2ban-client status
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,13 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # naked domain to be used for runner apps
4
+ Smartcloud.config.apps_domain = "yourdomain.com"
5
+
6
+ # domain to be used for git runner
7
+ Smartcloud.config.git_domain = "git.yourdomain.com"
8
+
9
+ # sysadmin email id to be used
10
+ Smartcloud.config.sysadmin_email = "admin@yourdomain.com"
11
+
12
+ # letsencrypt test boolean to be used
13
+ Smartcloud.config.letsencrypt_test = false
@@ -0,0 +1,13 @@
1
+ #!/bin/sh
2
+
3
+ # oldrev, newrev, refname are a feature of the way in which Git executes the pre-receive hook.
4
+ # See https://www.kernel.org/pub/software/scm/git/docs/githooks.html
5
+ while read oldrev newrev refname; do
6
+ if [ $(git rev-parse --is-bare-repository) = true ]; then
7
+ REPOSITORY_BASENAME=$(basename "$PWD")
8
+ REPOSITORY_BASENAME=${REPOSITORY_BASENAME%.git}
9
+ else
10
+ REPOSITORY_BASENAME=$(basename $(readlink -nf "$PWD"/..))
11
+ fi
12
+ runner prereceive $REPOSITORY_BASENAME $REMOTE_USER $oldrev $newrev $refname
13
+ done
@@ -0,0 +1,77 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ Default Solr Home Directory
18
+ =============================
19
+
20
+ This directory is the default Solr home directory which holds
21
+ configuration files and Solr indexes (called cores).
22
+
23
+
24
+ Basic Directory Structure
25
+ -------------------------
26
+
27
+ The Solr Home directory typically contains the following...
28
+
29
+ * solr.xml *
30
+
31
+ This is the primary configuration file Solr looks for when starting;
32
+ it specifies high-level configuration options that apply to all
33
+ of your Solr cores, such as cluster-wide SolrCloud settings like
34
+ the ZooKeeper client timeout.
35
+
36
+ In addition, you can also declare Solr cores in this file, however
37
+ it is recommended to just use automatic core discovery instead of
38
+ listing cores in solr.xml.
39
+
40
+ If no solr.xml file is found, then Solr assumes that there should be
41
+ a single SolrCore named "collection1" and that the "Instance Directory"
42
+ for collection1 should be the same as the Solr Home Directory.
43
+
44
+ For more information about solr.xml, please see:
45
+ https://lucene.apache.org/solr/guide/solr-cores-and-solr-xml.html
46
+
47
+ * Individual SolrCore Instance Directories *
48
+
49
+ Although solr.xml can be configured to look for SolrCore Instance Directories
50
+ in any path, simple sub-directories of the Solr Home Dir using relative paths
51
+ are common for many installations.
52
+
53
+ * Core Discovery *
54
+
55
+ During startup, Solr will scan sub-directories of Solr home looking for
56
+ a specific file named core.properties. If core.properties is found in a
57
+ sub-directory (at any depth), Solr will initialize a core using the properties
58
+ defined in core.properties. For an example of core.properties, please see:
59
+
60
+ example/solr/collection1/core.properties
61
+
62
+ For more information about core discovery, please see:
63
+ https://lucene.apache.org/solr/guide/defining-core-properties.html
64
+
65
+ * A Shared 'lib' Directory *
66
+
67
+ Although solr.xml can be configured with an optional "sharedLib" attribute
68
+ that can point to any path, it is common to use a "./lib" sub-directory of the
69
+ Solr Home Directory.
70
+
71
+ * ZooKeeper Files *
72
+
73
+ When using SolrCloud using the embedded ZooKeeper option for Solr, it is
74
+ common to have a "zoo.cfg" file and "zoo_data" directories in the Solr Home
75
+ Directory. Please see the SolrCloud documentation for more details.
76
+
77
+ https://lucene.apache.org/solr/guide/solrcloud.html
@@ -0,0 +1,8 @@
1
+ # Set of Catalan contractions for ElisionFilter
2
+ # TODO: load this as a resource from the analyzer and sync it in build.xml
3
+ d
4
+ l
5
+ m
6
+ n
7
+ s
8
+ t
@@ -0,0 +1,15 @@
1
+ # Set of French contractions for ElisionFilter
2
+ # TODO: load this as a resource from the analyzer and sync it in build.xml
3
+ l
4
+ m
5
+ t
6
+ qu
7
+ n
8
+ s
9
+ j
10
+ d
11
+ c
12
+ jusqu
13
+ quoiqu
14
+ lorsqu
15
+ puisqu
@@ -0,0 +1,5 @@
1
+ # Set of Irish contractions for ElisionFilter
2
+ # TODO: load this as a resource from the analyzer and sync it in build.xml
3
+ d
4
+ m
5
+ b
@@ -0,0 +1,23 @@
1
+ # Set of Italian contractions for ElisionFilter
2
+ # TODO: load this as a resource from the analyzer and sync it in build.xml
3
+ c
4
+ l
5
+ all
6
+ dall
7
+ dell
8
+ nell
9
+ sull
10
+ coll
11
+ pell
12
+ gl
13
+ agl
14
+ dagl
15
+ degl
16
+ negl
17
+ sugl
18
+ un
19
+ m
20
+ t
21
+ s
22
+ v
23
+ d
@@ -0,0 +1,5 @@
1
+ # Set of Irish hyphenations for StopFilter
2
+ # TODO: load this as a resource from the analyzer and sync it in build.xml
3
+ h
4
+ n
5
+ t
@@ -0,0 +1,6 @@
1
+ # Set of overrides for the dutch stemmer
2
+ # TODO: load this as a resource from the analyzer and sync it in build.xml
3
+ fiets fiets
4
+ bromfiets bromfiets
5
+ ei eier
6
+ kind kinder
@@ -0,0 +1,420 @@
1
+ #
2
+ # This file defines a Japanese stoptag set for JapanesePartOfSpeechStopFilter.
3
+ #
4
+ # Any token with a part-of-speech tag that exactly matches those defined in this
5
+ # file are removed from the token stream.
6
+ #
7
+ # Set your own stoptags by uncommenting the lines below. Note that comments are
8
+ # not allowed on the same line as a stoptag. See LUCENE-3745 for frequency lists,
9
+ # etc. that can be useful for building you own stoptag set.
10
+ #
11
+ # The entire possible tagset is provided below for convenience.
12
+ #
13
+ #####
14
+ # noun: unclassified nouns
15
+ #名詞
16
+ #
17
+ # noun-common: Common nouns or nouns where the sub-classification is undefined
18
+ #名詞-一般
19
+ #
20
+ # noun-proper: Proper nouns where the sub-classification is undefined
21
+ #名詞-固有名詞
22
+ #
23
+ # noun-proper-misc: miscellaneous proper nouns
24
+ #名詞-固有名詞-一般
25
+ #
26
+ # noun-proper-person: Personal names where the sub-classification is undefined
27
+ #名詞-固有名詞-人名
28
+ #
29
+ # noun-proper-person-misc: names that cannot be divided into surname and
30
+ # given name; foreign names; names where the surname or given name is unknown.
31
+ # e.g. お市の方
32
+ #名詞-固有名詞-人名-一般
33
+ #
34
+ # noun-proper-person-surname: Mainly Japanese surnames.
35
+ # e.g. 山田
36
+ #名詞-固有名詞-人名-姓
37
+ #
38
+ # noun-proper-person-given_name: Mainly Japanese given names.
39
+ # e.g. 太郎
40
+ #名詞-固有名詞-人名-名
41
+ #
42
+ # noun-proper-organization: Names representing organizations.
43
+ # e.g. 通産省, NHK
44
+ #名詞-固有名詞-組織
45
+ #
46
+ # noun-proper-place: Place names where the sub-classification is undefined
47
+ #名詞-固有名詞-地域
48
+ #
49
+ # noun-proper-place-misc: Place names excluding countries.
50
+ # e.g. アジア, バルセロナ, 京都
51
+ #名詞-固有名詞-地域-一般
52
+ #
53
+ # noun-proper-place-country: Country names.
54
+ # e.g. 日本, オーストラリア
55
+ #名詞-固有名詞-地域-国
56
+ #
57
+ # noun-pronoun: Pronouns where the sub-classification is undefined
58
+ #名詞-代名詞
59
+ #
60
+ # noun-pronoun-misc: miscellaneous pronouns:
61
+ # e.g. それ, ここ, あいつ, あなた, あちこち, いくつ, どこか, なに, みなさん, みんな, わたくし, われわれ
62
+ #名詞-代名詞-一般
63
+ #
64
+ # noun-pronoun-contraction: Spoken language contraction made by combining a
65
+ # pronoun and the particle 'wa'.
66
+ # e.g. ありゃ, こりゃ, こりゃあ, そりゃ, そりゃあ
67
+ #名詞-代名詞-縮約
68
+ #
69
+ # noun-adverbial: Temporal nouns such as names of days or months that behave
70
+ # like adverbs. Nouns that represent amount or ratios and can be used adverbially,
71
+ # e.g. 金曜, 一月, 午後, 少量
72
+ #名詞-副詞可能
73
+ #
74
+ # noun-verbal: Nouns that take arguments with case and can appear followed by
75
+ # 'suru' and related verbs (する, できる, なさる, くださる)
76
+ # e.g. インプット, 愛着, 悪化, 悪戦苦闘, 一安心, 下取り
77
+ #名詞-サ変接続
78
+ #
79
+ # noun-adjective-base: The base form of adjectives, words that appear before な ("na")
80
+ # e.g. 健康, 安易, 駄目, だめ
81
+ #名詞-形容動詞語幹
82
+ #
83
+ # noun-numeric: Arabic numbers, Chinese numerals, and counters like 何 (回), 数.
84
+ # e.g. 0, 1, 2, 何, 数, 幾
85
+ #名詞-数
86
+ #
87
+ # noun-affix: noun affixes where the sub-classification is undefined
88
+ #名詞-非自立
89
+ #
90
+ # noun-affix-misc: Of adnominalizers, the case-marker の ("no"), and words that
91
+ # attach to the base form of inflectional words, words that cannot be classified
92
+ # into any of the other categories below. This category includes indefinite nouns.
93
+ # e.g. あかつき, 暁, かい, 甲斐, 気, きらい, 嫌い, くせ, 癖, こと, 事, ごと, 毎, しだい, 次第,
94
+ # 順, せい, 所為, ついで, 序で, つもり, 積もり, 点, どころ, の, はず, 筈, はずみ, 弾み,
95
+ # 拍子, ふう, ふり, 振り, ほう, 方, 旨, もの, 物, 者, ゆえ, 故, ゆえん, 所以, わけ, 訳,
96
+ # わり, 割り, 割, ん-口語/, もん-口語/
97
+ #名詞-非自立-一般
98
+ #
99
+ # noun-affix-adverbial: noun affixes that that can behave as adverbs.
100
+ # e.g. あいだ, 間, あげく, 挙げ句, あと, 後, 余り, 以外, 以降, 以後, 以上, 以前, 一方, うえ,
101
+ # 上, うち, 内, おり, 折り, かぎり, 限り, きり, っきり, 結果, ころ, 頃, さい, 際, 最中, さなか,
102
+ # 最中, じたい, 自体, たび, 度, ため, 為, つど, 都度, とおり, 通り, とき, 時, ところ, 所,
103
+ # とたん, 途端, なか, 中, のち, 後, ばあい, 場合, 日, ぶん, 分, ほか, 他, まえ, 前, まま,
104
+ # 儘, 侭, みぎり, 矢先
105
+ #名詞-非自立-副詞可能
106
+ #
107
+ # noun-affix-aux: noun affixes treated as 助動詞 ("auxiliary verb") in school grammars
108
+ # with the stem よう(だ) ("you(da)").
109
+ # e.g. よう, やう, 様 (よう)
110
+ #名詞-非自立-助動詞語幹
111
+ #
112
+ # noun-affix-adjective-base: noun affixes that can connect to the indeclinable
113
+ # connection form な (aux "da").
114
+ # e.g. みたい, ふう
115
+ #名詞-非自立-形容動詞語幹
116
+ #
117
+ # noun-special: special nouns where the sub-classification is undefined.
118
+ #名詞-特殊
119
+ #
120
+ # noun-special-aux: The そうだ ("souda") stem form that is used for reporting news, is
121
+ # treated as 助動詞 ("auxiliary verb") in school grammars, and attach to the base
122
+ # form of inflectional words.
123
+ # e.g. そう
124
+ #名詞-特殊-助動詞語幹
125
+ #
126
+ # noun-suffix: noun suffixes where the sub-classification is undefined.
127
+ #名詞-接尾
128
+ #
129
+ # noun-suffix-misc: Of the nouns or stem forms of other parts of speech that connect
130
+ # to ガル or タイ and can combine into compound nouns, words that cannot be classified into
131
+ # any of the other categories below. In general, this category is more inclusive than
132
+ # 接尾語 ("suffix") and is usually the last element in a compound noun.
133
+ # e.g. おき, かた, 方, 甲斐 (がい), がかり, ぎみ, 気味, ぐるみ, (~した) さ, 次第, 済 (ず) み,
134
+ # よう, (でき)っこ, 感, 観, 性, 学, 類, 面, 用
135
+ #名詞-接尾-一般
136
+ #
137
+ # noun-suffix-person: Suffixes that form nouns and attach to person names more often
138
+ # than other nouns.
139
+ # e.g. 君, 様, 著
140
+ #名詞-接尾-人名
141
+ #
142
+ # noun-suffix-place: Suffixes that form nouns and attach to place names more often
143
+ # than other nouns.
144
+ # e.g. 町, 市, 県
145
+ #名詞-接尾-地域
146
+ #
147
+ # noun-suffix-verbal: Of the suffixes that attach to nouns and form nouns, those that
148
+ # can appear before スル ("suru").
149
+ # e.g. 化, 視, 分け, 入り, 落ち, 買い
150
+ #名詞-接尾-サ変接続
151
+ #
152
+ # noun-suffix-aux: The stem form of そうだ (様態) that is used to indicate conditions,
153
+ # is treated as 助動詞 ("auxiliary verb") in school grammars, and attach to the
154
+ # conjunctive form of inflectional words.
155
+ # e.g. そう
156
+ #名詞-接尾-助動詞語幹
157
+ #
158
+ # noun-suffix-adjective-base: Suffixes that attach to other nouns or the conjunctive
159
+ # form of inflectional words and appear before the copula だ ("da").
160
+ # e.g. 的, げ, がち
161
+ #名詞-接尾-形容動詞語幹
162
+ #
163
+ # noun-suffix-adverbial: Suffixes that attach to other nouns and can behave as adverbs.
164
+ # e.g. 後 (ご), 以後, 以降, 以前, 前後, 中, 末, 上, 時 (じ)
165
+ #名詞-接尾-副詞可能
166
+ #
167
+ # noun-suffix-classifier: Suffixes that attach to numbers and form nouns. This category
168
+ # is more inclusive than 助数詞 ("classifier") and includes common nouns that attach
169
+ # to numbers.
170
+ # e.g. 個, つ, 本, 冊, パーセント, cm, kg, カ月, か国, 区画, 時間, 時半
171
+ #名詞-接尾-助数詞
172
+ #
173
+ # noun-suffix-special: Special suffixes that mainly attach to inflecting words.
174
+ # e.g. (楽し) さ, (考え) 方
175
+ #名詞-接尾-特殊
176
+ #
177
+ # noun-suffix-conjunctive: Nouns that behave like conjunctions and join two words
178
+ # together.
179
+ # e.g. (日本) 対 (アメリカ), 対 (アメリカ), (3) 対 (5), (女優) 兼 (主婦)
180
+ #名詞-接続詞的
181
+ #
182
+ # noun-verbal_aux: Nouns that attach to the conjunctive particle て ("te") and are
183
+ # semantically verb-like.
184
+ # e.g. ごらん, ご覧, 御覧, 頂戴
185
+ #名詞-動詞非自立的
186
+ #
187
+ # noun-quotation: text that cannot be segmented into words, proverbs, Chinese poetry,
188
+ # dialects, English, etc. Currently, the only entry for 名詞 引用文字列 ("noun quotation")
189
+ # is いわく ("iwaku").
190
+ #名詞-引用文字列
191
+ #
192
+ # noun-nai_adjective: Words that appear before the auxiliary verb ない ("nai") and
193
+ # behave like an adjective.
194
+ # e.g. 申し訳, 仕方, とんでも, 違い
195
+ #名詞-ナイ形容詞語幹
196
+ #
197
+ #####
198
+ # prefix: unclassified prefixes
199
+ #接頭詞
200
+ #
201
+ # prefix-nominal: Prefixes that attach to nouns (including adjective stem forms)
202
+ # excluding numerical expressions.
203
+ # e.g. お (水), 某 (氏), 同 (社), 故 (~氏), 高 (品質), お (見事), ご (立派)
204
+ #接頭詞-名詞接続
205
+ #
206
+ # prefix-verbal: Prefixes that attach to the imperative form of a verb or a verb
207
+ # in conjunctive form followed by なる/なさる/くださる.
208
+ # e.g. お (読みなさい), お (座り)
209
+ #接頭詞-動詞接続
210
+ #
211
+ # prefix-adjectival: Prefixes that attach to adjectives.
212
+ # e.g. お (寒いですねえ), バカ (でかい)
213
+ #接頭詞-形容詞接続
214
+ #
215
+ # prefix-numerical: Prefixes that attach to numerical expressions.
216
+ # e.g. 約, およそ, 毎時
217
+ #接頭詞-数接続
218
+ #
219
+ #####
220
+ # verb: unclassified verbs
221
+ #動詞
222
+ #
223
+ # verb-main:
224
+ #動詞-自立
225
+ #
226
+ # verb-auxiliary:
227
+ #動詞-非自立
228
+ #
229
+ # verb-suffix:
230
+ #動詞-接尾
231
+ #
232
+ #####
233
+ # adjective: unclassified adjectives
234
+ #形容詞
235
+ #
236
+ # adjective-main:
237
+ #形容詞-自立
238
+ #
239
+ # adjective-auxiliary:
240
+ #形容詞-非自立
241
+ #
242
+ # adjective-suffix:
243
+ #形容詞-接尾
244
+ #
245
+ #####
246
+ # adverb: unclassified adverbs
247
+ #副詞
248
+ #
249
+ # adverb-misc: Words that can be segmented into one unit and where adnominal
250
+ # modification is not possible.
251
+ # e.g. あいかわらず, 多分
252
+ #副詞-一般
253
+ #
254
+ # adverb-particle_conjunction: Adverbs that can be followed by の, は, に,
255
+ # な, する, だ, etc.
256
+ # e.g. こんなに, そんなに, あんなに, なにか, なんでも
257
+ #副詞-助詞類接続
258
+ #
259
+ #####
260
+ # adnominal: Words that only have noun-modifying forms.
261
+ # e.g. この, その, あの, どの, いわゆる, なんらかの, 何らかの, いろんな, こういう, そういう, ああいう,
262
+ # どういう, こんな, そんな, あんな, どんな, 大きな, 小さな, おかしな, ほんの, たいした,
263
+ # 「(, も) さる (ことながら)」, 微々たる, 堂々たる, 単なる, いかなる, 我が」「同じ, 亡き
264
+ #連体詞
265
+ #
266
+ #####
267
+ # conjunction: Conjunctions that can occur independently.
268
+ # e.g. が, けれども, そして, じゃあ, それどころか
269
+ 接続詞
270
+ #
271
+ #####
272
+ # particle: unclassified particles.
273
+ 助詞
274
+ #
275
+ # particle-case: case particles where the subclassification is undefined.
276
+ 助詞-格助詞
277
+ #
278
+ # particle-case-misc: Case particles.
279
+ # e.g. から, が, で, と, に, へ, より, を, の, にて
280
+ 助詞-格助詞-一般
281
+ #
282
+ # particle-case-quote: the "to" that appears after nouns, a person’s speech,
283
+ # quotation marks, expressions of decisions from a meeting, reasons, judgements,
284
+ # conjectures, etc.
285
+ # e.g. ( だ) と (述べた.), ( である) と (して執行猶予...)
286
+ 助詞-格助詞-引用
287
+ #
288
+ # particle-case-compound: Compounds of particles and verbs that mainly behave
289
+ # like case particles.
290
+ # e.g. という, といった, とかいう, として, とともに, と共に, でもって, にあたって, に当たって, に当って,
291
+ # にあたり, に当たり, に当り, に当たる, にあたる, において, に於いて,に於て, における, に於ける,
292
+ # にかけ, にかけて, にかんし, に関し, にかんして, に関して, にかんする, に関する, に際し,
293
+ # に際して, にしたがい, に従い, に従う, にしたがって, に従って, にたいし, に対し, にたいして,
294
+ # に対して, にたいする, に対する, について, につき, につけ, につけて, につれ, につれて, にとって,
295
+ # にとり, にまつわる, によって, に依って, に因って, により, に依り, に因り, による, に依る, に因る,
296
+ # にわたって, にわたる, をもって, を以って, を通じ, を通じて, を通して, をめぐって, をめぐり, をめぐる,
297
+ # って-口語/, ちゅう-関西弁「という」/, (何) ていう (人)-口語/, っていう-口語/, といふ, とかいふ
298
+ 助詞-格助詞-連語
299
+ #
300
+ # particle-conjunctive:
301
+ # e.g. から, からには, が, けれど, けれども, けど, し, つつ, て, で, と, ところが, どころか, とも, ども,
302
+ # ながら, なり, ので, のに, ば, ものの, や ( した), やいなや, (ころん) じゃ(いけない)-口語/,
303
+ # (行っ) ちゃ(いけない)-口語/, (言っ) たって (しかたがない)-口語/, (それがなく)ったって (平気)-口語/
304
+ 助詞-接続助詞
305
+ #
306
+ # particle-dependency:
307
+ # e.g. こそ, さえ, しか, すら, は, も, ぞ
308
+ 助詞-係助詞
309
+ #
310
+ # particle-adverbial:
311
+ # e.g. がてら, かも, くらい, 位, ぐらい, しも, (学校) じゃ(これが流行っている)-口語/,
312
+ # (それ)じゃあ (よくない)-口語/, ずつ, (私) なぞ, など, (私) なり (に), (先生) なんか (大嫌い)-口語/,
313
+ # (私) なんぞ, (先生) なんて (大嫌い)-口語/, のみ, だけ, (私) だって-口語/, だに,
314
+ # (彼)ったら-口語/, (お茶) でも (いかが), 等 (とう), (今後) とも, ばかり, ばっか-口語/, ばっかり-口語/,
315
+ # ほど, 程, まで, 迄, (誰) も (が)([助詞-格助詞] および [助詞-係助詞] の前に位置する「も」)
316
+ 助詞-副助詞
317
+ #
318
+ # particle-interjective: particles with interjective grammatical roles.
319
+ # e.g. (松島) や
320
+ 助詞-間投助詞
321
+ #
322
+ # particle-coordinate:
323
+ # e.g. と, たり, だの, だり, とか, なり, や, やら
324
+ 助詞-並立助詞
325
+ #
326
+ # particle-final:
327
+ # e.g. かい, かしら, さ, ぜ, (だ)っけ-口語/, (とまってる) で-方言/, な, ナ, なあ-口語/, ぞ, ね, ネ,
328
+ # ねぇ-口語/, ねえ-口語/, ねん-方言/, の, のう-口語/, や, よ, ヨ, よぉ-口語/, わ, わい-口語/
329
+ 助詞-終助詞
330
+ #
331
+ # particle-adverbial/conjunctive/final: The particle "ka" when unknown whether it is
332
+ # adverbial, conjunctive, or sentence final. For example:
333
+ # (a) 「A か B か」. Ex:「(国内で運用する) か,(海外で運用する) か (.)」
334
+ # (b) Inside an adverb phrase. Ex:「(幸いという) か (, 死者はいなかった.)」
335
+ # 「(祈りが届いたせい) か (, 試験に合格した.)」
336
+ # (c) 「かのように」. Ex:「(何もなかった) か (のように振る舞った.)」
337
+ # e.g. か
338
+ 助詞-副助詞/並立助詞/終助詞
339
+ #
340
+ # particle-adnominalizer: The "no" that attaches to nouns and modifies
341
+ # non-inflectional words.
342
+ 助詞-連体化
343
+ #
344
+ # particle-adnominalizer: The "ni" and "to" that appear following nouns and adverbs
345
+ # that are giongo, giseigo, or gitaigo.
346
+ # e.g. に, と
347
+ 助詞-副詞化
348
+ #
349
+ # particle-special: A particle that does not fit into one of the above classifications.
350
+ # This includes particles that are used in Tanka, Haiku, and other poetry.
351
+ # e.g. かな, けむ, ( しただろう) に, (あんた) にゃ(わからん), (俺) ん (家)
352
+ 助詞-特殊
353
+ #
354
+ #####
355
+ # auxiliary-verb:
356
+ 助動詞
357
+ #
358
+ #####
359
+ # interjection: Greetings and other exclamations.
360
+ # e.g. おはよう, おはようございます, こんにちは, こんばんは, ありがとう, どうもありがとう, ありがとうございます,
361
+ # いただきます, ごちそうさま, さよなら, さようなら, はい, いいえ, ごめん, ごめんなさい
362
+ #感動詞
363
+ #
364
+ #####
365
+ # symbol: unclassified Symbols.
366
+ 記号
367
+ #
368
+ # symbol-misc: A general symbol not in one of the categories below.
369
+ # e.g. [○◎@$〒→+]
370
+ 記号-一般
371
+ #
372
+ # symbol-comma: Commas
373
+ # e.g. [,、]
374
+ 記号-読点
375
+ #
376
+ # symbol-period: Periods and full stops.
377
+ # e.g. [..。]
378
+ 記号-句点
379
+ #
380
+ # symbol-space: Full-width whitespace.
381
+ 記号-空白
382
+ #
383
+ # symbol-open_bracket:
384
+ # e.g. [({‘“『【]
385
+ 記号-括弧開
386
+ #
387
+ # symbol-close_bracket:
388
+ # e.g. [)}’”』」】]
389
+ 記号-括弧閉
390
+ #
391
+ # symbol-alphabetic:
392
+ #記号-アルファベット
393
+ #
394
+ #####
395
+ # other: unclassified other
396
+ #その他
397
+ #
398
+ # other-interjection: Words that are hard to classify as noun-suffixes or
399
+ # sentence-final particles.
400
+ # e.g. (だ)ァ
401
+ その他-間投
402
+ #
403
+ #####
404
+ # filler: Aizuchi that occurs during a conversation or sounds inserted as filler.
405
+ # e.g. あの, うんと, えと
406
+ フィラー
407
+ #
408
+ #####
409
+ # non-verbal: non-verbal sound.
410
+ 非言語音
411
+ #
412
+ #####
413
+ # fragment:
414
+ #語断片
415
+ #
416
+ #####
417
+ # unknown: unknown part of speech.
418
+ #未知語
419
+ #
420
+ ##### End of file