mongoid-haystack 1.0.0
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.
- data/Rakefile +446 -0
- data/lib/app/models/mongoid/haystack/count.rb +1 -0
- data/lib/app/models/mongoid/haystack/index.rb +1 -0
- data/lib/app/models/mongoid/haystack/sequence.rb +1 -0
- data/lib/app/models/mongoid/haystack/token.rb +1 -0
- data/lib/mongoid-haystack.rb +79 -0
- data/lib/mongoid-haystack/count.rb +28 -0
- data/lib/mongoid-haystack/index.rb +165 -0
- data/lib/mongoid-haystack/search.rb +96 -0
- data/lib/mongoid-haystack/sequence.rb +55 -0
- data/lib/mongoid-haystack/stemming.rb +79 -0
- data/lib/mongoid-haystack/stemming/stopwords/english.txt +32 -0
- data/lib/mongoid-haystack/stemming/stopwords/extended_english.txt +216 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_danish.txt +94 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_dutch.txt +101 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_english.txt +174 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_finnish.txt +0 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_french.txt +155 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_german.txt +231 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_italian.txt +279 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_norwegian.txt +176 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_portuguese.txt +203 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_russian.txt +101 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_russiankoi8_r.txt +101 -0
- data/lib/mongoid-haystack/stemming/stopwords/full_spanish.txt +313 -0
- data/lib/mongoid-haystack/token.rb +71 -0
- data/lib/mongoid-haystack/util.rb +67 -0
- data/mongoid-haystack.gemspec +73 -0
- data/test/helper.rb +28 -0
- data/test/mongoid-haystack_test.rb +119 -0
- data/test/testing.rb +196 -0
- metadata +123 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
a
|
|
2
|
+
about
|
|
3
|
+
above
|
|
4
|
+
after
|
|
5
|
+
again
|
|
6
|
+
against
|
|
7
|
+
all
|
|
8
|
+
am
|
|
9
|
+
an
|
|
10
|
+
and
|
|
11
|
+
any
|
|
12
|
+
are
|
|
13
|
+
aren't
|
|
14
|
+
as
|
|
15
|
+
at
|
|
16
|
+
be
|
|
17
|
+
because
|
|
18
|
+
been
|
|
19
|
+
before
|
|
20
|
+
being
|
|
21
|
+
below
|
|
22
|
+
between
|
|
23
|
+
both
|
|
24
|
+
but
|
|
25
|
+
by
|
|
26
|
+
cannot
|
|
27
|
+
can't
|
|
28
|
+
could
|
|
29
|
+
couldn't
|
|
30
|
+
did
|
|
31
|
+
didn't
|
|
32
|
+
do
|
|
33
|
+
does
|
|
34
|
+
doesn't
|
|
35
|
+
doing
|
|
36
|
+
don't
|
|
37
|
+
down
|
|
38
|
+
during
|
|
39
|
+
each
|
|
40
|
+
few
|
|
41
|
+
for
|
|
42
|
+
from
|
|
43
|
+
further
|
|
44
|
+
had
|
|
45
|
+
hadn't
|
|
46
|
+
has
|
|
47
|
+
hasn't
|
|
48
|
+
have
|
|
49
|
+
haven't
|
|
50
|
+
having
|
|
51
|
+
he
|
|
52
|
+
he'd
|
|
53
|
+
he'll
|
|
54
|
+
her
|
|
55
|
+
here
|
|
56
|
+
here's
|
|
57
|
+
hers
|
|
58
|
+
herself
|
|
59
|
+
he's
|
|
60
|
+
him
|
|
61
|
+
himself
|
|
62
|
+
his
|
|
63
|
+
how
|
|
64
|
+
how's
|
|
65
|
+
i
|
|
66
|
+
i'd
|
|
67
|
+
if
|
|
68
|
+
i'll
|
|
69
|
+
i'm
|
|
70
|
+
in
|
|
71
|
+
into
|
|
72
|
+
is
|
|
73
|
+
isn't
|
|
74
|
+
it
|
|
75
|
+
its
|
|
76
|
+
it's
|
|
77
|
+
itself
|
|
78
|
+
i've
|
|
79
|
+
let's
|
|
80
|
+
me
|
|
81
|
+
more
|
|
82
|
+
most
|
|
83
|
+
mustn't
|
|
84
|
+
my
|
|
85
|
+
myself
|
|
86
|
+
no
|
|
87
|
+
nor
|
|
88
|
+
not
|
|
89
|
+
of
|
|
90
|
+
off
|
|
91
|
+
on
|
|
92
|
+
once
|
|
93
|
+
only
|
|
94
|
+
or
|
|
95
|
+
other
|
|
96
|
+
ought
|
|
97
|
+
our
|
|
98
|
+
ours
|
|
99
|
+
ourselves
|
|
100
|
+
out
|
|
101
|
+
over
|
|
102
|
+
own
|
|
103
|
+
same
|
|
104
|
+
shan't
|
|
105
|
+
she
|
|
106
|
+
she'd
|
|
107
|
+
she'll
|
|
108
|
+
she's
|
|
109
|
+
should
|
|
110
|
+
shouldn't
|
|
111
|
+
so
|
|
112
|
+
some
|
|
113
|
+
such
|
|
114
|
+
than
|
|
115
|
+
that
|
|
116
|
+
that's
|
|
117
|
+
the
|
|
118
|
+
their
|
|
119
|
+
theirs
|
|
120
|
+
them
|
|
121
|
+
themselves
|
|
122
|
+
then
|
|
123
|
+
there
|
|
124
|
+
there's
|
|
125
|
+
these
|
|
126
|
+
they
|
|
127
|
+
they'd
|
|
128
|
+
they'll
|
|
129
|
+
they're
|
|
130
|
+
they've
|
|
131
|
+
this
|
|
132
|
+
those
|
|
133
|
+
through
|
|
134
|
+
to
|
|
135
|
+
too
|
|
136
|
+
under
|
|
137
|
+
until
|
|
138
|
+
up
|
|
139
|
+
very
|
|
140
|
+
was
|
|
141
|
+
wasn't
|
|
142
|
+
we
|
|
143
|
+
we'd
|
|
144
|
+
we'll
|
|
145
|
+
were
|
|
146
|
+
we're
|
|
147
|
+
weren't
|
|
148
|
+
we've
|
|
149
|
+
what
|
|
150
|
+
what's
|
|
151
|
+
when
|
|
152
|
+
when's
|
|
153
|
+
where
|
|
154
|
+
where's
|
|
155
|
+
which
|
|
156
|
+
while
|
|
157
|
+
who
|
|
158
|
+
whom
|
|
159
|
+
who's
|
|
160
|
+
why
|
|
161
|
+
why's
|
|
162
|
+
with
|
|
163
|
+
won't
|
|
164
|
+
would
|
|
165
|
+
wouldn't
|
|
166
|
+
you
|
|
167
|
+
you'd
|
|
168
|
+
you'll
|
|
169
|
+
your
|
|
170
|
+
you're
|
|
171
|
+
yours
|
|
172
|
+
yourself
|
|
173
|
+
yourselves
|
|
174
|
+
you've
|
|
175
|
+
one
|
|
176
|
+
every
|
|
177
|
+
least
|
|
178
|
+
less
|
|
179
|
+
many
|
|
180
|
+
now
|
|
181
|
+
ever
|
|
182
|
+
never
|
|
183
|
+
say
|
|
184
|
+
says
|
|
185
|
+
said
|
|
186
|
+
also
|
|
187
|
+
get
|
|
188
|
+
go
|
|
189
|
+
goes
|
|
190
|
+
just
|
|
191
|
+
made
|
|
192
|
+
make
|
|
193
|
+
put
|
|
194
|
+
see
|
|
195
|
+
seen
|
|
196
|
+
whether
|
|
197
|
+
like
|
|
198
|
+
well
|
|
199
|
+
back
|
|
200
|
+
even
|
|
201
|
+
still
|
|
202
|
+
way
|
|
203
|
+
take
|
|
204
|
+
since
|
|
205
|
+
another
|
|
206
|
+
however
|
|
207
|
+
two
|
|
208
|
+
three
|
|
209
|
+
four
|
|
210
|
+
five
|
|
211
|
+
first
|
|
212
|
+
second
|
|
213
|
+
new
|
|
214
|
+
old
|
|
215
|
+
high
|
|
216
|
+
long
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
og
|
|
2
|
+
i
|
|
3
|
+
jeg
|
|
4
|
+
det
|
|
5
|
+
at
|
|
6
|
+
en
|
|
7
|
+
den
|
|
8
|
+
til
|
|
9
|
+
er
|
|
10
|
+
som
|
|
11
|
+
på
|
|
12
|
+
de
|
|
13
|
+
med
|
|
14
|
+
han
|
|
15
|
+
af
|
|
16
|
+
for
|
|
17
|
+
ikke
|
|
18
|
+
der
|
|
19
|
+
var
|
|
20
|
+
mig
|
|
21
|
+
sig
|
|
22
|
+
men
|
|
23
|
+
et
|
|
24
|
+
har
|
|
25
|
+
om
|
|
26
|
+
vi
|
|
27
|
+
min
|
|
28
|
+
havde
|
|
29
|
+
ham
|
|
30
|
+
hun
|
|
31
|
+
nu
|
|
32
|
+
over
|
|
33
|
+
da
|
|
34
|
+
fra
|
|
35
|
+
du
|
|
36
|
+
ud
|
|
37
|
+
sin
|
|
38
|
+
dem
|
|
39
|
+
os
|
|
40
|
+
op
|
|
41
|
+
man
|
|
42
|
+
hans
|
|
43
|
+
hvor
|
|
44
|
+
eller
|
|
45
|
+
hvad
|
|
46
|
+
skal
|
|
47
|
+
selv
|
|
48
|
+
her
|
|
49
|
+
alle
|
|
50
|
+
vil
|
|
51
|
+
blev
|
|
52
|
+
kunne
|
|
53
|
+
ind
|
|
54
|
+
når
|
|
55
|
+
være
|
|
56
|
+
dog
|
|
57
|
+
noget
|
|
58
|
+
ville
|
|
59
|
+
jo
|
|
60
|
+
deres
|
|
61
|
+
efter
|
|
62
|
+
ned
|
|
63
|
+
skulle
|
|
64
|
+
denne
|
|
65
|
+
end
|
|
66
|
+
dette
|
|
67
|
+
mit
|
|
68
|
+
også
|
|
69
|
+
under
|
|
70
|
+
have
|
|
71
|
+
dig
|
|
72
|
+
anden
|
|
73
|
+
hende
|
|
74
|
+
mine
|
|
75
|
+
alt
|
|
76
|
+
meget
|
|
77
|
+
sit
|
|
78
|
+
sine
|
|
79
|
+
vor
|
|
80
|
+
mod
|
|
81
|
+
disse
|
|
82
|
+
hvis
|
|
83
|
+
din
|
|
84
|
+
nogle
|
|
85
|
+
hos
|
|
86
|
+
blive
|
|
87
|
+
mange
|
|
88
|
+
ad
|
|
89
|
+
bliver
|
|
90
|
+
hendes
|
|
91
|
+
været
|
|
92
|
+
thi
|
|
93
|
+
jer
|
|
94
|
+
sådan
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
de
|
|
2
|
+
en
|
|
3
|
+
van
|
|
4
|
+
ik
|
|
5
|
+
te
|
|
6
|
+
dat
|
|
7
|
+
die
|
|
8
|
+
in
|
|
9
|
+
een
|
|
10
|
+
hij
|
|
11
|
+
het
|
|
12
|
+
niet
|
|
13
|
+
zijn
|
|
14
|
+
is
|
|
15
|
+
was
|
|
16
|
+
op
|
|
17
|
+
aan
|
|
18
|
+
met
|
|
19
|
+
als
|
|
20
|
+
voor
|
|
21
|
+
had
|
|
22
|
+
er
|
|
23
|
+
maar
|
|
24
|
+
om
|
|
25
|
+
hem
|
|
26
|
+
dan
|
|
27
|
+
zou
|
|
28
|
+
of
|
|
29
|
+
wat
|
|
30
|
+
mijn
|
|
31
|
+
men
|
|
32
|
+
dit
|
|
33
|
+
zo
|
|
34
|
+
door
|
|
35
|
+
over
|
|
36
|
+
ze
|
|
37
|
+
zich
|
|
38
|
+
bij
|
|
39
|
+
ook
|
|
40
|
+
tot
|
|
41
|
+
je
|
|
42
|
+
mij
|
|
43
|
+
uit
|
|
44
|
+
der
|
|
45
|
+
daar
|
|
46
|
+
haar
|
|
47
|
+
naar
|
|
48
|
+
heb
|
|
49
|
+
hoe
|
|
50
|
+
heeft
|
|
51
|
+
hebben
|
|
52
|
+
deze
|
|
53
|
+
u
|
|
54
|
+
want
|
|
55
|
+
nog
|
|
56
|
+
zal
|
|
57
|
+
me
|
|
58
|
+
zij
|
|
59
|
+
nu
|
|
60
|
+
ge
|
|
61
|
+
geen
|
|
62
|
+
omdat
|
|
63
|
+
iets
|
|
64
|
+
worden
|
|
65
|
+
toch
|
|
66
|
+
al
|
|
67
|
+
waren
|
|
68
|
+
veel
|
|
69
|
+
meer
|
|
70
|
+
doen
|
|
71
|
+
toen
|
|
72
|
+
moet
|
|
73
|
+
ben
|
|
74
|
+
zonder
|
|
75
|
+
kan
|
|
76
|
+
hun
|
|
77
|
+
dus
|
|
78
|
+
alles
|
|
79
|
+
onder
|
|
80
|
+
ja
|
|
81
|
+
eens
|
|
82
|
+
hier
|
|
83
|
+
wie
|
|
84
|
+
werd
|
|
85
|
+
altijd
|
|
86
|
+
doch
|
|
87
|
+
wordt
|
|
88
|
+
wezen
|
|
89
|
+
kunnen
|
|
90
|
+
ons
|
|
91
|
+
zelf
|
|
92
|
+
tegen
|
|
93
|
+
na
|
|
94
|
+
reeds
|
|
95
|
+
wil
|
|
96
|
+
kon
|
|
97
|
+
niets
|
|
98
|
+
uw
|
|
99
|
+
iemand
|
|
100
|
+
geweest
|
|
101
|
+
andere
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
a
|
|
2
|
+
about
|
|
3
|
+
above
|
|
4
|
+
after
|
|
5
|
+
again
|
|
6
|
+
against
|
|
7
|
+
all
|
|
8
|
+
am
|
|
9
|
+
an
|
|
10
|
+
and
|
|
11
|
+
any
|
|
12
|
+
are
|
|
13
|
+
aren't
|
|
14
|
+
as
|
|
15
|
+
at
|
|
16
|
+
be
|
|
17
|
+
because
|
|
18
|
+
been
|
|
19
|
+
before
|
|
20
|
+
being
|
|
21
|
+
below
|
|
22
|
+
between
|
|
23
|
+
both
|
|
24
|
+
but
|
|
25
|
+
by
|
|
26
|
+
cannot
|
|
27
|
+
can't
|
|
28
|
+
could
|
|
29
|
+
couldn't
|
|
30
|
+
did
|
|
31
|
+
didn't
|
|
32
|
+
do
|
|
33
|
+
does
|
|
34
|
+
doesn't
|
|
35
|
+
doing
|
|
36
|
+
don't
|
|
37
|
+
down
|
|
38
|
+
during
|
|
39
|
+
each
|
|
40
|
+
few
|
|
41
|
+
for
|
|
42
|
+
from
|
|
43
|
+
further
|
|
44
|
+
had
|
|
45
|
+
hadn't
|
|
46
|
+
has
|
|
47
|
+
hasn't
|
|
48
|
+
have
|
|
49
|
+
haven't
|
|
50
|
+
having
|
|
51
|
+
he
|
|
52
|
+
he'd
|
|
53
|
+
he'll
|
|
54
|
+
her
|
|
55
|
+
here
|
|
56
|
+
here's
|
|
57
|
+
hers
|
|
58
|
+
herself
|
|
59
|
+
he's
|
|
60
|
+
him
|
|
61
|
+
himself
|
|
62
|
+
his
|
|
63
|
+
how
|
|
64
|
+
how's
|
|
65
|
+
i
|
|
66
|
+
i'd
|
|
67
|
+
if
|
|
68
|
+
i'll
|
|
69
|
+
i'm
|
|
70
|
+
in
|
|
71
|
+
into
|
|
72
|
+
is
|
|
73
|
+
isn't
|
|
74
|
+
it
|
|
75
|
+
its
|
|
76
|
+
it's
|
|
77
|
+
itself
|
|
78
|
+
i've
|
|
79
|
+
let's
|
|
80
|
+
me
|
|
81
|
+
more
|
|
82
|
+
most
|
|
83
|
+
mustn't
|
|
84
|
+
my
|
|
85
|
+
myself
|
|
86
|
+
no
|
|
87
|
+
nor
|
|
88
|
+
not
|
|
89
|
+
of
|
|
90
|
+
off
|
|
91
|
+
on
|
|
92
|
+
once
|
|
93
|
+
only
|
|
94
|
+
or
|
|
95
|
+
other
|
|
96
|
+
ought
|
|
97
|
+
our
|
|
98
|
+
ours
|
|
99
|
+
ourselves
|
|
100
|
+
out
|
|
101
|
+
over
|
|
102
|
+
own
|
|
103
|
+
same
|
|
104
|
+
shan't
|
|
105
|
+
she
|
|
106
|
+
she'd
|
|
107
|
+
she'll
|
|
108
|
+
she's
|
|
109
|
+
should
|
|
110
|
+
shouldn't
|
|
111
|
+
so
|
|
112
|
+
some
|
|
113
|
+
such
|
|
114
|
+
than
|
|
115
|
+
that
|
|
116
|
+
that's
|
|
117
|
+
the
|
|
118
|
+
their
|
|
119
|
+
theirs
|
|
120
|
+
them
|
|
121
|
+
themselves
|
|
122
|
+
then
|
|
123
|
+
there
|
|
124
|
+
there's
|
|
125
|
+
these
|
|
126
|
+
they
|
|
127
|
+
they'd
|
|
128
|
+
they'll
|
|
129
|
+
they're
|
|
130
|
+
they've
|
|
131
|
+
this
|
|
132
|
+
those
|
|
133
|
+
through
|
|
134
|
+
to
|
|
135
|
+
too
|
|
136
|
+
under
|
|
137
|
+
until
|
|
138
|
+
up
|
|
139
|
+
very
|
|
140
|
+
was
|
|
141
|
+
wasn't
|
|
142
|
+
we
|
|
143
|
+
we'd
|
|
144
|
+
we'll
|
|
145
|
+
were
|
|
146
|
+
we're
|
|
147
|
+
weren't
|
|
148
|
+
we've
|
|
149
|
+
what
|
|
150
|
+
what's
|
|
151
|
+
when
|
|
152
|
+
when's
|
|
153
|
+
where
|
|
154
|
+
where's
|
|
155
|
+
which
|
|
156
|
+
while
|
|
157
|
+
who
|
|
158
|
+
whom
|
|
159
|
+
who's
|
|
160
|
+
why
|
|
161
|
+
why's
|
|
162
|
+
with
|
|
163
|
+
won't
|
|
164
|
+
would
|
|
165
|
+
wouldn't
|
|
166
|
+
you
|
|
167
|
+
you'd
|
|
168
|
+
you'll
|
|
169
|
+
your
|
|
170
|
+
you're
|
|
171
|
+
yours
|
|
172
|
+
yourself
|
|
173
|
+
yourselves
|
|
174
|
+
you've
|