ferret 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README +109 -0
- data/Rakefile +275 -0
- data/TODO +9 -0
- data/TUTORIAL +197 -0
- data/ext/extconf.rb +3 -0
- data/ext/ferret.c +23 -0
- data/ext/ferret.h +85 -0
- data/ext/index_io.c +543 -0
- data/ext/priority_queue.c +227 -0
- data/ext/ram_directory.c +316 -0
- data/ext/segment_merge_queue.c +41 -0
- data/ext/string_helper.c +42 -0
- data/ext/tags +240 -0
- data/ext/term.c +261 -0
- data/ext/term_buffer.c +299 -0
- data/ext/util.c +12 -0
- data/lib/ferret.rb +41 -0
- data/lib/ferret/analysis.rb +11 -0
- data/lib/ferret/analysis/analyzers.rb +93 -0
- data/lib/ferret/analysis/standard_tokenizer.rb +65 -0
- data/lib/ferret/analysis/token.rb +79 -0
- data/lib/ferret/analysis/token_filters.rb +86 -0
- data/lib/ferret/analysis/token_stream.rb +26 -0
- data/lib/ferret/analysis/tokenizers.rb +107 -0
- data/lib/ferret/analysis/word_list_loader.rb +27 -0
- data/lib/ferret/document.rb +2 -0
- data/lib/ferret/document/document.rb +152 -0
- data/lib/ferret/document/field.rb +304 -0
- data/lib/ferret/index.rb +26 -0
- data/lib/ferret/index/compound_file_io.rb +343 -0
- data/lib/ferret/index/document_writer.rb +288 -0
- data/lib/ferret/index/field_infos.rb +259 -0
- data/lib/ferret/index/fields_io.rb +175 -0
- data/lib/ferret/index/index.rb +228 -0
- data/lib/ferret/index/index_file_names.rb +33 -0
- data/lib/ferret/index/index_reader.rb +462 -0
- data/lib/ferret/index/index_writer.rb +488 -0
- data/lib/ferret/index/multi_reader.rb +363 -0
- data/lib/ferret/index/multiple_term_doc_pos_enum.rb +105 -0
- data/lib/ferret/index/segment_infos.rb +130 -0
- data/lib/ferret/index/segment_merge_info.rb +47 -0
- data/lib/ferret/index/segment_merge_queue.rb +16 -0
- data/lib/ferret/index/segment_merger.rb +337 -0
- data/lib/ferret/index/segment_reader.rb +380 -0
- data/lib/ferret/index/segment_term_enum.rb +178 -0
- data/lib/ferret/index/segment_term_vector.rb +58 -0
- data/lib/ferret/index/term.rb +49 -0
- data/lib/ferret/index/term_buffer.rb +88 -0
- data/lib/ferret/index/term_doc_enum.rb +283 -0
- data/lib/ferret/index/term_enum.rb +52 -0
- data/lib/ferret/index/term_info.rb +41 -0
- data/lib/ferret/index/term_infos_io.rb +312 -0
- data/lib/ferret/index/term_vector_offset_info.rb +20 -0
- data/lib/ferret/index/term_vectors_io.rb +552 -0
- data/lib/ferret/query_parser.rb +274 -0
- data/lib/ferret/query_parser/query_parser.tab.rb +819 -0
- data/lib/ferret/search.rb +49 -0
- data/lib/ferret/search/boolean_clause.rb +100 -0
- data/lib/ferret/search/boolean_query.rb +303 -0
- data/lib/ferret/search/boolean_scorer.rb +294 -0
- data/lib/ferret/search/caching_wrapper_filter.rb +40 -0
- data/lib/ferret/search/conjunction_scorer.rb +99 -0
- data/lib/ferret/search/disjunction_sum_scorer.rb +203 -0
- data/lib/ferret/search/exact_phrase_scorer.rb +32 -0
- data/lib/ferret/search/explanation.rb +41 -0
- data/lib/ferret/search/field_cache.rb +216 -0
- data/lib/ferret/search/field_doc.rb +31 -0
- data/lib/ferret/search/field_sorted_hit_queue.rb +184 -0
- data/lib/ferret/search/filter.rb +11 -0
- data/lib/ferret/search/filtered_query.rb +130 -0
- data/lib/ferret/search/filtered_term_enum.rb +79 -0
- data/lib/ferret/search/fuzzy_query.rb +153 -0
- data/lib/ferret/search/fuzzy_term_enum.rb +244 -0
- data/lib/ferret/search/hit_collector.rb +34 -0
- data/lib/ferret/search/hit_queue.rb +11 -0
- data/lib/ferret/search/index_searcher.rb +173 -0
- data/lib/ferret/search/match_all_docs_query.rb +104 -0
- data/lib/ferret/search/multi_phrase_query.rb +204 -0
- data/lib/ferret/search/multi_term_query.rb +65 -0
- data/lib/ferret/search/non_matching_scorer.rb +22 -0
- data/lib/ferret/search/phrase_positions.rb +55 -0
- data/lib/ferret/search/phrase_query.rb +217 -0
- data/lib/ferret/search/phrase_scorer.rb +153 -0
- data/lib/ferret/search/prefix_query.rb +47 -0
- data/lib/ferret/search/query.rb +111 -0
- data/lib/ferret/search/query_filter.rb +51 -0
- data/lib/ferret/search/range_filter.rb +103 -0
- data/lib/ferret/search/range_query.rb +139 -0
- data/lib/ferret/search/req_excl_scorer.rb +125 -0
- data/lib/ferret/search/req_opt_sum_scorer.rb +70 -0
- data/lib/ferret/search/score_doc.rb +38 -0
- data/lib/ferret/search/score_doc_comparator.rb +114 -0
- data/lib/ferret/search/scorer.rb +91 -0
- data/lib/ferret/search/similarity.rb +278 -0
- data/lib/ferret/search/sloppy_phrase_scorer.rb +47 -0
- data/lib/ferret/search/sort.rb +105 -0
- data/lib/ferret/search/sort_comparator.rb +60 -0
- data/lib/ferret/search/sort_field.rb +87 -0
- data/lib/ferret/search/spans.rb +12 -0
- data/lib/ferret/search/spans/near_spans_enum.rb +304 -0
- data/lib/ferret/search/spans/span_first_query.rb +79 -0
- data/lib/ferret/search/spans/span_near_query.rb +108 -0
- data/lib/ferret/search/spans/span_not_query.rb +130 -0
- data/lib/ferret/search/spans/span_or_query.rb +176 -0
- data/lib/ferret/search/spans/span_query.rb +25 -0
- data/lib/ferret/search/spans/span_scorer.rb +74 -0
- data/lib/ferret/search/spans/span_term_query.rb +105 -0
- data/lib/ferret/search/spans/span_weight.rb +84 -0
- data/lib/ferret/search/spans/spans_enum.rb +44 -0
- data/lib/ferret/search/term_query.rb +128 -0
- data/lib/ferret/search/term_scorer.rb +181 -0
- data/lib/ferret/search/top_docs.rb +24 -0
- data/lib/ferret/search/top_field_docs.rb +17 -0
- data/lib/ferret/search/weight.rb +54 -0
- data/lib/ferret/search/wildcard_query.rb +26 -0
- data/lib/ferret/search/wildcard_term_enum.rb +61 -0
- data/lib/ferret/stemmers.rb +1 -0
- data/lib/ferret/stemmers/porter_stemmer.rb +218 -0
- data/lib/ferret/store.rb +5 -0
- data/lib/ferret/store/buffered_index_io.rb +191 -0
- data/lib/ferret/store/directory.rb +139 -0
- data/lib/ferret/store/fs_store.rb +338 -0
- data/lib/ferret/store/index_io.rb +259 -0
- data/lib/ferret/store/ram_store.rb +282 -0
- data/lib/ferret/utils.rb +7 -0
- data/lib/ferret/utils/bit_vector.rb +105 -0
- data/lib/ferret/utils/date_tools.rb +138 -0
- data/lib/ferret/utils/number_tools.rb +91 -0
- data/lib/ferret/utils/parameter.rb +41 -0
- data/lib/ferret/utils/priority_queue.rb +120 -0
- data/lib/ferret/utils/string_helper.rb +47 -0
- data/lib/ferret/utils/weak_key_hash.rb +51 -0
- data/rake_utils/code_statistics.rb +106 -0
- data/setup.rb +1551 -0
- data/test/benchmark/tb_ram_store.rb +76 -0
- data/test/benchmark/tb_rw_vint.rb +26 -0
- data/test/longrunning/tc_numbertools.rb +60 -0
- data/test/longrunning/tm_store.rb +19 -0
- data/test/test_all.rb +9 -0
- data/test/test_helper.rb +6 -0
- data/test/unit/analysis/tc_analyzer.rb +21 -0
- data/test/unit/analysis/tc_letter_tokenizer.rb +20 -0
- data/test/unit/analysis/tc_lower_case_filter.rb +20 -0
- data/test/unit/analysis/tc_lower_case_tokenizer.rb +27 -0
- data/test/unit/analysis/tc_per_field_analyzer_wrapper.rb +39 -0
- data/test/unit/analysis/tc_porter_stem_filter.rb +16 -0
- data/test/unit/analysis/tc_standard_analyzer.rb +20 -0
- data/test/unit/analysis/tc_standard_tokenizer.rb +20 -0
- data/test/unit/analysis/tc_stop_analyzer.rb +20 -0
- data/test/unit/analysis/tc_stop_filter.rb +14 -0
- data/test/unit/analysis/tc_white_space_analyzer.rb +21 -0
- data/test/unit/analysis/tc_white_space_tokenizer.rb +20 -0
- data/test/unit/analysis/tc_word_list_loader.rb +32 -0
- data/test/unit/document/tc_document.rb +47 -0
- data/test/unit/document/tc_field.rb +80 -0
- data/test/unit/index/tc_compound_file_io.rb +107 -0
- data/test/unit/index/tc_field_infos.rb +119 -0
- data/test/unit/index/tc_fields_io.rb +167 -0
- data/test/unit/index/tc_index.rb +140 -0
- data/test/unit/index/tc_index_reader.rb +622 -0
- data/test/unit/index/tc_index_writer.rb +57 -0
- data/test/unit/index/tc_multiple_term_doc_pos_enum.rb +80 -0
- data/test/unit/index/tc_segment_infos.rb +74 -0
- data/test/unit/index/tc_segment_term_docs.rb +17 -0
- data/test/unit/index/tc_segment_term_enum.rb +60 -0
- data/test/unit/index/tc_segment_term_vector.rb +71 -0
- data/test/unit/index/tc_term.rb +22 -0
- data/test/unit/index/tc_term_buffer.rb +57 -0
- data/test/unit/index/tc_term_info.rb +19 -0
- data/test/unit/index/tc_term_infos_io.rb +192 -0
- data/test/unit/index/tc_term_vector_offset_info.rb +18 -0
- data/test/unit/index/tc_term_vectors_io.rb +108 -0
- data/test/unit/index/th_doc.rb +244 -0
- data/test/unit/query_parser/tc_query_parser.rb +84 -0
- data/test/unit/search/tc_filter.rb +113 -0
- data/test/unit/search/tc_fuzzy_query.rb +136 -0
- data/test/unit/search/tc_index_searcher.rb +188 -0
- data/test/unit/search/tc_search_and_sort.rb +98 -0
- data/test/unit/search/tc_similarity.rb +37 -0
- data/test/unit/search/tc_sort.rb +48 -0
- data/test/unit/search/tc_sort_field.rb +27 -0
- data/test/unit/search/tc_spans.rb +153 -0
- data/test/unit/store/tc_fs_store.rb +84 -0
- data/test/unit/store/tc_ram_store.rb +35 -0
- data/test/unit/store/tm_store.rb +180 -0
- data/test/unit/store/tm_store_lock.rb +68 -0
- data/test/unit/ts_analysis.rb +16 -0
- data/test/unit/ts_document.rb +4 -0
- data/test/unit/ts_index.rb +18 -0
- data/test/unit/ts_query_parser.rb +3 -0
- data/test/unit/ts_search.rb +10 -0
- data/test/unit/ts_store.rb +6 -0
- data/test/unit/ts_utils.rb +10 -0
- data/test/unit/utils/tc_bit_vector.rb +65 -0
- data/test/unit/utils/tc_date_tools.rb +50 -0
- data/test/unit/utils/tc_number_tools.rb +59 -0
- data/test/unit/utils/tc_parameter.rb +40 -0
- data/test/unit/utils/tc_priority_queue.rb +62 -0
- data/test/unit/utils/tc_string_helper.rb +21 -0
- data/test/unit/utils/tc_weak_key_hash.rb +25 -0
- metadata +251 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/../../test_helper"
|
2
|
+
|
3
|
+
|
4
|
+
class NumberToolsTest < Test::Unit::TestCase
|
5
|
+
include Ferret::Utils
|
6
|
+
|
7
|
+
def test_near_zero()
|
8
|
+
2.times() do |i|
|
9
|
+
2.times() { |j| subtest_two_longs(i, j) }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_max()
|
14
|
+
# make sure the constants convert to their equivelents
|
15
|
+
assert_equal(NumberTools::LONG_MAX_VALUE, NumberTools.s_to_long(NumberTools::MAX_STRING_VALUE))
|
16
|
+
assert_equal(NumberTools::MAX_STRING_VALUE, NumberTools.long_to_s(NumberTools::LONG_MAX_VALUE))
|
17
|
+
# test near MAX, too
|
18
|
+
|
19
|
+
l = NumberTools::LONG_MAX_VALUE
|
20
|
+
subtest_two_longs(l, l - 1)
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_min()
|
24
|
+
# make sure the constants convert to their equivelents
|
25
|
+
assert_equal(NumberTools::LONG_MIN_VALUE, NumberTools.s_to_long(NumberTools::MIN_STRING_VALUE))
|
26
|
+
assert_equal(NumberTools::MIN_STRING_VALUE, NumberTools.long_to_s(NumberTools::LONG_MIN_VALUE))
|
27
|
+
|
28
|
+
# test near MIN, too
|
29
|
+
l = NumberTools::LONG_MIN_VALUE
|
30
|
+
subtest_two_longs(l, l + 1)
|
31
|
+
end
|
32
|
+
|
33
|
+
def subtest_two_longs(i, j)
|
34
|
+
# convert to strings
|
35
|
+
a = NumberTools.long_to_s(i)
|
36
|
+
b = NumberTools.long_to_s(j)
|
37
|
+
|
38
|
+
# are they the right length?
|
39
|
+
assert_equal(NumberTools::STR_SIZE, a.length())
|
40
|
+
assert_equal(NumberTools::STR_SIZE, b.length())
|
41
|
+
|
42
|
+
# are they the right order?
|
43
|
+
if (i < j)
|
44
|
+
assert(a < b)
|
45
|
+
elsif (i > j)
|
46
|
+
assert(a > b)
|
47
|
+
else
|
48
|
+
assert_equal(a, b)
|
49
|
+
end
|
50
|
+
|
51
|
+
# can we convert them back to longs?
|
52
|
+
i2 = NumberTools.s_to_long(a)
|
53
|
+
j2 = NumberTools.s_to_long(b)
|
54
|
+
|
55
|
+
assert_equal(i, i2)
|
56
|
+
assert_equal(j, j2)
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/../../test_helper"
|
2
|
+
|
3
|
+
|
4
|
+
class ParameterTest < Test::Unit::TestCase
|
5
|
+
include Ferret::Utils
|
6
|
+
|
7
|
+
class Param1 < Parameter
|
8
|
+
VAL1 = Param1.new("VAL")
|
9
|
+
end
|
10
|
+
|
11
|
+
class Param2 < Parameter
|
12
|
+
VAL1 = Param2.new("VAL")
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_parameter_cmp()
|
16
|
+
assert_raise(ArgumentError) do
|
17
|
+
class <<Param1
|
18
|
+
v = Param1.new("VAL")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
assert_raise(ArgumentError) do
|
22
|
+
class <<Param1
|
23
|
+
v = Param2.new("VAL")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
p1 = Param1::VAL1
|
28
|
+
p2 = Param1::VAL1
|
29
|
+
p3 = Param2::VAL1
|
30
|
+
assert_equal(p1, p2)
|
31
|
+
assert_not_equal(p1, p3)
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_marshalling()
|
35
|
+
p1 = Param1::VAL1
|
36
|
+
data = Marshal.dump(p1)
|
37
|
+
p2 = Marshal.load(data)
|
38
|
+
assert_equal(p1, p2)
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/../../test_helper"
|
2
|
+
|
3
|
+
|
4
|
+
class PriorityQueueTest < Test::Unit::TestCase
|
5
|
+
include Ferret::Utils
|
6
|
+
|
7
|
+
PQ_STRESS_SIZE = 1000
|
8
|
+
|
9
|
+
def test_pq()
|
10
|
+
pq = PriorityQueue.new(4)
|
11
|
+
assert_equal(0, pq.size)
|
12
|
+
pq.push("bword")
|
13
|
+
assert_equal(1, pq.size)
|
14
|
+
assert_equal("bword", pq.top)
|
15
|
+
pq.push("cword")
|
16
|
+
assert_equal(2, pq.size)
|
17
|
+
assert_equal("bword", pq.top)
|
18
|
+
pq.push("aword")
|
19
|
+
assert_equal(3, pq.size)
|
20
|
+
assert_equal("aword", pq.top)
|
21
|
+
pq.push("dword")
|
22
|
+
assert_equal(4, pq.size)
|
23
|
+
assert_equal("aword", pq.top)
|
24
|
+
assert_equal("aword", pq.pop())
|
25
|
+
assert_equal(3, pq.size)
|
26
|
+
assert_equal("bword", pq.pop())
|
27
|
+
assert_equal(2, pq.size)
|
28
|
+
assert_equal("cword", pq.pop())
|
29
|
+
assert_equal(1, pq.size)
|
30
|
+
assert_equal("dword", pq.pop())
|
31
|
+
assert_equal(0, pq.size)
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_pq_clear()
|
35
|
+
pq = PriorityQueue.new(3)
|
36
|
+
pq.push("word1")
|
37
|
+
pq.push("word2")
|
38
|
+
pq.push("word3")
|
39
|
+
assert_equal(3, pq.size)
|
40
|
+
pq.clear()
|
41
|
+
assert_equal(0, pq.size)
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
#define PQ_STRESS_SIZE 1000
|
46
|
+
def test_stress_pq()
|
47
|
+
pq = PriorityQueue.new(PQ_STRESS_SIZE)
|
48
|
+
PQ_STRESS_SIZE.times do
|
49
|
+
pq.push("<#{(rand * PQ_STRESS_SIZE).to_i}>")
|
50
|
+
end
|
51
|
+
|
52
|
+
prev = pq.pop()
|
53
|
+
(PQ_STRESS_SIZE - 1).times do
|
54
|
+
curr = pq.pop()
|
55
|
+
if (prev > curr)
|
56
|
+
assert(prev <= curr, "previous #{prev} should be less than current #{curr}")
|
57
|
+
end
|
58
|
+
prev = curr
|
59
|
+
end
|
60
|
+
pq.clear()
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/../../test_helper"
|
2
|
+
|
3
|
+
|
4
|
+
class StringHelperTest < Test::Unit::TestCase
|
5
|
+
include Ferret::Utils
|
6
|
+
|
7
|
+
def test_string_difference()
|
8
|
+
assert_equal(3, StringHelper.string_difference("David", "Dave"))
|
9
|
+
assert_equal(0, StringHelper.string_difference("David", "Erik"))
|
10
|
+
assert_equal(4, StringHelper.string_difference("book", "bookworm"))
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_string_reader
|
14
|
+
sr = StringHelper::StringReader.new("TestString")
|
15
|
+
assert_equal("T", sr.read(1))
|
16
|
+
assert_equal("es", sr.read(2))
|
17
|
+
assert_equal("tStr", sr.read(4))
|
18
|
+
assert_equal("ing", sr.read(100))
|
19
|
+
assert_nil(sr.read(100))
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/../../test_helper"
|
2
|
+
|
3
|
+
|
4
|
+
class WeakKeyHashTest < Test::Unit::TestCase
|
5
|
+
include Ferret::Utils
|
6
|
+
|
7
|
+
def test_marshalling()
|
8
|
+
w = WeakKeyHash.new()
|
9
|
+
a = []
|
10
|
+
10.times {|i| a[i] = "#{i}"; w[a[i]] = i }
|
11
|
+
10.times {|i| assert_equal(i, w[a[i]]) }
|
12
|
+
10.times {|i| a[i] = nil; }
|
13
|
+
#puts w
|
14
|
+
|
15
|
+
# this is a hack to get the GC to collect the last ref created above
|
16
|
+
x = WeakKeyHash.new()
|
17
|
+
10.times {|i| a[i] = "#{i}"; x[a[i]] = i }
|
18
|
+
|
19
|
+
assert_equal(10, w.size)
|
20
|
+
GC.start
|
21
|
+
#puts w.size
|
22
|
+
#puts w
|
23
|
+
assert(0, w.size)
|
24
|
+
end
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,251 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.11
|
3
|
+
specification_version: 1
|
4
|
+
name: ferret
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.1.0
|
7
|
+
date: 2005-10-19 00:00:00 +09:00
|
8
|
+
summary: Ruby indexing library.
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: dbalmain@gmail.com
|
12
|
+
homepage: http://ferret.davebalmain.com
|
13
|
+
rubyforge_project: ferret
|
14
|
+
description: Ferret is a port of the Java Lucene project. It is a powerful indexing and search library.
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
-
|
22
|
+
- ">"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.0.0
|
25
|
+
version:
|
26
|
+
platform: ruby
|
27
|
+
signing_key:
|
28
|
+
cert_chain:
|
29
|
+
authors:
|
30
|
+
- David Balmain
|
31
|
+
files:
|
32
|
+
- setup.rb
|
33
|
+
- Rakefile
|
34
|
+
- README
|
35
|
+
- MIT-LICENSE
|
36
|
+
- TODO
|
37
|
+
- TUTORIAL
|
38
|
+
- ext/index_io.c
|
39
|
+
- ext/term_buffer.c
|
40
|
+
- ext/ram_directory.c
|
41
|
+
- ext/priority_queue.c
|
42
|
+
- ext/string_helper.c
|
43
|
+
- ext/segment_merge_queue.c
|
44
|
+
- ext/extconf.rb
|
45
|
+
- ext/ferret.c
|
46
|
+
- ext/term.c
|
47
|
+
- ext/ferret.h
|
48
|
+
- ext/util.c
|
49
|
+
- ext/tags
|
50
|
+
- lib/ferret.rb
|
51
|
+
- lib/ferret/analysis.rb
|
52
|
+
- lib/ferret/document.rb
|
53
|
+
- lib/ferret/index.rb
|
54
|
+
- lib/ferret/search.rb
|
55
|
+
- lib/ferret/query_parser.rb
|
56
|
+
- lib/ferret/stemmers.rb
|
57
|
+
- lib/ferret/store.rb
|
58
|
+
- lib/ferret/utils.rb
|
59
|
+
- lib/ferret/analysis/standard_tokenizer.rb
|
60
|
+
- lib/ferret/analysis/word_list_loader.rb
|
61
|
+
- lib/ferret/analysis/tokenizers.rb
|
62
|
+
- lib/ferret/analysis/token.rb
|
63
|
+
- lib/ferret/analysis/analyzers.rb
|
64
|
+
- lib/ferret/analysis/token_filters.rb
|
65
|
+
- lib/ferret/analysis/token_stream.rb
|
66
|
+
- lib/ferret/document/document.rb
|
67
|
+
- lib/ferret/document/field.rb
|
68
|
+
- lib/ferret/index/fields_io.rb
|
69
|
+
- lib/ferret/index/index.rb
|
70
|
+
- lib/ferret/index/segment_merge_queue.rb
|
71
|
+
- lib/ferret/index/segment_term_enum.rb
|
72
|
+
- lib/ferret/index/term_info.rb
|
73
|
+
- lib/ferret/index/field_infos.rb
|
74
|
+
- lib/ferret/index/segment_reader.rb
|
75
|
+
- lib/ferret/index/index_file_names.rb
|
76
|
+
- lib/ferret/index/index_reader.rb
|
77
|
+
- lib/ferret/index/term_infos_io.rb
|
78
|
+
- lib/ferret/index/term_enum.rb
|
79
|
+
- lib/ferret/index/term.rb
|
80
|
+
- lib/ferret/index/segment_merge_info.rb
|
81
|
+
- lib/ferret/index/segment_merger.rb
|
82
|
+
- lib/ferret/index/segment_infos.rb
|
83
|
+
- lib/ferret/index/term_doc_enum.rb
|
84
|
+
- lib/ferret/index/term_buffer.rb
|
85
|
+
- lib/ferret/index/multi_reader.rb
|
86
|
+
- lib/ferret/index/term_vectors_io.rb
|
87
|
+
- lib/ferret/index/index_writer.rb
|
88
|
+
- lib/ferret/index/term_vector_offset_info.rb
|
89
|
+
- lib/ferret/index/segment_term_vector.rb
|
90
|
+
- lib/ferret/index/document_writer.rb
|
91
|
+
- lib/ferret/index/compound_file_io.rb
|
92
|
+
- lib/ferret/index/multiple_term_doc_pos_enum.rb
|
93
|
+
- lib/ferret/search/query.rb
|
94
|
+
- lib/ferret/search/non_matching_scorer.rb
|
95
|
+
- lib/ferret/search/top_field_docs.rb
|
96
|
+
- lib/ferret/search/weight.rb
|
97
|
+
- lib/ferret/search/field_doc.rb
|
98
|
+
- lib/ferret/search/hit_queue.rb
|
99
|
+
- lib/ferret/search/sort.rb
|
100
|
+
- lib/ferret/search/disjunction_sum_scorer.rb
|
101
|
+
- lib/ferret/search/boolean_scorer.rb
|
102
|
+
- lib/ferret/search/boolean_query.rb
|
103
|
+
- lib/ferret/search/field_sorted_hit_queue.rb
|
104
|
+
- lib/ferret/search/conjunction_scorer.rb
|
105
|
+
- lib/ferret/search/top_docs.rb
|
106
|
+
- lib/ferret/search/req_opt_sum_scorer.rb
|
107
|
+
- lib/ferret/search/boolean_clause.rb
|
108
|
+
- lib/ferret/search/score_doc_comparator.rb
|
109
|
+
- lib/ferret/search/req_excl_scorer.rb
|
110
|
+
- lib/ferret/search/explanation.rb
|
111
|
+
- lib/ferret/search/index_searcher.rb
|
112
|
+
- lib/ferret/search/term_scorer.rb
|
113
|
+
- lib/ferret/search/filter.rb
|
114
|
+
- lib/ferret/search/similarity.rb
|
115
|
+
- lib/ferret/search/fuzzy_term_enum.rb
|
116
|
+
- lib/ferret/search/sort_field.rb
|
117
|
+
- lib/ferret/search/hit_collector.rb
|
118
|
+
- lib/ferret/search/term_query.rb
|
119
|
+
- lib/ferret/search/scorer.rb
|
120
|
+
- lib/ferret/search/score_doc.rb
|
121
|
+
- lib/ferret/search/prefix_query.rb
|
122
|
+
- lib/ferret/search/fuzzy_query.rb
|
123
|
+
- lib/ferret/search/spans.rb
|
124
|
+
- lib/ferret/search/caching_wrapper_filter.rb
|
125
|
+
- lib/ferret/search/filtered_term_enum.rb
|
126
|
+
- lib/ferret/search/multi_term_query.rb
|
127
|
+
- lib/ferret/search/query_filter.rb
|
128
|
+
- lib/ferret/search/wildcard_query.rb
|
129
|
+
- lib/ferret/search/wildcard_term_enum.rb
|
130
|
+
- lib/ferret/search/match_all_docs_query.rb
|
131
|
+
- lib/ferret/search/phrase_query.rb
|
132
|
+
- lib/ferret/search/exact_phrase_scorer.rb
|
133
|
+
- lib/ferret/search/sloppy_phrase_scorer.rb
|
134
|
+
- lib/ferret/search/phrase_positions.rb
|
135
|
+
- lib/ferret/search/phrase_scorer.rb
|
136
|
+
- lib/ferret/search/range_query.rb
|
137
|
+
- lib/ferret/search/multi_phrase_query.rb
|
138
|
+
- lib/ferret/search/filtered_query.rb
|
139
|
+
- lib/ferret/search/sort_comparator.rb
|
140
|
+
- lib/ferret/search/range_filter.rb
|
141
|
+
- lib/ferret/search/field_cache.rb
|
142
|
+
- lib/ferret/search/spans/near_spans_enum.rb
|
143
|
+
- lib/ferret/search/spans/span_first_query.rb
|
144
|
+
- lib/ferret/search/spans/spans_enum.rb
|
145
|
+
- lib/ferret/search/spans/span_not_query.rb
|
146
|
+
- lib/ferret/search/spans/span_near_query.rb
|
147
|
+
- lib/ferret/search/spans/span_or_query.rb
|
148
|
+
- lib/ferret/search/spans/span_term_query.rb
|
149
|
+
- lib/ferret/search/spans/span_query.rb
|
150
|
+
- lib/ferret/search/spans/span_scorer.rb
|
151
|
+
- lib/ferret/search/spans/span_weight.rb
|
152
|
+
- lib/ferret/query_parser/query_parser.tab.rb
|
153
|
+
- lib/ferret/stemmers/porter_stemmer.rb
|
154
|
+
- lib/ferret/store/index_io.rb
|
155
|
+
- lib/ferret/store/directory.rb
|
156
|
+
- lib/ferret/store/buffered_index_io.rb
|
157
|
+
- lib/ferret/store/fs_store.rb
|
158
|
+
- lib/ferret/store/ram_store.rb
|
159
|
+
- lib/ferret/utils/priority_queue.rb
|
160
|
+
- lib/ferret/utils/bit_vector.rb
|
161
|
+
- lib/ferret/utils/parameter.rb
|
162
|
+
- lib/ferret/utils/weak_key_hash.rb
|
163
|
+
- lib/ferret/utils/string_helper.rb
|
164
|
+
- lib/ferret/utils/number_tools.rb
|
165
|
+
- lib/ferret/utils/date_tools.rb
|
166
|
+
- test/test_helper.rb
|
167
|
+
- test/test_all.rb
|
168
|
+
- test/unit/ts_document.rb
|
169
|
+
- test/unit/ts_index.rb
|
170
|
+
- test/unit/ts_store.rb
|
171
|
+
- test/unit/ts_analysis.rb
|
172
|
+
- test/unit/ts_utils.rb
|
173
|
+
- test/unit/ts_search.rb
|
174
|
+
- test/unit/ts_query_parser.rb
|
175
|
+
- test/unit/utils/tc_bit_vector.rb
|
176
|
+
- test/unit/utils/tc_string_helper.rb
|
177
|
+
- test/unit/utils/tc_priority_queue.rb
|
178
|
+
- test/unit/utils/tc_number_tools.rb
|
179
|
+
- test/unit/utils/tc_date_tools.rb
|
180
|
+
- test/unit/utils/tc_parameter.rb
|
181
|
+
- test/unit/utils/tc_weak_key_hash.rb
|
182
|
+
- test/unit/analysis/tc_lower_case_tokenizer.rb
|
183
|
+
- test/unit/analysis/tc_lower_case_filter.rb
|
184
|
+
- test/unit/analysis/tc_porter_stem_filter.rb
|
185
|
+
- test/unit/analysis/tc_letter_tokenizer.rb
|
186
|
+
- test/unit/analysis/tc_standard_tokenizer.rb
|
187
|
+
- test/unit/analysis/tc_stop_analyzer.rb
|
188
|
+
- test/unit/analysis/tc_stop_filter.rb
|
189
|
+
- test/unit/analysis/tc_word_list_loader.rb
|
190
|
+
- test/unit/analysis/tc_per_field_analyzer_wrapper.rb
|
191
|
+
- test/unit/analysis/tc_white_space_analyzer.rb
|
192
|
+
- test/unit/analysis/tc_analyzer.rb
|
193
|
+
- test/unit/analysis/tc_standard_analyzer.rb
|
194
|
+
- test/unit/analysis/tc_white_space_tokenizer.rb
|
195
|
+
- test/unit/index/tc_segment_term_docs.rb
|
196
|
+
- test/unit/index/tc_term_infos_io.rb
|
197
|
+
- test/unit/index/tc_fields_io.rb
|
198
|
+
- test/unit/index/tc_term_buffer.rb
|
199
|
+
- test/unit/index/tc_segment_infos.rb
|
200
|
+
- test/unit/index/tc_segment_term_vector.rb
|
201
|
+
- test/unit/index/tc_term_vectors_io.rb
|
202
|
+
- test/unit/index/tc_index_writer.rb
|
203
|
+
- test/unit/index/tc_term.rb
|
204
|
+
- test/unit/index/th_doc.rb
|
205
|
+
- test/unit/index/tc_compound_file_io.rb
|
206
|
+
- test/unit/index/tc_term_vector_offset_info.rb
|
207
|
+
- test/unit/index/tc_segment_term_enum.rb
|
208
|
+
- test/unit/index/tc_field_infos.rb
|
209
|
+
- test/unit/index/tc_term_info.rb
|
210
|
+
- test/unit/index/tc_index.rb
|
211
|
+
- test/unit/index/tc_index_reader.rb
|
212
|
+
- test/unit/index/tc_multiple_term_doc_pos_enum.rb
|
213
|
+
- test/unit/store/tc_ram_store.rb
|
214
|
+
- test/unit/store/tm_store_lock.rb
|
215
|
+
- test/unit/store/tc_fs_store.rb
|
216
|
+
- test/unit/store/tm_store.rb
|
217
|
+
- test/unit/document/tc_document.rb
|
218
|
+
- test/unit/document/tc_field.rb
|
219
|
+
- test/unit/query_parser/tc_query_parser.rb
|
220
|
+
- test/unit/search/tc_sort.rb
|
221
|
+
- test/unit/search/tc_similarity.rb
|
222
|
+
- test/unit/search/tc_index_searcher.rb
|
223
|
+
- test/unit/search/tc_fuzzy_query.rb
|
224
|
+
- test/unit/search/tc_search_and_sort.rb
|
225
|
+
- test/unit/search/tc_sort_field.rb
|
226
|
+
- test/unit/search/tc_filter.rb
|
227
|
+
- test/unit/search/tc_spans.rb
|
228
|
+
- test/longrunning/tc_numbertools.rb
|
229
|
+
- test/longrunning/tm_store.rb
|
230
|
+
- test/benchmark/tb_rw_vint.rb
|
231
|
+
- test/benchmark/tb_ram_store.rb
|
232
|
+
- rake_utils/code_statistics.rb
|
233
|
+
test_files: []
|
234
|
+
rdoc_options:
|
235
|
+
- "--title"
|
236
|
+
- "Ferret -- Ruby Indexer"
|
237
|
+
- "--main"
|
238
|
+
- README
|
239
|
+
- "--line-numbers"
|
240
|
+
- TUTORIAL
|
241
|
+
- TODO
|
242
|
+
extra_rdoc_files:
|
243
|
+
- README
|
244
|
+
- TODO
|
245
|
+
- TUTORIAL
|
246
|
+
- MIT-LICENSE
|
247
|
+
executables: []
|
248
|
+
extensions:
|
249
|
+
- ext/extconf.rb
|
250
|
+
requirements: []
|
251
|
+
dependencies: []
|