simple_solr_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +349 -0
  5. data/Rakefile +11 -0
  6. data/lib/simple_solr.rb +42 -0
  7. data/lib/simple_solr/client.rb +139 -0
  8. data/lib/simple_solr/client/core_admin.rb +0 -0
  9. data/lib/simple_solr/core.rb +50 -0
  10. data/lib/simple_solr/core/admin.rb +47 -0
  11. data/lib/simple_solr/core/core_data.rb +51 -0
  12. data/lib/simple_solr/core/index.rb +25 -0
  13. data/lib/simple_solr/core/search.rb +21 -0
  14. data/lib/simple_solr/response/document.rb +45 -0
  15. data/lib/simple_solr/response/generic_response.rb +19 -0
  16. data/lib/simple_solr/response/query_response.rb +54 -0
  17. data/lib/simple_solr/schema.rb +261 -0
  18. data/lib/simple_solr/schema/analysis.rb +58 -0
  19. data/lib/simple_solr/schema/copyfield.rb +42 -0
  20. data/lib/simple_solr/schema/dynamic_field.rb +23 -0
  21. data/lib/simple_solr/schema/field.rb +35 -0
  22. data/lib/simple_solr/schema/field_or_type.rb +112 -0
  23. data/lib/simple_solr/schema/field_type.rb +62 -0
  24. data/lib/simple_solr/schema/matcher.rb +16 -0
  25. data/lib/simple_solr/version.rb +3 -0
  26. data/simple_solr_client.gemspec +39 -0
  27. data/solr_sample_core/conf/_schema_analysis_stopwords_english.json +38 -0
  28. data/solr_sample_core/conf/_schema_analysis_synonyms_english.json +11 -0
  29. data/solr_sample_core/conf/admin-extra.html +24 -0
  30. data/solr_sample_core/conf/admin-extra.menu-bottom.html +25 -0
  31. data/solr_sample_core/conf/admin-extra.menu-top.html +25 -0
  32. data/solr_sample_core/conf/clustering/carrot2/kmeans-attributes.xml +19 -0
  33. data/solr_sample_core/conf/clustering/carrot2/lingo-attributes.xml +24 -0
  34. data/solr_sample_core/conf/clustering/carrot2/stc-attributes.xml +19 -0
  35. data/solr_sample_core/conf/currency.xml +67 -0
  36. data/solr_sample_core/conf/elevate.xml +38 -0
  37. data/solr_sample_core/conf/lang/contractions_ca.txt +8 -0
  38. data/solr_sample_core/conf/lang/contractions_fr.txt +15 -0
  39. data/solr_sample_core/conf/lang/contractions_ga.txt +5 -0
  40. data/solr_sample_core/conf/lang/contractions_it.txt +23 -0
  41. data/solr_sample_core/conf/lang/hyphenations_ga.txt +5 -0
  42. data/solr_sample_core/conf/lang/stemdict_nl.txt +6 -0
  43. data/solr_sample_core/conf/lang/stoptags_ja.txt +420 -0
  44. data/solr_sample_core/conf/lang/stopwords_ar.txt +125 -0
  45. data/solr_sample_core/conf/lang/stopwords_bg.txt +193 -0
  46. data/solr_sample_core/conf/lang/stopwords_ca.txt +220 -0
  47. data/solr_sample_core/conf/lang/stopwords_ckb.txt +136 -0
  48. data/solr_sample_core/conf/lang/stopwords_cz.txt +172 -0
  49. data/solr_sample_core/conf/lang/stopwords_da.txt +110 -0
  50. data/solr_sample_core/conf/lang/stopwords_de.txt +294 -0
  51. data/solr_sample_core/conf/lang/stopwords_el.txt +78 -0
  52. data/solr_sample_core/conf/lang/stopwords_en.txt +54 -0
  53. data/solr_sample_core/conf/lang/stopwords_es.txt +356 -0
  54. data/solr_sample_core/conf/lang/stopwords_eu.txt +99 -0
  55. data/solr_sample_core/conf/lang/stopwords_fa.txt +313 -0
  56. data/solr_sample_core/conf/lang/stopwords_fi.txt +97 -0
  57. data/solr_sample_core/conf/lang/stopwords_fr.txt +186 -0
  58. data/solr_sample_core/conf/lang/stopwords_ga.txt +110 -0
  59. data/solr_sample_core/conf/lang/stopwords_gl.txt +161 -0
  60. data/solr_sample_core/conf/lang/stopwords_hi.txt +235 -0
  61. data/solr_sample_core/conf/lang/stopwords_hu.txt +211 -0
  62. data/solr_sample_core/conf/lang/stopwords_hy.txt +46 -0
  63. data/solr_sample_core/conf/lang/stopwords_id.txt +359 -0
  64. data/solr_sample_core/conf/lang/stopwords_it.txt +303 -0
  65. data/solr_sample_core/conf/lang/stopwords_ja.txt +127 -0
  66. data/solr_sample_core/conf/lang/stopwords_lv.txt +172 -0
  67. data/solr_sample_core/conf/lang/stopwords_nl.txt +119 -0
  68. data/solr_sample_core/conf/lang/stopwords_no.txt +194 -0
  69. data/solr_sample_core/conf/lang/stopwords_pt.txt +253 -0
  70. data/solr_sample_core/conf/lang/stopwords_ro.txt +233 -0
  71. data/solr_sample_core/conf/lang/stopwords_ru.txt +243 -0
  72. data/solr_sample_core/conf/lang/stopwords_sv.txt +133 -0
  73. data/solr_sample_core/conf/lang/stopwords_th.txt +119 -0
  74. data/solr_sample_core/conf/lang/stopwords_tr.txt +212 -0
  75. data/solr_sample_core/conf/lang/userdict_ja.txt +29 -0
  76. data/solr_sample_core/conf/mapping-FoldToASCII.txt +3813 -0
  77. data/solr_sample_core/conf/mapping-ISOLatin1Accent.txt +246 -0
  78. data/solr_sample_core/conf/protwords.txt +21 -0
  79. data/solr_sample_core/conf/schema.xml +62 -0
  80. data/solr_sample_core/conf/scripts.conf +24 -0
  81. data/solr_sample_core/conf/solrconfig.xml +1702 -0
  82. data/solr_sample_core/conf/spellings.txt +2 -0
  83. data/solr_sample_core/conf/stopwords.txt +14 -0
  84. data/solr_sample_core/conf/syn.txt +0 -0
  85. data/solr_sample_core/conf/synonyms.txt +29 -0
  86. data/solr_sample_core/conf/token_fixing_charfilter.txt +110 -0
  87. data/solr_sample_core/conf/update-script.js +53 -0
  88. data/solr_sample_core/conf/velocity/README.txt +101 -0
  89. data/solr_sample_core/conf/velocity/VM_global_library.vm +175 -0
  90. data/solr_sample_core/conf/velocity/browse.vm +33 -0
  91. data/solr_sample_core/conf/velocity/cluster.vm +19 -0
  92. data/solr_sample_core/conf/velocity/cluster_results.vm +31 -0
  93. data/solr_sample_core/conf/velocity/debug.vm +28 -0
  94. data/solr_sample_core/conf/velocity/did_you_mean.vm +9 -0
  95. data/solr_sample_core/conf/velocity/error.vm +11 -0
  96. data/solr_sample_core/conf/velocity/facet_fields.vm +23 -0
  97. data/solr_sample_core/conf/velocity/facet_pivot.vm +12 -0
  98. data/solr_sample_core/conf/velocity/facet_queries.vm +12 -0
  99. data/solr_sample_core/conf/velocity/facet_ranges.vm +23 -0
  100. data/solr_sample_core/conf/velocity/facets.vm +10 -0
  101. data/solr_sample_core/conf/velocity/footer.vm +43 -0
  102. data/solr_sample_core/conf/velocity/head.vm +35 -0
  103. data/solr_sample_core/conf/velocity/header.vm +7 -0
  104. data/solr_sample_core/conf/velocity/hit.vm +25 -0
  105. data/solr_sample_core/conf/velocity/hit_grouped.vm +43 -0
  106. data/solr_sample_core/conf/velocity/hit_plain.vm +25 -0
  107. data/solr_sample_core/conf/velocity/join_doc.vm +20 -0
  108. data/solr_sample_core/conf/velocity/jquery.autocomplete.css +48 -0
  109. data/solr_sample_core/conf/velocity/jquery.autocomplete.js +763 -0
  110. data/solr_sample_core/conf/velocity/layout.vm +24 -0
  111. data/solr_sample_core/conf/velocity/main.css +230 -0
  112. data/solr_sample_core/conf/velocity/mime_type_lists.vm +68 -0
  113. data/solr_sample_core/conf/velocity/pagination_bottom.vm +22 -0
  114. data/solr_sample_core/conf/velocity/pagination_top.vm +29 -0
  115. data/solr_sample_core/conf/velocity/product_doc.vm +32 -0
  116. data/solr_sample_core/conf/velocity/query.vm +42 -0
  117. data/solr_sample_core/conf/velocity/query_form.vm +64 -0
  118. data/solr_sample_core/conf/velocity/query_group.vm +43 -0
  119. data/solr_sample_core/conf/velocity/query_spatial.vm +75 -0
  120. data/solr_sample_core/conf/velocity/results_list.vm +22 -0
  121. data/solr_sample_core/conf/velocity/richtext_doc.vm +153 -0
  122. data/solr_sample_core/conf/velocity/suggest.vm +8 -0
  123. data/solr_sample_core/conf/velocity/tabs.vm +50 -0
  124. data/solr_sample_core/conf/xslt/example.xsl +132 -0
  125. data/solr_sample_core/conf/xslt/example_atom.xsl +67 -0
  126. data/solr_sample_core/conf/xslt/example_rss.xsl +66 -0
  127. data/solr_sample_core/conf/xslt/luke.xsl +337 -0
  128. data/solr_sample_core/conf/xslt/updateXml.xsl +70 -0
  129. data/spec/client_basics_spec.rb +26 -0
  130. data/spec/connect_spec.rb +25 -0
  131. data/spec/core_basics.rb +21 -0
  132. data/spec/index_spec.rb +31 -0
  133. data/spec/load_spec.rb +7 -0
  134. data/spec/minitest_helper.rb +36 -0
  135. data/spec/schema_spec.rb +113 -0
  136. metadata +284 -0
@@ -0,0 +1,125 @@
1
+ # This file was created by Jacques Savoy and is distributed under the BSD license.
2
+ # See http://members.unine.ch/jacques.savoy/clef/index.html.
3
+ # Also see http://www.opensource.org/licenses/bsd-license.html
4
+ # Cleaned on October 11, 2009 (not normalized, so use before normalization)
5
+ # This means that when modifying this list, you might need to add some
6
+ # redundant entries, for example containing forms with both أ and ا
7
+ من
8
+ ومن
9
+ منها
10
+ منه
11
+ في
12
+ وفي
13
+ فيها
14
+ فيه
15
+ و
16
+ ف
17
+ ثم
18
+ او
19
+ أو
20
+ ب
21
+ بها
22
+ به
23
+ ا
24
+ أ
25
+ اى
26
+ اي
27
+ أي
28
+ أى
29
+ لا
30
+ ولا
31
+ الا
32
+ ألا
33
+ إلا
34
+ لكن
35
+ ما
36
+ وما
37
+ كما
38
+ فما
39
+ عن
40
+ مع
41
+ اذا
42
+ إذا
43
+ ان
44
+ أن
45
+ إن
46
+ انها
47
+ أنها
48
+ إنها
49
+ انه
50
+ أنه
51
+ إنه
52
+ بان
53
+ بأن
54
+ فان
55
+ فأن
56
+ وان
57
+ وأن
58
+ وإن
59
+ التى
60
+ التي
61
+ الذى
62
+ الذي
63
+ الذين
64
+ الى
65
+ الي
66
+ إلى
67
+ إلي
68
+ على
69
+ عليها
70
+ عليه
71
+ اما
72
+ أما
73
+ إما
74
+ ايضا
75
+ أيضا
76
+ كل
77
+ وكل
78
+ لم
79
+ ولم
80
+ لن
81
+ ولن
82
+ هى
83
+ هي
84
+ هو
85
+ وهى
86
+ وهي
87
+ وهو
88
+ فهى
89
+ فهي
90
+ فهو
91
+ انت
92
+ أنت
93
+ لك
94
+ لها
95
+ له
96
+ هذه
97
+ هذا
98
+ تلك
99
+ ذلك
100
+ هناك
101
+ كانت
102
+ كان
103
+ يكون
104
+ تكون
105
+ وكانت
106
+ وكان
107
+ غير
108
+ بعض
109
+ قد
110
+ نحو
111
+ بين
112
+ بينما
113
+ منذ
114
+ ضمن
115
+ حيث
116
+ الان
117
+ الآن
118
+ خلال
119
+ بعد
120
+ قبل
121
+ حتى
122
+ عند
123
+ عندما
124
+ لدى
125
+ جميع
@@ -0,0 +1,193 @@
1
+ # This file was created by Jacques Savoy and is distributed under the BSD license.
2
+ # See http://members.unine.ch/jacques.savoy/clef/index.html.
3
+ # Also see http://www.opensource.org/licenses/bsd-license.html
4
+ а
5
+ аз
6
+ ако
7
+ ала
8
+ бе
9
+ без
10
+ беше
11
+ би
12
+ бил
13
+ била
14
+ били
15
+ било
16
+ близо
17
+ бъдат
18
+ бъде
19
+ бяха
20
+ в
21
+ вас
22
+ ваш
23
+ ваша
24
+ вероятно
25
+ вече
26
+ взема
27
+ ви
28
+ вие
29
+ винаги
30
+ все
31
+ всеки
32
+ всички
33
+ всичко
34
+ всяка
35
+ във
36
+ въпреки
37
+ върху
38
+ г
39
+ ги
40
+ главно
41
+ го
42
+ д
43
+ да
44
+ дали
45
+ до
46
+ докато
47
+ докога
48
+ дори
49
+ досега
50
+ доста
51
+ е
52
+ едва
53
+ един
54
+ ето
55
+ за
56
+ зад
57
+ заедно
58
+ заради
59
+ засега
60
+ затова
61
+ защо
62
+ защото
63
+ и
64
+ из
65
+ или
66
+ им
67
+ има
68
+ имат
69
+ иска
70
+ й
71
+ каза
72
+ как
73
+ каква
74
+ какво
75
+ както
76
+ какъв
77
+ като
78
+ кога
79
+ когато
80
+ което
81
+ които
82
+ кой
83
+ който
84
+ колко
85
+ която
86
+ къде
87
+ където
88
+ към
89
+ ли
90
+ м
91
+ ме
92
+ между
93
+ мен
94
+ ми
95
+ мнозина
96
+ мога
97
+ могат
98
+ може
99
+ моля
100
+ момента
101
+ му
102
+ н
103
+ на
104
+ над
105
+ назад
106
+ най
107
+ направи
108
+ напред
109
+ например
110
+ нас
111
+ не
112
+ него
113
+ нея
114
+ ни
115
+ ние
116
+ никой
117
+ нито
118
+ но
119
+ някои
120
+ някой
121
+ няма
122
+ обаче
123
+ около
124
+ освен
125
+ особено
126
+ от
127
+ отгоре
128
+ отново
129
+ още
130
+ пак
131
+ по
132
+ повече
133
+ повечето
134
+ под
135
+ поне
136
+ поради
137
+ после
138
+ почти
139
+ прави
140
+ пред
141
+ преди
142
+ през
143
+ при
144
+ пък
145
+ първо
146
+ с
147
+ са
148
+ само
149
+ се
150
+ сега
151
+ си
152
+ скоро
153
+ след
154
+ сме
155
+ според
156
+ сред
157
+ срещу
158
+ сте
159
+ съм
160
+ със
161
+ също
162
+ т
163
+ тази
164
+ така
165
+ такива
166
+ такъв
167
+ там
168
+ твой
169
+ те
170
+ тези
171
+ ти
172
+ тн
173
+ то
174
+ това
175
+ тогава
176
+ този
177
+ той
178
+ толкова
179
+ точно
180
+ трябва
181
+ тук
182
+ тъй
183
+ тя
184
+ тях
185
+ у
186
+ харесва
187
+ ч
188
+ че
189
+ често
190
+ чрез
191
+ ще
192
+ щом
193
+ я
@@ -0,0 +1,220 @@
1
+ # Catalan stopwords from http://github.com/vcl/cue.language (Apache 2 Licensed)
2
+ a
3
+ abans
4
+ ací
5
+ ah
6
+ així
7
+ això
8
+ al
9
+ als
10
+ aleshores
11
+ algun
12
+ alguna
13
+ algunes
14
+ alguns
15
+ alhora
16
+ allà
17
+ allí
18
+ allò
19
+ altra
20
+ altre
21
+ altres
22
+ amb
23
+ ambdós
24
+ ambdues
25
+ apa
26
+ aquell
27
+ aquella
28
+ aquelles
29
+ aquells
30
+ aquest
31
+ aquesta
32
+ aquestes
33
+ aquests
34
+ aquí
35
+ baix
36
+ cada
37
+ cadascú
38
+ cadascuna
39
+ cadascunes
40
+ cadascuns
41
+ com
42
+ contra
43
+ d'un
44
+ d'una
45
+ d'unes
46
+ d'uns
47
+ dalt
48
+ de
49
+ del
50
+ dels
51
+ des
52
+ després
53
+ dins
54
+ dintre
55
+ donat
56
+ doncs
57
+ durant
58
+ e
59
+ eh
60
+ el
61
+ els
62
+ em
63
+ en
64
+ encara
65
+ ens
66
+ entre
67
+ érem
68
+ eren
69
+ éreu
70
+ es
71
+ és
72
+ esta
73
+ està
74
+ estàvem
75
+ estaven
76
+ estàveu
77
+ esteu
78
+ et
79
+ etc
80
+ ets
81
+ fins
82
+ fora
83
+ gairebé
84
+ ha
85
+ han
86
+ has
87
+ havia
88
+ he
89
+ hem
90
+ heu
91
+ hi
92
+ ho
93
+ i
94
+ igual
95
+ iguals
96
+ ja
97
+ l'hi
98
+ la
99
+ les
100
+ li
101
+ li'n
102
+ llavors
103
+ m'he
104
+ ma
105
+ mal
106
+ malgrat
107
+ mateix
108
+ mateixa
109
+ mateixes
110
+ mateixos
111
+ me
112
+ mentre
113
+ més
114
+ meu
115
+ meus
116
+ meva
117
+ meves
118
+ molt
119
+ molta
120
+ moltes
121
+ molts
122
+ mon
123
+ mons
124
+ n'he
125
+ n'hi
126
+ ne
127
+ ni
128
+ no
129
+ nogensmenys
130
+ només
131
+ nosaltres
132
+ nostra
133
+ nostre
134
+ nostres
135
+ o
136
+ oh
137
+ oi
138
+ on
139
+ pas
140
+ pel
141
+ pels
142
+ per
143
+ però
144
+ perquè
145
+ poc
146
+ poca
147
+ pocs
148
+ poques
149
+ potser
150
+ propi
151
+ qual
152
+ quals
153
+ quan
154
+ quant
155
+ que
156
+ què
157
+ quelcom
158
+ qui
159
+ quin
160
+ quina
161
+ quines
162
+ quins
163
+ s'ha
164
+ s'han
165
+ sa
166
+ semblant
167
+ semblants
168
+ ses
169
+ seu
170
+ seus
171
+ seva
172
+ seva
173
+ seves
174
+ si
175
+ sobre
176
+ sobretot
177
+ sóc
178
+ solament
179
+ sols
180
+ son
181
+ són
182
+ sons
183
+ sota
184
+ sou
185
+ t'ha
186
+ t'han
187
+ t'he
188
+ ta
189
+ tal
190
+ també
191
+ tampoc
192
+ tan
193
+ tant
194
+ tanta
195
+ tantes
196
+ teu
197
+ teus
198
+ teva
199
+ teves
200
+ ton
201
+ tons
202
+ tot
203
+ tota
204
+ totes
205
+ tots
206
+ un
207
+ una
208
+ unes
209
+ uns
210
+ us
211
+ va
212
+ vaig
213
+ vam
214
+ van
215
+ vas
216
+ veu
217
+ vosaltres
218
+ vostra
219
+ vostre
220
+ vostres