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,78 @@
1
+ # Lucene Greek Stopwords list
2
+ # Note: by default this file is used after GreekLowerCaseFilter,
3
+ # so when modifying this file use 'σ' instead of 'ς'
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
+ οτι
@@ -0,0 +1,54 @@
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
+ # a couple of test stopwords to test that the words are really being
17
+ # configured from this file:
18
+ stopworda
19
+ stopwordb
20
+
21
+ # Standard english stop words taken from Lucene's StopAnalyzer
22
+ a
23
+ an
24
+ and
25
+ are
26
+ as
27
+ at
28
+ be
29
+ but
30
+ by
31
+ for
32
+ if
33
+ in
34
+ into
35
+ is
36
+ it
37
+ no
38
+ not
39
+ of
40
+ on
41
+ or
42
+ such
43
+ that
44
+ the
45
+ their
46
+ then
47
+ there
48
+ these
49
+ they
50
+ this
51
+ to
52
+ was
53
+ will
54
+ with
@@ -0,0 +1,356 @@
1
+ | From svn.tartarus.org/snowball/trunk/website/algorithms/spanish/stop.txt
2
+ | This file is distributed under the BSD License.
3
+ | See http://snowball.tartarus.org/license.php
4
+ | Also see http://www.opensource.org/licenses/bsd-license.html
5
+ | - Encoding was converted to UTF-8.
6
+ | - This notice was added.
7
+ |
8
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
+
10
+ | A Spanish stop word list. Comments begin with vertical bar. Each stop
11
+ | word is at the start of a line.
12
+
13
+
14
+ | The following is a ranked list (commonest to rarest) of stopwords
15
+ | deriving from a large sample of text.
16
+
17
+ | Extra words have been added at the end.
18
+
19
+ de | from, of
20
+ la | the, her
21
+ que | who, that
22
+ el | the
23
+ en | in
24
+ y | and
25
+ a | to
26
+ los | the, them
27
+ del | de + el
28
+ se | himself, from him etc
29
+ las | the, them
30
+ por | for, by, etc
31
+ un | a
32
+ para | for
33
+ con | with
34
+ no | no
35
+ una | a
36
+ su | his, her
37
+ al | a + el
38
+ | es from SER
39
+ lo | him
40
+ como | how
41
+ más | more
42
+ pero | pero
43
+ sus | su plural
44
+ le | to him, her
45
+ ya | already
46
+ o | or
47
+ | fue from SER
48
+ este | this
49
+ | ha from HABER
50
+ sí | himself etc
51
+ porque | because
52
+ esta | this
53
+ | son from SER
54
+ entre | between
55
+ | está from ESTAR
56
+ cuando | when
57
+ muy | very
58
+ sin | without
59
+ sobre | on
60
+ | ser from SER
61
+ | tiene from TENER
62
+ también | also
63
+ me | me
64
+ hasta | until
65
+ hay | there is/are
66
+ donde | where
67
+ | han from HABER
68
+ quien | whom, that
69
+ | están from ESTAR
70
+ | estado from ESTAR
71
+ desde | from
72
+ todo | all
73
+ nos | us
74
+ durante | during
75
+ | estados from ESTAR
76
+ todos | all
77
+ uno | a
78
+ les | to them
79
+ ni | nor
80
+ contra | against
81
+ otros | other
82
+ | fueron from SER
83
+ ese | that
84
+ eso | that
85
+ | había from HABER
86
+ ante | before
87
+ ellos | they
88
+ e | and (variant of y)
89
+ esto | this
90
+ mí | me
91
+ antes | before
92
+ algunos | some
93
+ qué | what?
94
+ unos | a
95
+ yo | I
96
+ otro | other
97
+ otras | other
98
+ otra | other
99
+ él | he
100
+ tanto | so much, many
101
+ esa | that
102
+ estos | these
103
+ mucho | much, many
104
+ quienes | who
105
+ nada | nothing
106
+ muchos | many
107
+ cual | who
108
+ | sea from SER
109
+ poco | few
110
+ ella | she
111
+ estar | to be
112
+ | haber from HABER
113
+ estas | these
114
+ | estaba from ESTAR
115
+ | estamos from ESTAR
116
+ algunas | some
117
+ algo | something
118
+ nosotros | we
119
+
120
+ | other forms
121
+
122
+ mi | me
123
+ mis | mi plural
124
+ tú | thou
125
+ te | thee
126
+ ti | thee
127
+ tu | thy
128
+ tus | tu plural
129
+ ellas | they
130
+ nosotras | we
131
+ vosotros | you
132
+ vosotras | you
133
+ os | you
134
+ mío | mine
135
+ mía |
136
+ míos |
137
+ mías |
138
+ tuyo | thine
139
+ tuya |
140
+ tuyos |
141
+ tuyas |
142
+ suyo | his, hers, theirs
143
+ suya |
144
+ suyos |
145
+ suyas |
146
+ nuestro | ours
147
+ nuestra |
148
+ nuestros |
149
+ nuestras |
150
+ vuestro | yours
151
+ vuestra |
152
+ vuestros |
153
+ vuestras |
154
+ esos | those
155
+ esas | those
156
+
157
+ | forms of estar, to be (not including the infinitive):
158
+ estoy
159
+ estás
160
+ está
161
+ estamos
162
+ estáis
163
+ están
164
+ esté
165
+ estés
166
+ estemos
167
+ estéis
168
+ estén
169
+ estaré
170
+ estarás
171
+ estará
172
+ estaremos
173
+ estaréis
174
+ estarán
175
+ estaría
176
+ estarías
177
+ estaríamos
178
+ estaríais
179
+ estarían
180
+ estaba
181
+ estabas
182
+ estábamos
183
+ estabais
184
+ estaban
185
+ estuve
186
+ estuviste
187
+ estuvo
188
+ estuvimos
189
+ estuvisteis
190
+ estuvieron
191
+ estuviera
192
+ estuvieras
193
+ estuviéramos
194
+ estuvierais
195
+ estuvieran
196
+ estuviese
197
+ estuvieses
198
+ estuviésemos
199
+ estuvieseis
200
+ estuviesen
201
+ estando
202
+ estado
203
+ estada
204
+ estados
205
+ estadas
206
+ estad
207
+
208
+ | forms of haber, to have (not including the infinitive):
209
+ he
210
+ has
211
+ ha
212
+ hemos
213
+ habéis
214
+ han
215
+ haya
216
+ hayas
217
+ hayamos
218
+ hayáis
219
+ hayan
220
+ habré
221
+ habrás
222
+ habrá
223
+ habremos
224
+ habréis
225
+ habrán
226
+ habría
227
+ habrías
228
+ habríamos
229
+ habríais
230
+ habrían
231
+ había
232
+ habías
233
+ habíamos
234
+ habíais
235
+ habían
236
+ hube
237
+ hubiste
238
+ hubo
239
+ hubimos
240
+ hubisteis
241
+ hubieron
242
+ hubiera
243
+ hubieras
244
+ hubiéramos
245
+ hubierais
246
+ hubieran
247
+ hubiese
248
+ hubieses
249
+ hubiésemos
250
+ hubieseis
251
+ hubiesen
252
+ habiendo
253
+ habido
254
+ habida
255
+ habidos
256
+ habidas
257
+
258
+ | forms of ser, to be (not including the infinitive):
259
+ soy
260
+ eres
261
+ es
262
+ somos
263
+ sois
264
+ son
265
+ sea
266
+ seas
267
+ seamos
268
+ seáis
269
+ sean
270
+ seré
271
+ serás
272
+ será
273
+ seremos
274
+ seréis
275
+ serán
276
+ sería
277
+ serías
278
+ seríamos
279
+ seríais
280
+ serían
281
+ era
282
+ eras
283
+ éramos
284
+ erais
285
+ eran
286
+ fui
287
+ fuiste
288
+ fue
289
+ fuimos
290
+ fuisteis
291
+ fueron
292
+ fuera
293
+ fueras
294
+ fuéramos
295
+ fuerais
296
+ fueran
297
+ fuese
298
+ fueses
299
+ fuésemos
300
+ fueseis
301
+ fuesen
302
+ siendo
303
+ sido
304
+ | sed also means 'thirst'
305
+
306
+ | forms of tener, to have (not including the infinitive):
307
+ tengo
308
+ tienes
309
+ tiene
310
+ tenemos
311
+ tenéis
312
+ tienen
313
+ tenga
314
+ tengas
315
+ tengamos
316
+ tengáis
317
+ tengan
318
+ tendré
319
+ tendrás
320
+ tendrá
321
+ tendremos
322
+ tendréis
323
+ tendrán
324
+ tendría
325
+ tendrías
326
+ tendríamos
327
+ tendríais
328
+ tendrían
329
+ tenía
330
+ tenías
331
+ teníamos
332
+ teníais
333
+ tenían
334
+ tuve
335
+ tuviste
336
+ tuvo
337
+ tuvimos
338
+ tuvisteis
339
+ tuvieron
340
+ tuviera
341
+ tuvieras
342
+ tuviéramos
343
+ tuvierais
344
+ tuvieran
345
+ tuviese
346
+ tuvieses
347
+ tuviésemos
348
+ tuvieseis
349
+ tuviesen
350
+ teniendo
351
+ tenido
352
+ tenida
353
+ tenidos
354
+ tenidas
355
+ tened
356
+