ferret 0.3.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +9 -0
- data/Rakefile +51 -25
- data/ext/analysis.c +553 -0
- data/ext/analysis.h +76 -0
- data/ext/array.c +83 -0
- data/ext/array.h +19 -0
- data/ext/bitvector.c +164 -0
- data/ext/bitvector.h +29 -0
- data/ext/compound_io.c +335 -0
- data/ext/document.c +336 -0
- data/ext/document.h +87 -0
- data/ext/ferret.c +88 -47
- data/ext/ferret.h +43 -109
- data/ext/field.c +395 -0
- data/ext/filter.c +103 -0
- data/ext/fs_store.c +352 -0
- data/ext/global.c +219 -0
- data/ext/global.h +73 -0
- data/ext/hash.c +446 -0
- data/ext/hash.h +80 -0
- data/ext/hashset.c +141 -0
- data/ext/hashset.h +37 -0
- data/ext/helper.c +11 -0
- data/ext/helper.h +5 -0
- data/ext/inc/lang.h +41 -0
- data/ext/ind.c +389 -0
- data/ext/index.h +884 -0
- data/ext/index_io.c +269 -415
- data/ext/index_rw.c +2543 -0
- data/ext/lang.c +31 -0
- data/ext/lang.h +41 -0
- data/ext/priorityqueue.c +228 -0
- data/ext/priorityqueue.h +44 -0
- data/ext/q_boolean.c +1331 -0
- data/ext/q_const_score.c +154 -0
- data/ext/q_fuzzy.c +287 -0
- data/ext/q_match_all.c +142 -0
- data/ext/q_multi_phrase.c +343 -0
- data/ext/q_parser.c +2180 -0
- data/ext/q_phrase.c +657 -0
- data/ext/q_prefix.c +75 -0
- data/ext/q_range.c +247 -0
- data/ext/q_span.c +1566 -0
- data/ext/q_term.c +308 -0
- data/ext/q_wildcard.c +146 -0
- data/ext/r_analysis.c +255 -0
- data/ext/r_doc.c +578 -0
- data/ext/r_index_io.c +996 -0
- data/ext/r_qparser.c +158 -0
- data/ext/r_search.c +2321 -0
- data/ext/r_store.c +263 -0
- data/ext/r_term.c +219 -0
- data/ext/ram_store.c +447 -0
- data/ext/search.c +524 -0
- data/ext/search.h +1065 -0
- data/ext/similarity.c +143 -39
- data/ext/sort.c +661 -0
- data/ext/store.c +35 -0
- data/ext/store.h +152 -0
- data/ext/term.c +704 -143
- data/ext/termdocs.c +599 -0
- data/ext/vector.c +594 -0
- data/lib/ferret.rb +9 -10
- data/lib/ferret/analysis/analyzers.rb +2 -2
- data/lib/ferret/analysis/standard_tokenizer.rb +1 -1
- data/lib/ferret/analysis/token.rb +14 -14
- data/lib/ferret/analysis/token_filters.rb +3 -3
- data/lib/ferret/document/field.rb +16 -17
- data/lib/ferret/index/document_writer.rb +4 -4
- data/lib/ferret/index/index.rb +39 -23
- data/lib/ferret/index/index_writer.rb +2 -2
- data/lib/ferret/index/multiple_term_doc_pos_enum.rb +1 -8
- data/lib/ferret/index/segment_term_vector.rb +4 -4
- data/lib/ferret/index/term.rb +5 -1
- data/lib/ferret/index/term_vector_offset_info.rb +6 -6
- data/lib/ferret/index/term_vectors_io.rb +5 -5
- data/lib/ferret/query_parser/query_parser.tab.rb +81 -77
- data/lib/ferret/search.rb +1 -1
- data/lib/ferret/search/boolean_query.rb +2 -1
- data/lib/ferret/search/field_sorted_hit_queue.rb +3 -3
- data/lib/ferret/search/fuzzy_query.rb +2 -1
- data/lib/ferret/search/index_searcher.rb +3 -0
- data/lib/ferret/search/{match_all_docs_query.rb → match_all_query.rb} +7 -7
- data/lib/ferret/search/multi_phrase_query.rb +6 -5
- data/lib/ferret/search/phrase_query.rb +3 -6
- data/lib/ferret/search/prefix_query.rb +4 -4
- data/lib/ferret/search/sort.rb +3 -1
- data/lib/ferret/search/sort_field.rb +9 -9
- data/lib/ferret/search/spans/near_spans_enum.rb +1 -1
- data/lib/ferret/search/spans/span_near_query.rb +1 -1
- data/lib/ferret/search/spans/span_weight.rb +1 -1
- data/lib/ferret/search/spans/spans_enum.rb +7 -7
- data/lib/ferret/store/fs_store.rb +10 -6
- data/lib/ferret/store/ram_store.rb +3 -3
- data/lib/rferret.rb +36 -0
- data/test/functional/thread_safety_index_test.rb +2 -2
- data/test/test_helper.rb +16 -2
- data/test/unit/analysis/c_token.rb +25 -0
- data/test/unit/analysis/tc_per_field_analyzer_wrapper.rb +1 -1
- data/test/unit/analysis/tc_standard_analyzer.rb +1 -1
- data/test/unit/document/{tc_document.rb → c_document.rb} +0 -0
- data/test/unit/document/c_field.rb +98 -0
- data/test/unit/document/tc_field.rb +0 -66
- data/test/unit/index/{tc_index.rb → c_index.rb} +62 -6
- data/test/unit/index/{tc_index_reader.rb → c_index_reader.rb} +51 -10
- data/test/unit/index/{tc_index_writer.rb → c_index_writer.rb} +0 -4
- data/test/unit/index/{tc_term.rb → c_term.rb} +1 -3
- data/test/unit/index/{tc_term_vector_offset_info.rb → c_term_voi.rb} +5 -5
- data/test/unit/index/tc_segment_term_vector.rb +2 -2
- data/test/unit/index/tc_term_vectors_io.rb +4 -4
- data/test/unit/query_parser/c_query_parser.rb +138 -0
- data/test/unit/search/{tc_filter.rb → c_filter.rb} +24 -24
- data/test/unit/search/{tc_fuzzy_query.rb → c_fuzzy_query.rb} +0 -0
- data/test/unit/search/{tc_index_searcher.rb → c_index_searcher.rb} +9 -26
- data/test/unit/search/{tc_search_and_sort.rb → c_search_and_sort.rb} +15 -15
- data/test/unit/search/{tc_sort.rb → c_sort.rb} +2 -1
- data/test/unit/search/c_sort_field.rb +27 -0
- data/test/unit/search/{tc_spans.rb → c_spans.rb} +0 -0
- data/test/unit/search/tc_sort_field.rb +7 -20
- data/test/unit/store/c_fs_store.rb +76 -0
- data/test/unit/store/c_ram_store.rb +35 -0
- data/test/unit/store/m_store.rb +34 -0
- data/test/unit/store/m_store_lock.rb +68 -0
- data/test/unit/store/tc_fs_store.rb +0 -53
- data/test/unit/store/tc_ram_store.rb +0 -20
- data/test/unit/store/tm_store.rb +0 -30
- data/test/unit/store/tm_store_lock.rb +0 -66
- metadata +84 -31
- data/ext/Makefile +0 -140
- data/ext/ferret_ext.so +0 -0
- data/ext/priority_queue.c +0 -232
- data/ext/ram_directory.c +0 -321
- data/ext/segment_merge_queue.c +0 -37
- data/ext/segment_term_enum.c +0 -326
- data/ext/string_helper.c +0 -42
- data/ext/tags +0 -344
- data/ext/term_buffer.c +0 -230
- data/ext/term_infos_reader.c +0 -54
- data/ext/terminfo.c +0 -160
- data/ext/token.c +0 -93
- data/ext/util.c +0 -12
data/ext/segment_merge_queue.c
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
#include "ferret.h"
|
2
|
-
|
3
|
-
/****************************************************************************
|
4
|
-
*
|
5
|
-
* SegmentMergeQueue Methods
|
6
|
-
*
|
7
|
-
****************************************************************************/
|
8
|
-
|
9
|
-
static VALUE
|
10
|
-
frt_smq_less_than(VALUE self, VALUE rsti1, VALUE rsti2)
|
11
|
-
{
|
12
|
-
int base1, base2;
|
13
|
-
int cmp = frt_term_compare_to_int(rb_iv_get(rsti1, "@term_buffer"),
|
14
|
-
rb_iv_get(rsti2, "@term_buffer"));
|
15
|
-
if (cmp == 0) {
|
16
|
-
base1 = FIX2INT(rb_iv_get(rsti1, "@base"));
|
17
|
-
base2 = FIX2INT(rb_iv_get(rsti2, "@base"));
|
18
|
-
return base1 < base2 ? Qtrue : Qfalse;
|
19
|
-
} else {
|
20
|
-
return cmp < 0 ? Qtrue : Qfalse;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
/****************************************************************************
|
25
|
-
*
|
26
|
-
* Init Function
|
27
|
-
*
|
28
|
-
****************************************************************************/
|
29
|
-
|
30
|
-
void
|
31
|
-
Init_segment_merge_queue(void)
|
32
|
-
{
|
33
|
-
/* SegmentMergeQueue */
|
34
|
-
cSegmentMergeQueue = rb_define_class_under(mIndex, "SegmentMergeQueue", cPriorityQueue);
|
35
|
-
|
36
|
-
rb_define_method(cSegmentMergeQueue, "less_than", frt_smq_less_than, 2);
|
37
|
-
}
|
data/ext/segment_term_enum.c
DELETED
@@ -1,326 +0,0 @@
|
|
1
|
-
#include "ferret.h"
|
2
|
-
|
3
|
-
/****************************************************************************
|
4
|
-
*
|
5
|
-
* SegmentTermEnum Methods
|
6
|
-
*
|
7
|
-
****************************************************************************/
|
8
|
-
void
|
9
|
-
frt_ste_free(void *p)
|
10
|
-
{
|
11
|
-
SegmentTermEnum *ste = (SegmentTermEnum *)p;
|
12
|
-
free(ste->ti);
|
13
|
-
free(p);
|
14
|
-
}
|
15
|
-
void
|
16
|
-
frt_ste_mark(void *p)
|
17
|
-
{
|
18
|
-
SegmentTermEnum *ste = (SegmentTermEnum *)p;
|
19
|
-
rb_gc_mark(ste->input);
|
20
|
-
rb_gc_mark(ste->field_infos);
|
21
|
-
rb_gc_mark(ste->rtb_curr);
|
22
|
-
rb_gc_mark(ste->rtb_prev);
|
23
|
-
}
|
24
|
-
|
25
|
-
static VALUE
|
26
|
-
frt_ste_alloc(VALUE klass)
|
27
|
-
{
|
28
|
-
SegmentTermEnum *ste = ALLOC(SegmentTermEnum);
|
29
|
-
MEMZERO(ste, SegmentTermEnum, 1);
|
30
|
-
return Data_Wrap_Struct(klass, frt_ste_mark, frt_ste_free, ste);
|
31
|
-
}
|
32
|
-
|
33
|
-
#define GET_STE SegmentTermEnum *ste; Data_Get_Struct(self, SegmentTermEnum, ste)
|
34
|
-
static VALUE
|
35
|
-
frt_ste_init(VALUE self, VALUE input, VALUE field_infos, VALUE is_index)
|
36
|
-
{
|
37
|
-
int first_int;
|
38
|
-
VALUE rsize;
|
39
|
-
GET_STE;
|
40
|
-
ste->is_index = RTEST(is_index);
|
41
|
-
ste->input = input;
|
42
|
-
Data_Get_Struct(input, IndexBuffer, ste->buf);
|
43
|
-
ste->field_infos = field_infos;
|
44
|
-
ste->position = -1;
|
45
|
-
ste->rtb_curr = rb_class_new_instance(0, NULL, cTermBuffer);
|
46
|
-
Data_Get_Struct(ste->rtb_curr, Term, ste->tb_curr);
|
47
|
-
ste->rtb_prev = rb_class_new_instance(0, NULL, cTermBuffer);
|
48
|
-
Data_Get_Struct(ste->rtb_prev, Term, ste->tb_prev);
|
49
|
-
ste->ti = ALLOC(TermInfo);
|
50
|
-
MEMZERO(ste->ti, TermInfo, 1);
|
51
|
-
ste->index_pointer = 0;
|
52
|
-
|
53
|
-
first_int = FIX2INT(frt_indexin_read_int(input));
|
54
|
-
|
55
|
-
if (first_int >= 0) {
|
56
|
-
// original-format file, without explicit format version number
|
57
|
-
ste->format = 0;
|
58
|
-
ste->size = first_int;
|
59
|
-
|
60
|
-
// back-compatible settings
|
61
|
-
ste->index_interval = 128;
|
62
|
-
ste->skip_interval = 0x7FFFFFFF; // switch off skip_to optimization
|
63
|
-
|
64
|
-
} else {
|
65
|
-
// we have a format version number
|
66
|
-
ste->format = first_int;
|
67
|
-
rsize = frt_indexin_read_long(input);
|
68
|
-
ste->size = NUM2INT(rsize); // read the size
|
69
|
-
|
70
|
-
if (ste->format == -1) {
|
71
|
-
if (!ste->is_index) {
|
72
|
-
ste->index_interval = FIX2INT(frt_indexin_read_int(input));
|
73
|
-
ste->format_m1skip_interval = FIX2INT(frt_indexin_read_int(input));
|
74
|
-
}
|
75
|
-
// switch off skip_to optimization for file format prior to
|
76
|
-
// 1.4rc2 in order to avoid a bug in skip_to implementation
|
77
|
-
// of these versions
|
78
|
-
ste->skip_interval = 0x7FFFFFFF;
|
79
|
-
} else {
|
80
|
-
ste->index_interval = FIX2INT(frt_indexin_read_int(input));
|
81
|
-
ste->skip_interval = FIX2INT(frt_indexin_read_int(input));
|
82
|
-
}
|
83
|
-
}
|
84
|
-
return self;
|
85
|
-
}
|
86
|
-
|
87
|
-
static VALUE
|
88
|
-
frt_ste_init_copy(VALUE self, VALUE rother)
|
89
|
-
{
|
90
|
-
SegmentTermEnum *other;
|
91
|
-
GET_STE;
|
92
|
-
Data_Get_Struct(rother, SegmentTermEnum, other);
|
93
|
-
MEMCPY(ste, other, SegmentTermEnum, 1);
|
94
|
-
ste->rtb_curr = rb_obj_clone(other->rtb_curr);
|
95
|
-
Data_Get_Struct(ste->rtb_curr, Term, ste->tb_curr);
|
96
|
-
ste->rtb_prev = rb_obj_clone(other->rtb_prev);
|
97
|
-
Data_Get_Struct(ste->rtb_prev, Term, ste->tb_prev);
|
98
|
-
ste->input = rb_obj_clone(other->input);
|
99
|
-
Data_Get_Struct(ste->input, IndexBuffer, ste->buf);
|
100
|
-
ste->ti = ALLOC(TermInfo);
|
101
|
-
MEMCPY(ste->ti, other->ti, TermInfo, 1);
|
102
|
-
return self;
|
103
|
-
}
|
104
|
-
|
105
|
-
static VALUE
|
106
|
-
frt_ste_seek(VALUE self, VALUE pointer, VALUE position, VALUE term, VALUE term_info)
|
107
|
-
{
|
108
|
-
TermInfo *ti;
|
109
|
-
GET_STE;
|
110
|
-
|
111
|
-
frt_indexin_seek(ste->input, pointer);
|
112
|
-
|
113
|
-
ste->position = FIX2INT(position);
|
114
|
-
frt_termbuffer_init_copy(ste->rtb_curr, term);
|
115
|
-
free(ste->tb_prev->text);
|
116
|
-
MEMZERO(ste->tb_prev, Term, 1);
|
117
|
-
ste->tb_prev->field = Qnil;
|
118
|
-
|
119
|
-
Data_Get_Struct(term_info, TermInfo, ti);
|
120
|
-
MEMCPY(ste->ti, ti, TermInfo, 1);
|
121
|
-
return Qnil;
|
122
|
-
}
|
123
|
-
|
124
|
-
static VALUE
|
125
|
-
frt_ste_next(VALUE self)
|
126
|
-
{
|
127
|
-
IndexBuffer *zzbuf;
|
128
|
-
TermInfo *ti;
|
129
|
-
GET_STE;
|
130
|
-
ste->position++;
|
131
|
-
|
132
|
-
Data_Get_Struct(ste->input, IndexBuffer, zzbuf);
|
133
|
-
|
134
|
-
if (ste->position >= ste->size) {
|
135
|
-
free(ste->tb_curr->text);
|
136
|
-
MEMZERO(ste->tb_curr, Term, 1);
|
137
|
-
ste->tb_curr->field = Qnil;
|
138
|
-
return Qnil;
|
139
|
-
}
|
140
|
-
|
141
|
-
frt_termbuffer_init_copy(ste->rtb_prev, ste->rtb_curr);
|
142
|
-
frt_termbuffer_read(ste->rtb_curr, ste->input, ste->field_infos);
|
143
|
-
|
144
|
-
ti = ste->ti;
|
145
|
-
ti->doc_freq = frt_read_vint(ste->input, zzbuf); // read doc freq
|
146
|
-
ti->freq_pointer += frt_read_vint(ste->input, zzbuf); // read freq pointer
|
147
|
-
ti->prox_pointer += frt_read_vint(ste->input, zzbuf); // read prox pointer
|
148
|
-
|
149
|
-
|
150
|
-
if (ste->format == -1) {
|
151
|
-
// just read skip_offset in order to increment file pointer
|
152
|
-
// value is never used since skip_to is switched off
|
153
|
-
if (!ste->is_index) {
|
154
|
-
if (ti->doc_freq > ste->format_m1skip_interval)
|
155
|
-
ti->skip_offset = frt_read_vint(ste->input, zzbuf);
|
156
|
-
}
|
157
|
-
} else {
|
158
|
-
if (ti->doc_freq >= ste->skip_interval)
|
159
|
-
ti->skip_offset = frt_read_vint(ste->input, zzbuf);
|
160
|
-
}
|
161
|
-
|
162
|
-
if (ste->is_index) {
|
163
|
-
ste->index_pointer += frt_read_vint(ste->input, zzbuf); // read index pointer
|
164
|
-
}
|
165
|
-
|
166
|
-
return Qtrue;
|
167
|
-
}
|
168
|
-
|
169
|
-
static VALUE
|
170
|
-
frt_ste_scan_to(VALUE self, VALUE rterm)
|
171
|
-
{
|
172
|
-
Term *term;
|
173
|
-
GET_STE;
|
174
|
-
Data_Get_Struct(rterm, Term, term);
|
175
|
-
while (frt_term_cmp(term, ste->tb_curr) > 0 && frt_ste_next(self) == Qtrue)
|
176
|
-
;
|
177
|
-
return Qnil;
|
178
|
-
}
|
179
|
-
|
180
|
-
static VALUE
|
181
|
-
frt_ste_get_term(VALUE self)
|
182
|
-
{
|
183
|
-
GET_STE;
|
184
|
-
return frt_termbuffer_to_term(ste->rtb_curr);
|
185
|
-
}
|
186
|
-
|
187
|
-
static VALUE
|
188
|
-
frt_ste_get_term_buffer(VALUE self)
|
189
|
-
{
|
190
|
-
GET_STE;
|
191
|
-
return ste->rtb_curr;
|
192
|
-
}
|
193
|
-
|
194
|
-
static VALUE
|
195
|
-
frt_ste_get_prev(VALUE self)
|
196
|
-
{
|
197
|
-
GET_STE;
|
198
|
-
return frt_termbuffer_to_term(ste->rtb_prev);
|
199
|
-
}
|
200
|
-
|
201
|
-
static VALUE
|
202
|
-
frt_ste_get_term_info(VALUE self)
|
203
|
-
{
|
204
|
-
VALUE rti;
|
205
|
-
TermInfo *ti;
|
206
|
-
GET_STE;
|
207
|
-
rti = rb_obj_alloc(cTermInfo);
|
208
|
-
Data_Get_Struct(rti, TermInfo, ti);
|
209
|
-
MEMCPY(ti, ste->ti, TermInfo, 1);
|
210
|
-
return rti;
|
211
|
-
}
|
212
|
-
|
213
|
-
static VALUE
|
214
|
-
frt_ste_set_term_info(VALUE self, VALUE rti)
|
215
|
-
{
|
216
|
-
TermInfo *ti;
|
217
|
-
GET_STE;
|
218
|
-
Data_Get_Struct(rti, TermInfo, ti);
|
219
|
-
MEMCPY(ste->ti, ti, TermInfo, 1);
|
220
|
-
return Qnil;
|
221
|
-
}
|
222
|
-
|
223
|
-
static VALUE
|
224
|
-
frt_ste_get_doc_freq(VALUE self)
|
225
|
-
{
|
226
|
-
GET_STE;
|
227
|
-
return INT2FIX(ste->ti->doc_freq);
|
228
|
-
}
|
229
|
-
|
230
|
-
static VALUE
|
231
|
-
frt_ste_get_freq_pointer(VALUE self)
|
232
|
-
{
|
233
|
-
GET_STE;
|
234
|
-
return INT2FIX(ste->ti->freq_pointer);
|
235
|
-
}
|
236
|
-
|
237
|
-
static VALUE
|
238
|
-
frt_ste_get_prox_pointer(VALUE self)
|
239
|
-
{
|
240
|
-
GET_STE;
|
241
|
-
return INT2FIX(ste->ti->prox_pointer);
|
242
|
-
}
|
243
|
-
|
244
|
-
static VALUE
|
245
|
-
frt_ste_close(VALUE self)
|
246
|
-
{
|
247
|
-
GET_STE;
|
248
|
-
return rb_funcall(ste->input, id_close, 0);
|
249
|
-
}
|
250
|
-
|
251
|
-
static VALUE
|
252
|
-
frt_ste_get_field_infos(VALUE self)
|
253
|
-
{
|
254
|
-
GET_STE;
|
255
|
-
return ste->field_infos;
|
256
|
-
}
|
257
|
-
|
258
|
-
static VALUE
|
259
|
-
frt_ste_get_size(VALUE self)
|
260
|
-
{
|
261
|
-
GET_STE;
|
262
|
-
return INT2FIX(ste->size);
|
263
|
-
}
|
264
|
-
|
265
|
-
static VALUE
|
266
|
-
frt_ste_get_position(VALUE self)
|
267
|
-
{
|
268
|
-
GET_STE;
|
269
|
-
return INT2FIX(ste->position);
|
270
|
-
}
|
271
|
-
|
272
|
-
static VALUE
|
273
|
-
frt_ste_get_index_pointer(VALUE self)
|
274
|
-
{
|
275
|
-
GET_STE;
|
276
|
-
return INT2FIX(ste->index_pointer);
|
277
|
-
}
|
278
|
-
|
279
|
-
static VALUE
|
280
|
-
frt_ste_get_index_interval(VALUE self)
|
281
|
-
{
|
282
|
-
GET_STE;
|
283
|
-
return INT2FIX(ste->index_interval);
|
284
|
-
}
|
285
|
-
|
286
|
-
static VALUE
|
287
|
-
frt_ste_get_skip_interval(VALUE self)
|
288
|
-
{
|
289
|
-
GET_STE;
|
290
|
-
return INT2FIX(ste->skip_interval);
|
291
|
-
}
|
292
|
-
|
293
|
-
/****************************************************************************
|
294
|
-
*
|
295
|
-
* Init Function
|
296
|
-
*
|
297
|
-
****************************************************************************/
|
298
|
-
|
299
|
-
void
|
300
|
-
Init_segment_term_enum(void)
|
301
|
-
{
|
302
|
-
/* SegmentTermEnum */
|
303
|
-
cSegmentTermEnum = rb_define_class_under(mIndex, "SegmentTermEnum", cTermEnum);
|
304
|
-
rb_define_alloc_func(cSegmentTermEnum, frt_ste_alloc);
|
305
|
-
|
306
|
-
rb_define_method(cSegmentTermEnum, "initialize", frt_ste_init, 3);
|
307
|
-
rb_define_method(cSegmentTermEnum, "initialize_copy", frt_ste_init_copy, 1);
|
308
|
-
rb_define_method(cSegmentTermEnum, "next?", frt_ste_next, 0);
|
309
|
-
rb_define_method(cSegmentTermEnum, "seek", frt_ste_seek, 4);
|
310
|
-
rb_define_method(cSegmentTermEnum, "scan_to", frt_ste_scan_to, 1);
|
311
|
-
rb_define_method(cSegmentTermEnum, "term", frt_ste_get_term, 0);
|
312
|
-
rb_define_method(cSegmentTermEnum, "term_buffer", frt_ste_get_term_buffer, 0);
|
313
|
-
rb_define_method(cSegmentTermEnum, "prev", frt_ste_get_prev, 0);
|
314
|
-
rb_define_method(cSegmentTermEnum, "term_info", frt_ste_get_term_info, 0);
|
315
|
-
rb_define_method(cSegmentTermEnum, "term_info=", frt_ste_set_term_info, 1);
|
316
|
-
rb_define_method(cSegmentTermEnum, "doc_freq", frt_ste_get_doc_freq, 0);
|
317
|
-
rb_define_method(cSegmentTermEnum, "freq_pointer", frt_ste_get_freq_pointer, 0);
|
318
|
-
rb_define_method(cSegmentTermEnum, "prox_pointer", frt_ste_get_prox_pointer, 0);
|
319
|
-
rb_define_method(cSegmentTermEnum, "close", frt_ste_close, 0);
|
320
|
-
rb_define_method(cSegmentTermEnum, "field_infos", frt_ste_get_field_infos, 0);
|
321
|
-
rb_define_method(cSegmentTermEnum, "size", frt_ste_get_size, 0);
|
322
|
-
rb_define_method(cSegmentTermEnum, "position", frt_ste_get_position, 0);
|
323
|
-
rb_define_method(cSegmentTermEnum, "index_pointer", frt_ste_get_index_pointer, 0);
|
324
|
-
rb_define_method(cSegmentTermEnum, "index_interval", frt_ste_get_index_interval, 0);
|
325
|
-
rb_define_method(cSegmentTermEnum, "skip_interval", frt_ste_get_skip_interval, 0);
|
326
|
-
}
|
data/ext/string_helper.c
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
#include "ferret.h"
|
2
|
-
|
3
|
-
/****************************************************************************
|
4
|
-
*
|
5
|
-
* StringHelper Methods
|
6
|
-
*
|
7
|
-
****************************************************************************/
|
8
|
-
inline int
|
9
|
-
frt_sh_string_difference_int(VALUE self, VALUE rstr1, VALUE rstr2)
|
10
|
-
{
|
11
|
-
int i;
|
12
|
-
struct RString *str1 = RSTRING(rstr1), *str2 = RSTRING(rstr2);
|
13
|
-
char *s1 = str1->ptr, *s2 = str2->ptr;
|
14
|
-
int len = str1->len < str2->len ? str1->len : str2->len;
|
15
|
-
for (i = 0; i < len; i++) {
|
16
|
-
if (s1[i] != s2[i])
|
17
|
-
return i;
|
18
|
-
}
|
19
|
-
return len;
|
20
|
-
}
|
21
|
-
|
22
|
-
static VALUE
|
23
|
-
frt_sh_string_difference(VALUE self, VALUE rstr1, VALUE rstr2)
|
24
|
-
{
|
25
|
-
return INT2FIX(frt_sh_string_difference_int(self, rstr1, rstr2));
|
26
|
-
}
|
27
|
-
|
28
|
-
|
29
|
-
/****************************************************************************
|
30
|
-
*
|
31
|
-
* Init Function
|
32
|
-
*
|
33
|
-
****************************************************************************/
|
34
|
-
|
35
|
-
void
|
36
|
-
Init_string_helper(void)
|
37
|
-
{
|
38
|
-
/* StringHelper */
|
39
|
-
mStringHelper = rb_define_module_under(mUtils, "StringHelper");
|
40
|
-
|
41
|
-
rb_define_method(mStringHelper, "string_difference", frt_sh_string_difference, 2);
|
42
|
-
}
|
data/ext/tags
DELETED
@@ -1,344 +0,0 @@
|
|
1
|
-
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
|
2
|
-
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
|
3
|
-
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
|
4
|
-
!_TAG_PROGRAM_NAME Exuberant Ctags //
|
5
|
-
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
|
6
|
-
!_TAG_PROGRAM_VERSION 5.5.4 //
|
7
|
-
AR Makefile /^AR = ar$/;" m
|
8
|
-
BUFFER_SIZE ferret.h 6;" d
|
9
|
-
CC Makefile /^CC = gcc$/;" m
|
10
|
-
CFLAGS Makefile /^CFLAGS = -fPIC -Wall -g -O2 -fPIC $/;" m
|
11
|
-
CLEANFILES Makefile /^CLEANFILES = $/;" m
|
12
|
-
CLEANLIBS Makefile /^CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map$/;" m
|
13
|
-
CLEANOBJS Makefile /^CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak$/;" m
|
14
|
-
COPY Makefile /^COPY = cp$/;" m
|
15
|
-
CPPFLAGS Makefile /^CPPFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) $/;" m
|
16
|
-
CXXFLAGS Makefile /^CXXFLAGS = $(CFLAGS) $/;" m
|
17
|
-
DEFFILE Makefile /^DEFFILE = $/;" m
|
18
|
-
DISTCLEANFILES Makefile /^DISTCLEANFILES = $/;" m
|
19
|
-
DLDFLAGS Makefile /^DLDFLAGS = $/;" m
|
20
|
-
DLLIB Makefile /^DLLIB = $(TARGET).so$/;" m
|
21
|
-
EXEEXT Makefile /^EXEEXT = $/;" m
|
22
|
-
GET_MY_BUF index_io.c 31;" d file:
|
23
|
-
GET_STE segment_term_enum.c 33;" d file:
|
24
|
-
GET_TB term_buffer.c 43;" d file:
|
25
|
-
GET_TERM term.c 34;" d file:
|
26
|
-
GET_TI terminfo.c 24;" d file:
|
27
|
-
INSTALL Makefile /^INSTALL = \/usr\/bin\/install -c$/;" m
|
28
|
-
INSTALL_DATA Makefile /^INSTALL_DATA = $(INSTALL) -m 644$/;" m
|
29
|
-
INSTALL_PROG Makefile /^INSTALL_PROG = $(INSTALL) -m 0755$/;" m
|
30
|
-
IndexBuffer ferret.h /^typedef struct IndexBuffer {$/;" s
|
31
|
-
IndexBuffer ferret.h /^} IndexBuffer;$/;" t
|
32
|
-
Init_ferret_ext ferret.c /^Init_ferret_ext(void)$/;" f
|
33
|
-
Init_indexio index_io.c /^Init_indexio(void)$/;" f
|
34
|
-
Init_priority_queue priority_queue.c /^Init_priority_queue(void)$/;" f
|
35
|
-
Init_ram_directory ram_directory.c /^Init_ram_directory(void)$/;" f
|
36
|
-
Init_segment_merge_queue segment_merge_queue.c /^Init_segment_merge_queue(void)$/;" f
|
37
|
-
Init_segment_term_enum segment_term_enum.c /^Init_segment_term_enum(void)$/;" f
|
38
|
-
Init_similarity similarity.c /^Init_similarity(void)$/;" f
|
39
|
-
Init_string_helper string_helper.c /^Init_string_helper(void)$/;" f
|
40
|
-
Init_term term.c /^Init_term(void)$/;" f
|
41
|
-
Init_term_buffer term_buffer.c /^Init_term_buffer(void) {$/;" f
|
42
|
-
Init_term_info terminfo.c /^Init_term_info(void)$/;" f
|
43
|
-
Init_term_infos_reader term_infos_reader.c /^Init_term_infos_reader(void)$/;" f
|
44
|
-
Init_token token.c /^Init_token(void)$/;" f
|
45
|
-
LDSHARED Makefile /^LDSHARED = $(CC) -shared$/;" m
|
46
|
-
LIBPATH Makefile /^LIBPATH = -L"$(libdir)"$/;" m
|
47
|
-
LIBRUBY Makefile /^LIBRUBY = $(LIBRUBY_SO)$/;" m
|
48
|
-
LIBRUBYARG_SHARED Makefile /^LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)$/;" m
|
49
|
-
LIBRUBYARG_STATIC Makefile /^LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static$/;" m
|
50
|
-
LIBRUBY_A Makefile /^LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a$/;" m
|
51
|
-
LIBS Makefile /^LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl -lcrypt -lm -lc$/;" m
|
52
|
-
LOCAL_LIBS Makefile /^LOCAL_LIBS = $/;" m
|
53
|
-
MAKEDIRS Makefile /^MAKEDIRS = mkdir -p$/;" m
|
54
|
-
OBJS Makefile /^OBJS = index_io.o term_buffer.o ram_directory.o priority_queue.o string_helper.o segment_merge_queue.o ferret.o term.o util.o token.o segment_term_enum.o terminfo.o term_infos_reader.o similarity.o$/;" m
|
55
|
-
PriorityQueue ferret.h /^typedef struct PriorityQueue {$/;" s
|
56
|
-
PriorityQueue ferret.h /^} PriorityQueue;$/;" t
|
57
|
-
RAMFile ferret.h /^typedef struct RAMFile {$/;" s
|
58
|
-
RAMFile ferret.h /^} RAMFile;$/;" t
|
59
|
-
RM Makefile /^RM = rm -f$/;" m
|
60
|
-
RUBY Makefile /^RUBY = $(ruby)$/;" m
|
61
|
-
RUBYARCHDIR Makefile /^RUBYARCHDIR = $(sitearchdir)$(target_prefix)$/;" m
|
62
|
-
RUBYCOMMONDIR Makefile /^RUBYCOMMONDIR = $(sitedir)$(target_prefix)$/;" m
|
63
|
-
RUBYLIBDIR Makefile /^RUBYLIBDIR = $(sitelibdir)$(target_prefix)$/;" m
|
64
|
-
RUBY_INSTALL_NAME Makefile /^RUBY_INSTALL_NAME = ruby1.8$/;" m
|
65
|
-
RUBY_SO_NAME Makefile /^RUBY_SO_NAME = ruby1.8$/;" m
|
66
|
-
SHELL Makefile /^SHELL = \/bin\/sh$/;" m
|
67
|
-
SRCS Makefile /^SRCS = index_io.c term_buffer.c ram_directory.c priority_queue.c string_helper.c segment_merge_queue.c ferret.c term.c util.c token.c segment_term_enum.c terminfo.c term_infos_reader.c similarity.c$/;" m
|
68
|
-
STATIC_LIB Makefile /^STATIC_LIB = $/;" m
|
69
|
-
SegmentTermEnum ferret.h /^typedef struct SegmentTermEnum {$/;" s
|
70
|
-
SegmentTermEnum ferret.h /^} SegmentTermEnum;$/;" t
|
71
|
-
TARGET Makefile /^TARGET = ferret_ext$/;" m
|
72
|
-
TARGET_SO Makefile /^TARGET_SO = $(DLLIB)$/;" m
|
73
|
-
Term ferret.h /^typedef struct Term {$/;" s
|
74
|
-
Term ferret.h /^} Term;$/;" t
|
75
|
-
TermInfo ferret.h /^typedef struct TermInfo {$/;" s
|
76
|
-
TermInfo ferret.h /^} TermInfo;$/;" t
|
77
|
-
VPATH Makefile /^VPATH = $(srcdir):$(topdir):$(hdrdir)$/;" m
|
78
|
-
__FERRET_H_ ferret.h 2;" d
|
79
|
-
arch Makefile /^arch = i486-linux$/;" m
|
80
|
-
archdir Makefile /^archdir = $(rubylibdir)\/$(arch)$/;" m
|
81
|
-
bindir Makefile /^bindir = $(exec_prefix)\/bin$/;" m
|
82
|
-
buf ferret.h /^ IndexBuffer *buf;$/;" m struct:SegmentTermEnum
|
83
|
-
bufcnt ferret.h /^ int bufcnt;$/;" m struct:RAMFile
|
84
|
-
buffer ferret.h /^ byte_t *buffer;$/;" m struct:IndexBuffer
|
85
|
-
buffers ferret.h /^ void **buffers;$/;" m struct:RAMFile
|
86
|
-
byte_t ferret.h /^typedef unsigned char byte_t;$/;" t
|
87
|
-
cBufferedIndexIn ferret.c /^VALUE cBufferedIndexIn;$/;" v
|
88
|
-
cBufferedIndexOut ferret.c /^VALUE cBufferedIndexOut;$/;" v
|
89
|
-
cDefaultSimilarity ferret.c /^VALUE cDefaultSimilarity;$/;" v
|
90
|
-
cFSIndexIn ferret.c /^VALUE cFSIndexIn;$/;" v
|
91
|
-
cFSIndexOut ferret.c /^VALUE cFSIndexOut;$/;" v
|
92
|
-
cIndexIn ferret.c /^VALUE cIndexIn;$/;" v
|
93
|
-
cIndexOut ferret.c /^VALUE cIndexOut;$/;" v
|
94
|
-
cPriorityQueue ferret.c /^VALUE cPriorityQueue;$/;" v
|
95
|
-
cRAMDirectory ferret.c /^VALUE cRAMDirectory;$/;" v
|
96
|
-
cRAMIndexIn ferret.c /^VALUE cRAMIndexIn;$/;" v
|
97
|
-
cRAMIndexOut ferret.c /^VALUE cRAMIndexOut;$/;" v
|
98
|
-
cSegmentMergeQueue ferret.c /^VALUE cSegmentMergeQueue;$/;" v
|
99
|
-
cSegmentTermEnum ferret.c /^VALUE cSegmentTermEnum;$/;" v
|
100
|
-
cSimilarity ferret.c /^VALUE cSimilarity;$/;" v
|
101
|
-
cTerm ferret.c /^VALUE cTerm;$/;" v
|
102
|
-
cTermBuffer ferret.c /^VALUE cTermBuffer;$/;" v
|
103
|
-
cTermEnum ferret.c /^VALUE cTermEnum;$/;" v
|
104
|
-
cTermInfo ferret.c /^VALUE cTermInfo;$/;" v
|
105
|
-
cTermInfosReader ferret.c /^VALUE cTermInfosReader;$/;" v
|
106
|
-
cToken ferret.c /^VALUE cToken;$/;" v
|
107
|
-
datadir Makefile /^datadir = $(prefix)\/share$/;" m
|
108
|
-
doc_freq ferret.h /^ int doc_freq;$/;" m struct:TermInfo
|
109
|
-
exec_prefix Makefile /^exec_prefix = $(prefix)$/;" m
|
110
|
-
extout Makefile /^extout = $/;" m
|
111
|
-
extout_prefix Makefile /^extout_prefix = $/;" m
|
112
|
-
field ferret.h /^ VALUE field;$/;" m struct:Term
|
113
|
-
field_infos ferret.h /^ VALUE field_infos;$/;" m struct:SegmentTermEnum
|
114
|
-
flush ram_directory.c /^ID flush, seek, id_file, id_pointer;$/;" v
|
115
|
-
format ferret.h /^ int format;$/;" m struct:SegmentTermEnum
|
116
|
-
format_m1skip_interval ferret.h /^ int format_m1skip_interval;$/;" m struct:SegmentTermEnum
|
117
|
-
freq_pointer ferret.h /^ long freq_pointer;$/;" m struct:TermInfo
|
118
|
-
frt_dsim_idf similarity.c /^frt_dsim_idf(VALUE self, VALUE rdoc_freq, VALUE rnum_docs)$/;" f file:
|
119
|
-
frt_dsim_tf similarity.c /^frt_dsim_tf(VALUE self, VALUE freq)$/;" f file:
|
120
|
-
frt_extend_buffer_if_necessary ram_directory.c /^frt_extend_buffer_if_necessary(RAMFile *rf, int bufnum)$/;" f
|
121
|
-
frt_flush_buffer index_io.c /^ID frt_length, frt_flush_buffer, frt_read_internal, frt_seek_internal; $/;" v
|
122
|
-
frt_hash util.c /^frt_hash(register char *p, register int len)$/;" f
|
123
|
-
frt_id_index_terms term_infos_reader.c /^static ID frt_id_index_terms;$/;" v file:
|
124
|
-
frt_indexbuffer_alloc index_io.c /^frt_indexbuffer_alloc(VALUE klass)$/;" f file:
|
125
|
-
frt_indexbuffer_free index_io.c /^frt_indexbuffer_free(void *p)$/;" f
|
126
|
-
frt_indexin_init_copy index_io.c /^frt_indexin_init_copy(VALUE self, VALUE orig)$/;" f file:
|
127
|
-
frt_indexin_pos index_io.c /^frt_indexin_pos(VALUE self)$/;" f file:
|
128
|
-
frt_indexin_read_byte index_io.c /^frt_indexin_read_byte(VALUE self)$/;" f file:
|
129
|
-
frt_indexin_read_bytes index_io.c /^frt_indexin_read_bytes(VALUE self, VALUE rbuf, VALUE roffset, VALUE rlen)$/;" f file:
|
130
|
-
frt_indexin_read_int index_io.c /^frt_indexin_read_int(VALUE self)$/;" f
|
131
|
-
frt_indexin_read_long index_io.c /^frt_indexin_read_long(VALUE self)$/;" f
|
132
|
-
frt_indexin_read_string index_io.c /^frt_indexin_read_string(VALUE self)$/;" f file:
|
133
|
-
frt_indexin_read_uint index_io.c /^frt_indexin_read_uint(VALUE self)$/;" f file:
|
134
|
-
frt_indexin_read_ulong index_io.c /^frt_indexin_read_ulong(VALUE self)$/;" f file:
|
135
|
-
frt_indexin_read_vint index_io.c /^frt_indexin_read_vint(VALUE self)$/;" f file:
|
136
|
-
frt_indexin_refill index_io.c /^frt_indexin_refill(VALUE self)$/;" f file:
|
137
|
-
frt_indexin_seek index_io.c /^frt_indexin_seek(VALUE self, VALUE rpos)$/;" f
|
138
|
-
frt_indexout_flush index_io.c /^frt_indexout_flush(VALUE self)$/;" f file:
|
139
|
-
frt_indexout_pos index_io.c /^frt_indexout_pos(VALUE self)$/;" f file:
|
140
|
-
frt_indexout_seek index_io.c /^frt_indexout_seek(VALUE self, VALUE pos)$/;" f file:
|
141
|
-
frt_indexout_write_byte index_io.c /^frt_indexout_write_byte(VALUE self, VALUE rbyte)$/;" f file:
|
142
|
-
frt_indexout_write_bytes index_io.c /^frt_indexout_write_bytes(VALUE self, VALUE rbuffer, VALUE rlen)$/;" f file:
|
143
|
-
frt_indexout_write_chars index_io.c /^frt_indexout_write_chars(VALUE self, VALUE rstr, VALUE rstart, VALUE rlength)$/;" f file:
|
144
|
-
frt_indexout_write_int index_io.c /^frt_indexout_write_int(VALUE self, VALUE rint)$/;" f file:
|
145
|
-
frt_indexout_write_long index_io.c /^frt_indexout_write_long(VALUE self, VALUE rlong)$/;" f file:
|
146
|
-
frt_indexout_write_string index_io.c /^frt_indexout_write_string(VALUE self, VALUE rstr)$/;" f file:
|
147
|
-
frt_indexout_write_uint index_io.c /^frt_indexout_write_uint(VALUE self, VALUE ruint)$/;" f file:
|
148
|
-
frt_indexout_write_ulong index_io.c /^frt_indexout_write_ulong(VALUE self, VALUE rulong)$/;" f file:
|
149
|
-
frt_indexout_write_vint index_io.c /^frt_indexout_write_vint(VALUE self, VALUE rulong)$/;" f file:
|
150
|
-
frt_length index_io.c /^ID frt_length, frt_flush_buffer, frt_read_internal, frt_seek_internal; $/;" v
|
151
|
-
frt_priq_adjust_top priority_queue.c /^frt_priq_adjust_top(VALUE self)$/;" f file:
|
152
|
-
frt_priq_alloc priority_queue.c /^frt_priq_alloc(VALUE klass)$/;" f file:
|
153
|
-
frt_priq_clear priority_queue.c /^frt_priq_clear(VALUE self)$/;" f file:
|
154
|
-
frt_priq_free priority_queue.c /^frt_priq_free(void *p)$/;" f
|
155
|
-
frt_priq_init priority_queue.c /^frt_priq_init(VALUE self, VALUE rsize)$/;" f file:
|
156
|
-
frt_priq_insert priority_queue.c /^frt_priq_insert(VALUE self, VALUE e)$/;" f file:
|
157
|
-
frt_priq_pop priority_queue.c /^frt_priq_pop(VALUE self)$/;" f file:
|
158
|
-
frt_priq_push priority_queue.c /^frt_priq_push(VALUE self, VALUE e)$/;" f file:
|
159
|
-
frt_priq_size priority_queue.c /^frt_priq_size(VALUE self)$/;" f file:
|
160
|
-
frt_priq_top priority_queue.c /^frt_priq_top(VALUE self)$/;" f file:
|
161
|
-
frt_read_byte index_io.c /^frt_read_byte(VALUE self, IndexBuffer *my_buf)$/;" f file:
|
162
|
-
frt_read_bytes index_io.c /^frt_read_bytes(VALUE self, VALUE rbuffer, int offset, int len)$/;" f file:
|
163
|
-
frt_read_chars index_io.c /^frt_read_chars(VALUE self, char* buffer, int off, int len) $/;" f
|
164
|
-
frt_read_internal index_io.c /^ID frt_length, frt_flush_buffer, frt_read_internal, frt_seek_internal; $/;" v
|
165
|
-
frt_read_vint index_io.c /^frt_read_vint(VALUE self, IndexBuffer *my_buf)$/;" f
|
166
|
-
frt_rf_alloc ram_directory.c /^frt_rf_alloc(VALUE klass)$/;" f file:
|
167
|
-
frt_rf_extend ram_directory.c /^frt_rf_extend(RAMFile *rf)$/;" f
|
168
|
-
frt_rf_free ram_directory.c /^frt_rf_free(void *p)$/;" f
|
169
|
-
frt_rf_length ram_directory.c /^frt_rf_length(VALUE self)$/;" f file:
|
170
|
-
frt_rf_mark ram_directory.c /^frt_rf_mark(void *p)$/;" f
|
171
|
-
frt_rii_close ram_directory.c /^frt_rii_close(VALUE self)$/;" f file:
|
172
|
-
frt_rii_init ram_directory.c /^frt_rii_init(VALUE self, VALUE ramfile)$/;" f file:
|
173
|
-
frt_rii_length ram_directory.c /^frt_rii_length(VALUE self)$/;" f file:
|
174
|
-
frt_rii_read_internal ram_directory.c /^frt_rii_read_internal(VALUE self, VALUE rb, VALUE roffset, VALUE rlen)$/;" f file:
|
175
|
-
frt_rii_seek_internal ram_directory.c /^frt_rii_seek_internal(VALUE self, VALUE rpos)$/;" f file:
|
176
|
-
frt_rio_close ram_directory.c /^frt_rio_close(VALUE self)$/;" f file:
|
177
|
-
frt_rio_flush_buffer ram_directory.c /^frt_rio_flush_buffer(VALUE self, VALUE rsrc, VALUE rlen)$/;" f file:
|
178
|
-
frt_rio_init ram_directory.c /^frt_rio_init(VALUE self, VALUE ramfile)$/;" f file:
|
179
|
-
frt_rio_length ram_directory.c /^frt_rio_length(VALUE self)$/;" f file:
|
180
|
-
frt_rio_reset ram_directory.c /^frt_rio_reset(VALUE self)$/;" f file:
|
181
|
-
frt_rio_seek ram_directory.c /^frt_rio_seek(VALUE self, VALUE rpos)$/;" f file:
|
182
|
-
frt_rio_write_to ram_directory.c /^frt_rio_write_to(VALUE self, VALUE routput)$/;" f file:
|
183
|
-
frt_seek_internal index_io.c /^ID frt_length, frt_flush_buffer, frt_read_internal, frt_seek_internal; $/;" v
|
184
|
-
frt_sh_string_difference string_helper.c /^frt_sh_string_difference(VALUE self, VALUE rstr1, VALUE rstr2)$/;" f file:
|
185
|
-
frt_sh_string_difference_int string_helper.c /^frt_sh_string_difference_int(VALUE self, VALUE rstr1, VALUE rstr2)$/;" f
|
186
|
-
frt_smq_less_than segment_merge_queue.c /^frt_smq_less_than(VALUE self, VALUE rsti1, VALUE rsti2)$/;" f file:
|
187
|
-
frt_ste_alloc segment_term_enum.c /^frt_ste_alloc(VALUE klass)$/;" f file:
|
188
|
-
frt_ste_close segment_term_enum.c /^frt_ste_close(VALUE self)$/;" f file:
|
189
|
-
frt_ste_free segment_term_enum.c /^frt_ste_free(void *p)$/;" f
|
190
|
-
frt_ste_get_doc_freq segment_term_enum.c /^frt_ste_get_doc_freq(VALUE self)$/;" f file:
|
191
|
-
frt_ste_get_field_infos segment_term_enum.c /^frt_ste_get_field_infos(VALUE self)$/;" f file:
|
192
|
-
frt_ste_get_freq_pointer segment_term_enum.c /^frt_ste_get_freq_pointer(VALUE self)$/;" f file:
|
193
|
-
frt_ste_get_index_interval segment_term_enum.c /^frt_ste_get_index_interval(VALUE self)$/;" f file:
|
194
|
-
frt_ste_get_index_pointer segment_term_enum.c /^frt_ste_get_index_pointer(VALUE self)$/;" f file:
|
195
|
-
frt_ste_get_position segment_term_enum.c /^frt_ste_get_position(VALUE self)$/;" f file:
|
196
|
-
frt_ste_get_prev segment_term_enum.c /^frt_ste_get_prev(VALUE self)$/;" f file:
|
197
|
-
frt_ste_get_prox_pointer segment_term_enum.c /^frt_ste_get_prox_pointer(VALUE self)$/;" f file:
|
198
|
-
frt_ste_get_size segment_term_enum.c /^frt_ste_get_size(VALUE self)$/;" f file:
|
199
|
-
frt_ste_get_skip_interval segment_term_enum.c /^frt_ste_get_skip_interval(VALUE self)$/;" f file:
|
200
|
-
frt_ste_get_term segment_term_enum.c /^frt_ste_get_term(VALUE self)$/;" f file:
|
201
|
-
frt_ste_get_term_buffer segment_term_enum.c /^frt_ste_get_term_buffer(VALUE self)$/;" f file:
|
202
|
-
frt_ste_get_term_info segment_term_enum.c /^frt_ste_get_term_info(VALUE self)$/;" f file:
|
203
|
-
frt_ste_init segment_term_enum.c /^frt_ste_init(VALUE self, VALUE input, VALUE field_infos, VALUE is_index)$/;" f file:
|
204
|
-
frt_ste_init_copy segment_term_enum.c /^frt_ste_init_copy(VALUE self, VALUE rother)$/;" f file:
|
205
|
-
frt_ste_mark segment_term_enum.c /^frt_ste_mark(void *p)$/;" f
|
206
|
-
frt_ste_next segment_term_enum.c /^frt_ste_next(VALUE self)$/;" f file:
|
207
|
-
frt_ste_scan_to segment_term_enum.c /^frt_ste_scan_to(VALUE self, VALUE rterm)$/;" f file:
|
208
|
-
frt_ste_seek segment_term_enum.c /^frt_ste_seek(VALUE self, VALUE pointer, VALUE position, VALUE term, VALUE term_info)$/;" f file:
|
209
|
-
frt_ste_set_term_info segment_term_enum.c /^frt_ste_set_term_info(VALUE self, VALUE rti)$/;" f file:
|
210
|
-
frt_term_alloc term.c /^frt_term_alloc(VALUE klass)$/;" f file:
|
211
|
-
frt_term_cmp term.c /^frt_term_cmp(Term *t1, Term *t2)$/;" f
|
212
|
-
frt_term_compare_to term.c /^frt_term_compare_to(VALUE self, VALUE other)$/;" f file:
|
213
|
-
frt_term_compare_to_int term.c /^frt_term_compare_to_int(VALUE self, VALUE rother)$/;" f
|
214
|
-
frt_term_eq term.c /^frt_term_eq(VALUE self, VALUE rother)$/;" f
|
215
|
-
frt_term_free term.c /^frt_term_free(void *p)$/;" f
|
216
|
-
frt_term_ge term.c /^frt_term_ge(VALUE self, VALUE rother)$/;" f
|
217
|
-
frt_term_get_field term.c /^frt_term_get_field(VALUE self)$/;" f file:
|
218
|
-
frt_term_get_text term.c /^frt_term_get_text(VALUE self)$/;" f file:
|
219
|
-
frt_term_gt term.c /^frt_term_gt(VALUE self, VALUE rother)$/;" f
|
220
|
-
frt_term_hash term.c /^frt_term_hash(VALUE self)$/;" f file:
|
221
|
-
frt_term_init term.c /^frt_term_init(VALUE self, VALUE rfield, VALUE rtext)$/;" f file:
|
222
|
-
frt_term_le term.c /^frt_term_le(VALUE self, VALUE rother)$/;" f
|
223
|
-
frt_term_lt term.c /^frt_term_lt(VALUE self, VALUE rother)$/;" f
|
224
|
-
frt_term_mark term.c /^frt_term_mark(void *p)$/;" f
|
225
|
-
frt_term_set term.c /^frt_term_set(VALUE self, VALUE rfield, VALUE rtext)$/;" f
|
226
|
-
frt_term_set_field term.c /^frt_term_set_field(VALUE self, VALUE rfield)$/;" f file:
|
227
|
-
frt_term_set_text term.c /^frt_term_set_text(VALUE self, VALUE rtext)$/;" f file:
|
228
|
-
frt_term_to_s term.c /^frt_term_to_s(VALUE self)$/;" f
|
229
|
-
frt_termbuffer_alloc term_buffer.c /^frt_termbuffer_alloc(VALUE klass)$/;" f file:
|
230
|
-
frt_termbuffer_compare_to term_buffer.c /^frt_termbuffer_compare_to(VALUE self, VALUE rother)$/;" f file:
|
231
|
-
frt_termbuffer_compare_to_int term_buffer.c /^frt_termbuffer_compare_to_int(VALUE self, VALUE rother)$/;" f
|
232
|
-
frt_termbuffer_eq term_buffer.c /^frt_termbuffer_eq(VALUE self, VALUE rother)$/;" f
|
233
|
-
frt_termbuffer_free term_buffer.c /^frt_termbuffer_free(void *p)$/;" f
|
234
|
-
frt_termbuffer_ge term_buffer.c /^frt_termbuffer_ge(VALUE self, VALUE rother)$/;" f
|
235
|
-
frt_termbuffer_get_field_name term_buffer.c /^frt_termbuffer_get_field_name(VALUE self)$/;" f file:
|
236
|
-
frt_termbuffer_get_text term_buffer.c /^frt_termbuffer_get_text(VALUE self)$/;" f file:
|
237
|
-
frt_termbuffer_get_text_length term_buffer.c /^frt_termbuffer_get_text_length(VALUE self)$/;" f file:
|
238
|
-
frt_termbuffer_gt term_buffer.c /^frt_termbuffer_gt(VALUE self, VALUE rother)$/;" f
|
239
|
-
frt_termbuffer_hash term_buffer.c /^frt_termbuffer_hash(VALUE self)$/;" f file:
|
240
|
-
frt_termbuffer_init term_buffer.c /^frt_termbuffer_init(VALUE self)$/;" f file:
|
241
|
-
frt_termbuffer_init_copy term_buffer.c /^frt_termbuffer_init_copy(VALUE self, VALUE rother)$/;" f
|
242
|
-
frt_termbuffer_le term_buffer.c /^frt_termbuffer_le(VALUE self, VALUE rother)$/;" f
|
243
|
-
frt_termbuffer_lt term_buffer.c /^frt_termbuffer_lt(VALUE self, VALUE rother)$/;" f
|
244
|
-
frt_termbuffer_mark term_buffer.c /^frt_termbuffer_mark(void *p)$/;" f
|
245
|
-
frt_termbuffer_read term_buffer.c /^frt_termbuffer_read(VALUE self, VALUE rinput, VALUE rfield_infos)$/;" f
|
246
|
-
frt_termbuffer_reset term_buffer.c /^frt_termbuffer_reset(VALUE self)$/;" f file:
|
247
|
-
frt_termbuffer_to_term term_buffer.c /^frt_termbuffer_to_term(VALUE self)$/;" f
|
248
|
-
frt_ti_alloc terminfo.c /^frt_ti_alloc(VALUE klass)$/;" f file:
|
249
|
-
frt_ti_eql terminfo.c /^frt_ti_eql(VALUE self, VALUE rother)$/;" f file:
|
250
|
-
frt_ti_free terminfo.c /^frt_ti_free(void *p)$/;" f
|
251
|
-
frt_ti_get_df terminfo.c /^frt_ti_get_df(VALUE self)$/;" f file:
|
252
|
-
frt_ti_get_fp terminfo.c /^frt_ti_get_fp(VALUE self)$/;" f file:
|
253
|
-
frt_ti_get_pp terminfo.c /^frt_ti_get_pp(VALUE self)$/;" f file:
|
254
|
-
frt_ti_get_so terminfo.c /^frt_ti_get_so(VALUE self)$/;" f file:
|
255
|
-
frt_ti_init terminfo.c /^frt_ti_init(int argc, VALUE *argv, VALUE self)$/;" f file:
|
256
|
-
frt_ti_init_copy terminfo.c /^frt_ti_init_copy(VALUE self, VALUE rother)$/;" f file:
|
257
|
-
frt_ti_set terminfo.c /^frt_ti_set(int argc, VALUE *argv, VALUE self)$/;" f
|
258
|
-
frt_ti_set_df terminfo.c /^frt_ti_set_df(VALUE self, VALUE val)$/;" f file:
|
259
|
-
frt_ti_set_fp terminfo.c /^frt_ti_set_fp(VALUE self, VALUE val)$/;" f file:
|
260
|
-
frt_ti_set_pp terminfo.c /^frt_ti_set_pp(VALUE self, VALUE val)$/;" f file:
|
261
|
-
frt_ti_set_so terminfo.c /^frt_ti_set_so(VALUE self, VALUE val)$/;" f file:
|
262
|
-
frt_tir_get_index_offset term_infos_reader.c /^frt_tir_get_index_offset(VALUE self, VALUE rterm)$/;" f file:
|
263
|
-
frt_token_eql token.c /^frt_token_eql(VALUE self, VALUE other)$/;" f file:
|
264
|
-
frt_token_init token.c /^frt_token_init(int argc, VALUE *argv, VALUE self)$/;" f file:
|
265
|
-
frt_token_pos_inc token.c /^frt_token_pos_inc (VALUE self, VALUE pI)$/;" f file:
|
266
|
-
frt_write_byte index_io.c /^frt_write_byte(VALUE self, byte_t b)$/;" f file:
|
267
|
-
frt_write_bytes index_io.c /^frt_write_bytes(VALUE self, byte_t *buf, int len)$/;" f
|
268
|
-
frt_write_chars index_io.c /^frt_write_chars(VALUE self, VALUE rbuf, int start, int length)$/;" f file:
|
269
|
-
frt_write_vint index_io.c /^frt_write_vint(VALUE self, register unsigned long long i)$/;" f file:
|
270
|
-
hdrdir Makefile /^hdrdir = $(topdir)$/;" m
|
271
|
-
heap ferret.h /^ VALUE *heap;$/;" m struct:PriorityQueue
|
272
|
-
id_close ferret.c /^ID id_close;$/;" v
|
273
|
-
id_field_array term_buffer.c /^ID id_field_array;$/;" v
|
274
|
-
id_field_name term_buffer.c /^ID id_field_name;$/;" v
|
275
|
-
id_file ram_directory.c /^ID flush, seek, id_file, id_pointer;$/;" v
|
276
|
-
id_iv_size ferret.c /^ID id_iv_size;$/;" v
|
277
|
-
id_new ferret.c /^ID id_new;$/;" v
|
278
|
-
id_pointer ram_directory.c /^ID flush, seek, id_file, id_pointer;$/;" v
|
279
|
-
id_size ferret.c /^ID id_size;$/;" v
|
280
|
-
id_tk_end_offset token.c /^ID id_tk_text, id_tk_pos_inc, id_tk_start_offset, id_tk_end_offset, id_tk_type;$/;" v
|
281
|
-
id_tk_pos_inc token.c /^ID id_tk_text, id_tk_pos_inc, id_tk_start_offset, id_tk_end_offset, id_tk_type;$/;" v
|
282
|
-
id_tk_pos_inc_set token.c /^ID id_tk_pos_inc_set;$/;" v
|
283
|
-
id_tk_start_offset token.c /^ID id_tk_text, id_tk_pos_inc, id_tk_start_offset, id_tk_end_offset, id_tk_type;$/;" v
|
284
|
-
id_tk_text token.c /^ID id_tk_text, id_tk_pos_inc, id_tk_start_offset, id_tk_end_offset, id_tk_type;$/;" v
|
285
|
-
id_tk_type token.c /^ID id_tk_text, id_tk_pos_inc, id_tk_start_offset, id_tk_end_offset, id_tk_type;$/;" v
|
286
|
-
includedir Makefile /^includedir = $(prefix)\/include$/;" m
|
287
|
-
index_interval ferret.h /^ int index_interval;$/;" m struct:SegmentTermEnum
|
288
|
-
index_pointer ferret.h /^ int index_pointer;$/;" m struct:SegmentTermEnum
|
289
|
-
infodir Makefile /^infodir = $(prefix)\/info$/;" m
|
290
|
-
input ferret.h /^ VALUE input;$/;" m struct:SegmentTermEnum
|
291
|
-
is_index ferret.h /^ int is_index;$/;" m struct:SegmentTermEnum
|
292
|
-
len ferret.h /^ int len;$/;" m struct:PriorityQueue
|
293
|
-
len ferret.h /^ int len;$/;" m struct:IndexBuffer
|
294
|
-
length ferret.h /^ int length;$/;" m struct:RAMFile
|
295
|
-
less_than priority_queue.c /^ID less_than, put_heap;$/;" v
|
296
|
-
libdir Makefile /^libdir = $(exec_prefix)\/lib$/;" m
|
297
|
-
libexecdir Makefile /^libexecdir = $(exec_prefix)\/libexec$/;" m
|
298
|
-
libpath Makefile /^libpath = $(libdir)$/;" m
|
299
|
-
localstatedir Makefile /^localstatedir = $(DESTDIR)\/var$/;" m
|
300
|
-
mAnalysis ferret.c /^VALUE mAnalysis;$/;" v
|
301
|
-
mFerret ferret.c /^VALUE mFerret;$/;" v
|
302
|
-
mIndex ferret.c /^VALUE mIndex;$/;" v
|
303
|
-
mSearch ferret.c /^VALUE mSearch;$/;" v
|
304
|
-
mStore ferret.c /^VALUE mStore;$/;" v
|
305
|
-
mStringHelper ferret.c /^VALUE mStringHelper;$/;" v
|
306
|
-
mUtils ferret.c /^VALUE mUtils;$/;" v
|
307
|
-
mandir Makefile /^mandir = $(datadir)\/man$/;" m
|
308
|
-
mtime ferret.h /^ VALUE mtime;$/;" m struct:RAMFile
|
309
|
-
name ferret.h /^ char *name;$/;" m struct:RAMFile
|
310
|
-
oldincludedir Makefile /^oldincludedir = $(DESTDIR)\/usr\/include$/;" m
|
311
|
-
pos ferret.h /^ int pos;$/;" m struct:IndexBuffer
|
312
|
-
position ferret.h /^ int position;$/;" m struct:SegmentTermEnum
|
313
|
-
prefix Makefile /^prefix = $(DESTDIR)\/usr$/;" m
|
314
|
-
preload Makefile /^preload = $/;" m
|
315
|
-
priq_down priority_queue.c /^priq_down(PriorityQueue *priq, VALUE self, VALUE rary)$/;" f
|
316
|
-
priq_up priority_queue.c /^priq_up(PriorityQueue *priq, VALUE self, VALUE rary)$/;" f
|
317
|
-
prox_pointer ferret.h /^ long prox_pointer;$/;" m struct:TermInfo
|
318
|
-
put_heap priority_queue.c /^ID less_than, put_heap;$/;" v
|
319
|
-
rtb_curr ferret.h /^ VALUE rtb_curr;$/;" m struct:SegmentTermEnum
|
320
|
-
rtb_prev ferret.h /^ VALUE rtb_prev;$/;" m struct:SegmentTermEnum
|
321
|
-
ruby Makefile /^ruby = \/usr\/bin\/ruby1.8$/;" m
|
322
|
-
ruby_version Makefile /^ruby_version = 1.8$/;" m
|
323
|
-
rubylibdir Makefile /^rubylibdir = $(libdir)\/ruby\/$(ruby_version)$/;" m
|
324
|
-
sbindir Makefile /^sbindir = $(exec_prefix)\/sbin$/;" m
|
325
|
-
seek ram_directory.c /^ID flush, seek, id_file, id_pointer;$/;" v
|
326
|
-
sharedstatedir Makefile /^sharedstatedir = $(prefix)\/com$/;" m
|
327
|
-
sitearch Makefile /^sitearch = i486-linux$/;" m
|
328
|
-
sitearchdir Makefile /^sitearchdir = $(sitelibdir)\/$(sitearch)$/;" m
|
329
|
-
sitedir Makefile /^sitedir = $(DESTDIR)\/usr\/local\/lib\/site_ruby$/;" m
|
330
|
-
sitelibdir Makefile /^sitelibdir = $(sitedir)\/$(ruby_version)$/;" m
|
331
|
-
size ferret.h /^ int size;$/;" m struct:PriorityQueue
|
332
|
-
size ferret.h /^ int size;$/;" m struct:SegmentTermEnum
|
333
|
-
skip_interval ferret.h /^ int skip_interval;$/;" m struct:SegmentTermEnum
|
334
|
-
skip_offset ferret.h /^ int skip_offset;$/;" m struct:TermInfo
|
335
|
-
srcdir Makefile /^srcdir = .$/;" m
|
336
|
-
start ferret.h /^ long start;$/;" m struct:IndexBuffer
|
337
|
-
sysconfdir Makefile /^sysconfdir = $(DESTDIR)\/etc$/;" m
|
338
|
-
target_prefix Makefile /^target_prefix = $/;" m
|
339
|
-
tb_curr ferret.h /^ Term *tb_curr;$/;" m struct:SegmentTermEnum
|
340
|
-
tb_prev ferret.h /^ Term *tb_prev;$/;" m struct:SegmentTermEnum
|
341
|
-
text ferret.h /^ char *text;$/;" m struct:Term
|
342
|
-
ti ferret.h /^ TermInfo *ti;$/;" m struct:SegmentTermEnum
|
343
|
-
tlen ferret.h /^ int tlen;$/;" m struct:Term
|
344
|
-
topdir Makefile /^topdir = \/usr\/lib\/ruby\/1.8\/i486-linux$/;" m
|