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,186 @@
1
+ | From svn.tartarus.org/snowball/trunk/website/algorithms/french/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 French stop word list. Comments begin with vertical bar. Each stop
11
+ | word is at the start of a line.
12
+
13
+ au | a + le
14
+ aux | a + les
15
+ avec | with
16
+ ce | this
17
+ ces | these
18
+ dans | with
19
+ de | of
20
+ des | de + les
21
+ du | de + le
22
+ elle | she
23
+ en | `of them' etc
24
+ et | and
25
+ eux | them
26
+ il | he
27
+ je | I
28
+ la | the
29
+ le | the
30
+ leur | their
31
+ lui | him
32
+ ma | my (fem)
33
+ mais | but
34
+ me | me
35
+ même | same; as in moi-même (myself) etc
36
+ mes | me (pl)
37
+ moi | me
38
+ mon | my (masc)
39
+ ne | not
40
+ nos | our (pl)
41
+ notre | our
42
+ nous | we
43
+ on | one
44
+ ou | where
45
+ par | by
46
+ pas | not
47
+ pour | for
48
+ qu | que before vowel
49
+ que | that
50
+ qui | who
51
+ sa | his, her (fem)
52
+ se | oneself
53
+ ses | his (pl)
54
+ son | his, her (masc)
55
+ sur | on
56
+ ta | thy (fem)
57
+ te | thee
58
+ tes | thy (pl)
59
+ toi | thee
60
+ ton | thy (masc)
61
+ tu | thou
62
+ un | a
63
+ une | a
64
+ vos | your (pl)
65
+ votre | your
66
+ vous | you
67
+
68
+ | single letter forms
69
+
70
+ c | c'
71
+ d | d'
72
+ j | j'
73
+ l | l'
74
+ à | to, at
75
+ m | m'
76
+ n | n'
77
+ s | s'
78
+ t | t'
79
+ y | there
80
+
81
+ | forms of être (not including the infinitive):
82
+ été
83
+ étée
84
+ étées
85
+ étés
86
+ étant
87
+ suis
88
+ es
89
+ est
90
+ sommes
91
+ êtes
92
+ sont
93
+ serai
94
+ seras
95
+ sera
96
+ serons
97
+ serez
98
+ seront
99
+ serais
100
+ serait
101
+ serions
102
+ seriez
103
+ seraient
104
+ étais
105
+ était
106
+ étions
107
+ étiez
108
+ étaient
109
+ fus
110
+ fut
111
+ fûmes
112
+ fûtes
113
+ furent
114
+ sois
115
+ soit
116
+ soyons
117
+ soyez
118
+ soient
119
+ fusse
120
+ fusses
121
+ fût
122
+ fussions
123
+ fussiez
124
+ fussent
125
+
126
+ | forms of avoir (not including the infinitive):
127
+ ayant
128
+ eu
129
+ eue
130
+ eues
131
+ eus
132
+ ai
133
+ as
134
+ avons
135
+ avez
136
+ ont
137
+ aurai
138
+ auras
139
+ aura
140
+ aurons
141
+ aurez
142
+ auront
143
+ aurais
144
+ aurait
145
+ aurions
146
+ auriez
147
+ auraient
148
+ avais
149
+ avait
150
+ avions
151
+ aviez
152
+ avaient
153
+ eut
154
+ eûmes
155
+ eûtes
156
+ eurent
157
+ aie
158
+ aies
159
+ ait
160
+ ayons
161
+ ayez
162
+ aient
163
+ eusse
164
+ eusses
165
+ eût
166
+ eussions
167
+ eussiez
168
+ eussent
169
+
170
+ | Later additions (from Jean-Christophe Deschamps)
171
+ ceci | this
172
+ cela | that
173
+ celà | that
174
+ cet | this
175
+ cette | this
176
+ ici | here
177
+ ils | they
178
+ les | the (pl)
179
+ leurs | their (pl)
180
+ quel | which
181
+ quels | which
182
+ quelle | which
183
+ quelles | which
184
+ sans | without
185
+ soi | oneself
186
+
@@ -0,0 +1,110 @@
1
+
2
+ a
3
+ ach
4
+ ag
5
+ agus
6
+ an
7
+ aon
8
+ ar
9
+ arna
10
+ as
11
+ b'
12
+ ba
13
+ beirt
14
+ bhúr
15
+ caoga
16
+ ceathair
17
+ ceathrar
18
+ chomh
19
+ chtó
20
+ chuig
21
+ chun
22
+ cois
23
+ céad
24
+ cúig
25
+ cúigear
26
+ d'
27
+ daichead
28
+ dar
29
+ de
30
+ deich
31
+ deichniúr
32
+ den
33
+ dhá
34
+ do
35
+ don
36
+ dtí
37
+
38
+ dár
39
+
40
+ faoi
41
+ faoin
42
+ faoina
43
+ faoinár
44
+ fara
45
+ fiche
46
+ gach
47
+ gan
48
+ go
49
+ gur
50
+ haon
51
+ hocht
52
+ i
53
+ iad
54
+ idir
55
+ in
56
+ ina
57
+ ins
58
+ inár
59
+ is
60
+ le
61
+ leis
62
+ lena
63
+ lenár
64
+ m'
65
+ mar
66
+ mo
67
+
68
+ na
69
+ nach
70
+ naoi
71
+ naonúr
72
+
73
+
74
+ níor
75
+
76
+ nócha
77
+ ocht
78
+ ochtar
79
+ os
80
+ roimh
81
+ sa
82
+ seacht
83
+ seachtar
84
+ seachtó
85
+ seasca
86
+ seisear
87
+ siad
88
+ sibh
89
+ sinn
90
+ sna
91
+
92
+
93
+ tar
94
+ thar
95
+ thú
96
+ triúr
97
+ trí
98
+ trína
99
+ trínár
100
+ tríocha
101
+
102
+ um
103
+ ár
104
+ é
105
+ éis
106
+ í
107
+ ó
108
+ ón
109
+ óna
110
+ ónár
@@ -0,0 +1,161 @@
1
+ # galican stopwords
2
+ a
3
+ aínda
4
+ alí
5
+ aquel
6
+ aquela
7
+ aquelas
8
+ aqueles
9
+ aquilo
10
+ aquí
11
+ ao
12
+ aos
13
+ as
14
+ así
15
+ á
16
+ ben
17
+ cando
18
+ che
19
+ co
20
+ coa
21
+ comigo
22
+ con
23
+ connosco
24
+ contigo
25
+ convosco
26
+ coas
27
+ cos
28
+ cun
29
+ cuns
30
+ cunha
31
+ cunhas
32
+ da
33
+ dalgunha
34
+ dalgunhas
35
+ dalgún
36
+ dalgúns
37
+ das
38
+ de
39
+ del
40
+ dela
41
+ delas
42
+ deles
43
+ desde
44
+ deste
45
+ do
46
+ dos
47
+ dun
48
+ duns
49
+ dunha
50
+ dunhas
51
+ e
52
+ el
53
+ ela
54
+ elas
55
+ eles
56
+ en
57
+ era
58
+ eran
59
+ esa
60
+ esas
61
+ ese
62
+ eses
63
+ esta
64
+ estar
65
+ estaba
66
+ está
67
+ están
68
+ este
69
+ estes
70
+ estiven
71
+ estou
72
+ eu
73
+ é
74
+ facer
75
+ foi
76
+ foron
77
+ fun
78
+ había
79
+ hai
80
+ iso
81
+ isto
82
+ la
83
+ las
84
+ lle
85
+ lles
86
+ lo
87
+ los
88
+ mais
89
+ me
90
+ meu
91
+ meus
92
+ min
93
+ miña
94
+ miñas
95
+ moi
96
+ na
97
+ nas
98
+ neste
99
+ nin
100
+ no
101
+ non
102
+ nos
103
+ nosa
104
+ nosas
105
+ noso
106
+ nosos
107
+ nós
108
+ nun
109
+ nunha
110
+ nuns
111
+ nunhas
112
+ o
113
+ os
114
+ ou
115
+ ó
116
+ ós
117
+ para
118
+ pero
119
+ pode
120
+ pois
121
+ pola
122
+ polas
123
+ polo
124
+ polos
125
+ por
126
+ que
127
+ se
128
+ senón
129
+ ser
130
+ seu
131
+ seus
132
+ sexa
133
+ sido
134
+ sobre
135
+ súa
136
+ súas
137
+ tamén
138
+ tan
139
+ te
140
+ ten
141
+ teñen
142
+ teño
143
+ ter
144
+ teu
145
+ teus
146
+ ti
147
+ tido
148
+ tiña
149
+ tiven
150
+ túa
151
+ túas
152
+ un
153
+ unha
154
+ unhas
155
+ uns
156
+ vos
157
+ vosa
158
+ vosas
159
+ voso
160
+ vosos
161
+ vós