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,253 @@
1
+ | From svn.tartarus.org/snowball/trunk/website/algorithms/portuguese/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 Portuguese 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 | of, from
20
+ a | the; to, at; her
21
+ o | the; him
22
+ que | who, that
23
+ e | and
24
+ do | de + o
25
+ da | de + a
26
+ em | in
27
+ um | a
28
+ para | for
29
+ | é from SER
30
+ com | with
31
+ não | not, no
32
+ uma | a
33
+ os | the; them
34
+ no | em + o
35
+ se | himself etc
36
+ na | em + a
37
+ por | for
38
+ mais | more
39
+ as | the; them
40
+ dos | de + os
41
+ como | as, like
42
+ mas | but
43
+ | foi from SER
44
+ ao | a + o
45
+ ele | he
46
+ das | de + as
47
+ | tem from TER
48
+ à | a + a
49
+ seu | his
50
+ sua | her
51
+ ou | or
52
+ | ser from SER
53
+ quando | when
54
+ muito | much
55
+ | há from HAV
56
+ nos | em + os; us
57
+ já | already, now
58
+ | está from EST
59
+ eu | I
60
+ também | also
61
+ só | only, just
62
+ pelo | per + o
63
+ pela | per + a
64
+ até | up to
65
+ isso | that
66
+ ela | he
67
+ entre | between
68
+ | era from SER
69
+ depois | after
70
+ sem | without
71
+ mesmo | same
72
+ aos | a + os
73
+ | ter from TER
74
+ seus | his
75
+ quem | whom
76
+ nas | em + as
77
+ me | me
78
+ esse | that
79
+ eles | they
80
+ | estão from EST
81
+ você | you
82
+ | tinha from TER
83
+ | foram from SER
84
+ essa | that
85
+ num | em + um
86
+ nem | nor
87
+ suas | her
88
+ meu | my
89
+ às | a + as
90
+ minha | my
91
+ | têm from TER
92
+ numa | em + uma
93
+ pelos | per + os
94
+ elas | they
95
+ | havia from HAV
96
+ | seja from SER
97
+ qual | which
98
+ | será from SER
99
+ nós | we
100
+ | tenho from TER
101
+ lhe | to him, her
102
+ deles | of them
103
+ essas | those
104
+ esses | those
105
+ pelas | per + as
106
+ este | this
107
+ | fosse from SER
108
+ dele | of him
109
+
110
+ | other words. There are many contractions such as naquele = em+aquele,
111
+ | mo = me+o, but they are rare.
112
+ | Indefinite article plural forms are also rare.
113
+
114
+ tu | thou
115
+ te | thee
116
+ vocês | you (plural)
117
+ vos | you
118
+ lhes | to them
119
+ meus | my
120
+ minhas
121
+ teu | thy
122
+ tua
123
+ teus
124
+ tuas
125
+ nosso | our
126
+ nossa
127
+ nossos
128
+ nossas
129
+
130
+ dela | of her
131
+ delas | of them
132
+
133
+ esta | this
134
+ estes | these
135
+ estas | these
136
+ aquele | that
137
+ aquela | that
138
+ aqueles | those
139
+ aquelas | those
140
+ isto | this
141
+ aquilo | that
142
+
143
+ | forms of estar, to be (not including the infinitive):
144
+ estou
145
+ está
146
+ estamos
147
+ estão
148
+ estive
149
+ esteve
150
+ estivemos
151
+ estiveram
152
+ estava
153
+ estávamos
154
+ estavam
155
+ estivera
156
+ estivéramos
157
+ esteja
158
+ estejamos
159
+ estejam
160
+ estivesse
161
+ estivéssemos
162
+ estivessem
163
+ estiver
164
+ estivermos
165
+ estiverem
166
+
167
+ | forms of haver, to have (not including the infinitive):
168
+ hei
169
+
170
+ havemos
171
+ hão
172
+ houve
173
+ houvemos
174
+ houveram
175
+ houvera
176
+ houvéramos
177
+ haja
178
+ hajamos
179
+ hajam
180
+ houvesse
181
+ houvéssemos
182
+ houvessem
183
+ houver
184
+ houvermos
185
+ houverem
186
+ houverei
187
+ houverá
188
+ houveremos
189
+ houverão
190
+ houveria
191
+ houveríamos
192
+ houveriam
193
+
194
+ | forms of ser, to be (not including the infinitive):
195
+ sou
196
+ somos
197
+ são
198
+ era
199
+ éramos
200
+ eram
201
+ fui
202
+ foi
203
+ fomos
204
+ foram
205
+ fora
206
+ fôramos
207
+ seja
208
+ sejamos
209
+ sejam
210
+ fosse
211
+ fôssemos
212
+ fossem
213
+ for
214
+ formos
215
+ forem
216
+ serei
217
+ será
218
+ seremos
219
+ serão
220
+ seria
221
+ seríamos
222
+ seriam
223
+
224
+ | forms of ter, to have (not including the infinitive):
225
+ tenho
226
+ tem
227
+ temos
228
+ tém
229
+ tinha
230
+ tínhamos
231
+ tinham
232
+ tive
233
+ teve
234
+ tivemos
235
+ tiveram
236
+ tivera
237
+ tivéramos
238
+ tenha
239
+ tenhamos
240
+ tenham
241
+ tivesse
242
+ tivéssemos
243
+ tivessem
244
+ tiver
245
+ tivermos
246
+ tiverem
247
+ terei
248
+ terá
249
+ teremos
250
+ terão
251
+ teria
252
+ teríamos
253
+ teriam
@@ -0,0 +1,233 @@
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
+ acea
5
+ aceasta
6
+ această
7
+ aceea
8
+ acei
9
+ aceia
10
+ acel
11
+ acela
12
+ acele
13
+ acelea
14
+ acest
15
+ acesta
16
+ aceste
17
+ acestea
18
+ aceşti
19
+ aceştia
20
+ acolo
21
+ acum
22
+ ai
23
+ aia
24
+ aibă
25
+ aici
26
+ al
27
+ ăla
28
+ ale
29
+ alea
30
+ ălea
31
+ altceva
32
+ altcineva
33
+ am
34
+ ar
35
+ are
36
+
37
+ aşadar
38
+ asemenea
39
+ asta
40
+ ăsta
41
+ astăzi
42
+ astea
43
+ ăstea
44
+ ăştia
45
+ asupra
46
+ aţi
47
+ au
48
+ avea
49
+ avem
50
+ aveţi
51
+ azi
52
+ bine
53
+ bucur
54
+ bună
55
+ ca
56
+
57
+ căci
58
+ când
59
+ care
60
+ cărei
61
+ căror
62
+ cărui
63
+ cât
64
+ câte
65
+ câţi
66
+ către
67
+ câtva
68
+ ce
69
+ cel
70
+ ceva
71
+ chiar
72
+ cînd
73
+ cine
74
+ cineva
75
+ cît
76
+ cîte
77
+ cîţi
78
+ cîtva
79
+ contra
80
+ cu
81
+ cum
82
+ cumva
83
+ curând
84
+ curînd
85
+ da
86
+
87
+ dacă
88
+ dar
89
+ datorită
90
+ de
91
+ deci
92
+ deja
93
+ deoarece
94
+ departe
95
+ deşi
96
+ din
97
+ dinaintea
98
+ dintr
99
+ dintre
100
+ drept
101
+ după
102
+ ea
103
+ ei
104
+ el
105
+ ele
106
+ eram
107
+ este
108
+ eşti
109
+ eu
110
+ face
111
+ fără
112
+ fi
113
+ fie
114
+ fiecare
115
+ fii
116
+ fim
117
+ fiţi
118
+ iar
119
+ ieri
120
+ îi
121
+ îl
122
+ îmi
123
+ împotriva
124
+ în
125
+ înainte
126
+ înaintea
127
+ încât
128
+ încît
129
+ încotro
130
+ între
131
+ întrucât
132
+ întrucît
133
+ îţi
134
+ la
135
+ lângă
136
+ le
137
+ li
138
+ lîngă
139
+ lor
140
+ lui
141
+
142
+ mâine
143
+ mea
144
+ mei
145
+ mele
146
+ mereu
147
+ meu
148
+ mi
149
+ mine
150
+ mult
151
+ multă
152
+ mulţi
153
+ ne
154
+ nicăieri
155
+ nici
156
+ nimeni
157
+ nişte
158
+ noastră
159
+ noastre
160
+ noi
161
+ noştri
162
+ nostru
163
+ nu
164
+ ori
165
+ oricând
166
+ oricare
167
+ oricât
168
+ orice
169
+ oricînd
170
+ oricine
171
+ oricît
172
+ oricum
173
+ oriunde
174
+ până
175
+ pe
176
+ pentru
177
+ peste
178
+ pînă
179
+ poate
180
+ pot
181
+ prea
182
+ prima
183
+ primul
184
+ prin
185
+ printr
186
+ sa
187
+
188
+ săi
189
+ sale
190
+ sau
191
+ său
192
+ se
193
+ şi
194
+ sînt
195
+ sîntem
196
+ sînteţi
197
+ spre
198
+ sub
199
+ sunt
200
+ suntem
201
+ sunteţi
202
+ ta
203
+ tăi
204
+ tale
205
+ tău
206
+ te
207
+ ţi
208
+ ţie
209
+ tine
210
+ toată
211
+ toate
212
+ tot
213
+ toţi
214
+ totuşi
215
+ tu
216
+ un
217
+ una
218
+ unde
219
+ undeva
220
+ unei
221
+ unele
222
+ uneori
223
+ unor
224
+
225
+ vi
226
+ voastră
227
+ voastre
228
+ voi
229
+ voştri
230
+ vostru
231
+ vouă
232
+ vreo
233
+ vreun