sphinx 0.9.10.2122 → 2.1.1.3711
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -2
- data/.travis.yml +8 -0
- data/CHANGELOG.md +71 -0
- data/Gemfile +4 -0
- data/README.md +221 -0
- data/Rakefile +40 -35
- data/lib/sphinx.rb +3 -8
- data/lib/sphinx/client.rb +223 -70
- data/lib/sphinx/constants.rb +23 -8
- data/lib/sphinx/response.rb +6 -6
- data/lib/sphinx/timeout.rb +1 -2
- data/lib/sphinx/version.rb +3 -0
- data/spec/client_response_spec.rb +77 -64
- data/spec/client_spec.rb +68 -31
- data/spec/client_validations_spec.rb +61 -7
- data/spec/fixtures/requests/default_search.dat +0 -0
- data/spec/fixtures/requests/default_search_index.dat +0 -0
- data/spec/fixtures/requests/excerpt_custom.dat +0 -0
- data/spec/fixtures/requests/excerpt_default.dat +0 -0
- data/spec/fixtures/requests/excerpt_flags.dat +0 -0
- data/spec/fixtures/requests/field_weights.dat +0 -0
- data/spec/fixtures/requests/filter.dat +0 -0
- data/spec/fixtures/requests/filter_exclude.dat +0 -0
- data/spec/fixtures/requests/filter_float_range.dat +0 -0
- data/spec/fixtures/requests/filter_float_range_exclude.dat +0 -0
- data/spec/fixtures/requests/filter_range.dat +0 -0
- data/spec/fixtures/requests/filter_range_exclude.dat +0 -0
- data/spec/fixtures/requests/filter_range_int64.dat +0 -0
- data/spec/fixtures/requests/filter_ranges.dat +0 -0
- data/spec/fixtures/requests/filters.dat +0 -0
- data/spec/fixtures/requests/filters_different.dat +0 -0
- data/spec/fixtures/requests/geo_anchor.dat +0 -0
- data/spec/fixtures/requests/group_by_attr.dat +0 -0
- data/spec/fixtures/requests/group_by_attrpair.dat +0 -0
- data/spec/fixtures/requests/group_by_day.dat +0 -0
- data/spec/fixtures/requests/group_by_day_sort.dat +0 -0
- data/spec/fixtures/requests/group_by_month.dat +0 -0
- data/spec/fixtures/requests/group_by_week.dat +0 -0
- data/spec/fixtures/requests/group_by_year.dat +0 -0
- data/spec/fixtures/requests/group_distinct.dat +0 -0
- data/spec/fixtures/requests/id_range.dat +0 -0
- data/spec/fixtures/requests/id_range64.dat +0 -0
- data/spec/fixtures/requests/index_weights.dat +0 -0
- data/spec/fixtures/requests/keywords.dat +0 -0
- data/spec/fixtures/requests/limits.dat +0 -0
- data/spec/fixtures/requests/limits_cutoff.dat +0 -0
- data/spec/fixtures/requests/limits_max.dat +0 -0
- data/spec/fixtures/requests/limits_max_cutoff.dat +0 -0
- data/spec/fixtures/requests/match_all.dat +0 -0
- data/spec/fixtures/requests/match_any.dat +0 -0
- data/spec/fixtures/requests/match_boolean.dat +0 -0
- data/spec/fixtures/requests/match_extended.dat +0 -0
- data/spec/fixtures/requests/match_extended2.dat +0 -0
- data/spec/fixtures/requests/match_fullscan.dat +0 -0
- data/spec/fixtures/requests/match_phrase.dat +0 -0
- data/spec/fixtures/requests/max_query_time.dat +0 -0
- data/spec/fixtures/requests/miltiple_queries.dat +0 -0
- data/spec/fixtures/requests/outer_select.dat +0 -0
- data/spec/fixtures/requests/override.dat +0 -0
- data/spec/fixtures/{default_search.php → requests/php/default_search.php} +1 -1
- data/spec/fixtures/{default_search_index.php → requests/php/default_search_index.php} +1 -1
- data/spec/fixtures/{excerpt_custom.php → requests/php/excerpt_custom.php} +1 -1
- data/spec/fixtures/{excerpt_default.php → requests/php/excerpt_default.php} +1 -1
- data/spec/fixtures/{excerpt_flags.php → requests/php/excerpt_flags.php} +1 -1
- data/spec/fixtures/{field_weights.php → requests/php/field_weights.php} +1 -1
- data/spec/fixtures/{filter.php → requests/php/filter.php} +1 -1
- data/spec/fixtures/{filter_exclude.php → requests/php/filter_exclude.php} +1 -1
- data/spec/fixtures/{filter_float_range.php → requests/php/filter_float_range.php} +1 -1
- data/spec/fixtures/{filter_float_range_exclude.php → requests/php/filter_float_range_exclude.php} +1 -1
- data/spec/fixtures/{filter_range.php → requests/php/filter_range.php} +1 -1
- data/spec/fixtures/{filter_range_exclude.php → requests/php/filter_range_exclude.php} +1 -1
- data/spec/fixtures/{filter_range_int64.php → requests/php/filter_range_int64.php} +1 -1
- data/spec/fixtures/{filter_ranges.php → requests/php/filter_ranges.php} +1 -1
- data/spec/fixtures/{filters.php → requests/php/filters.php} +1 -1
- data/spec/fixtures/{filters_different.php → requests/php/filters_different.php} +1 -1
- data/spec/fixtures/{geo_anchor.php → requests/php/geo_anchor.php} +1 -1
- data/spec/fixtures/{group_by_attr.php → requests/php/group_by_attr.php} +1 -1
- data/spec/fixtures/{group_by_attrpair.php → requests/php/group_by_attrpair.php} +1 -1
- data/spec/fixtures/{group_by_day.php → requests/php/group_by_day.php} +1 -1
- data/spec/fixtures/{group_by_day_sort.php → requests/php/group_by_day_sort.php} +1 -1
- data/spec/fixtures/{group_by_month.php → requests/php/group_by_month.php} +1 -1
- data/spec/fixtures/{group_by_week.php → requests/php/group_by_week.php} +1 -1
- data/spec/fixtures/{group_by_year.php → requests/php/group_by_year.php} +1 -1
- data/spec/fixtures/{group_distinct.php → requests/php/group_distinct.php} +1 -1
- data/spec/fixtures/{id_range.php → requests/php/id_range.php} +1 -1
- data/spec/fixtures/{id_range64.php → requests/php/id_range64.php} +1 -1
- data/spec/fixtures/{index_weights.php → requests/php/index_weights.php} +1 -1
- data/spec/fixtures/{keywords.php → requests/php/keywords.php} +1 -1
- data/spec/fixtures/{limits.php → requests/php/limits.php} +1 -1
- data/spec/fixtures/{limits_cutoff.php → requests/php/limits_cutoff.php} +1 -1
- data/spec/fixtures/{limits_max.php → requests/php/limits_max.php} +1 -1
- data/spec/fixtures/{limits_max_cutoff.php → requests/php/limits_max_cutoff.php} +1 -1
- data/spec/fixtures/{match_all.php → requests/php/match_all.php} +1 -1
- data/spec/fixtures/{match_any.php → requests/php/match_any.php} +1 -1
- data/spec/fixtures/{match_boolean.php → requests/php/match_boolean.php} +1 -1
- data/spec/fixtures/{match_extended.php → requests/php/match_extended.php} +1 -1
- data/spec/fixtures/{match_extended2.php → requests/php/match_extended2.php} +1 -1
- data/spec/fixtures/{match_fullscan.php → requests/php/match_fullscan.php} +1 -1
- data/spec/fixtures/{match_phrase.php → requests/php/match_phrase.php} +1 -1
- data/spec/fixtures/{max_query_time.php → requests/php/max_query_time.php} +1 -1
- data/spec/fixtures/{miltiple_queries.php → requests/php/miltiple_queries.php} +1 -1
- data/spec/fixtures/requests/php/outer_select.php +9 -0
- data/spec/fixtures/{set_override.php → requests/php/override.php} +1 -1
- data/spec/fixtures/requests/php/query_flag.php +13 -0
- data/spec/fixtures/requests/php/query_flag_after_reset.php +19 -0
- data/spec/fixtures/{ranking_bm25.php → requests/php/ranking_bm25.php} +1 -1
- data/spec/fixtures/requests/php/ranking_expr.php +9 -0
- data/spec/fixtures/{ranking_fieldmask.php → requests/php/ranking_fieldmask.php} +1 -1
- data/spec/fixtures/{ranking_matchany.php → requests/php/ranking_matchany.php} +1 -1
- data/spec/fixtures/{ranking_none.php → requests/php/ranking_none.php} +1 -1
- data/spec/fixtures/{ranking_proximity.php → requests/php/ranking_proximity.php} +1 -1
- data/spec/fixtures/{ranking_proximity_bm25.php → requests/php/ranking_proximity_bm25.php} +1 -1
- data/spec/fixtures/{ranking_sph04.php → requests/php/ranking_sph04.php} +1 -1
- data/spec/fixtures/{ranking_wordcount.php → requests/php/ranking_wordcount.php} +1 -1
- data/spec/fixtures/{retries.php → requests/php/retries.php} +1 -1
- data/spec/fixtures/{retries_delay.php → requests/php/retries_delay.php} +1 -1
- data/spec/fixtures/{select.php → requests/php/select.php} +1 -1
- data/spec/fixtures/{sort_attr_asc.php → requests/php/sort_attr_asc.php} +1 -1
- data/spec/fixtures/{sort_attr_desc.php → requests/php/sort_attr_desc.php} +1 -1
- data/spec/fixtures/{sort_expr.php → requests/php/sort_expr.php} +1 -1
- data/spec/fixtures/{sort_extended.php → requests/php/sort_extended.php} +1 -1
- data/spec/fixtures/{sort_relevance.php → requests/php/sort_relevance.php} +1 -1
- data/spec/fixtures/{sort_time_segments.php → requests/php/sort_time_segments.php} +1 -1
- data/spec/fixtures/{update_attributes.php → requests/php/update_attributes.php} +1 -1
- data/spec/fixtures/{update_attributes_mva.php → requests/php/update_attributes_mva.php} +1 -1
- data/spec/fixtures/{weights.php → requests/php/weights.php} +1 -1
- data/spec/fixtures/requests/query_flag.dat +0 -0
- data/spec/fixtures/requests/query_flag_after_reset.dat +0 -0
- data/spec/fixtures/requests/ranking_bm25.dat +0 -0
- data/spec/fixtures/requests/ranking_expr.dat +0 -0
- data/spec/fixtures/requests/ranking_fieldmask.dat +0 -0
- data/spec/fixtures/requests/ranking_matchany.dat +0 -0
- data/spec/fixtures/requests/ranking_none.dat +0 -0
- data/spec/fixtures/requests/ranking_proximity.dat +0 -0
- data/spec/fixtures/requests/ranking_proximity_bm25.dat +0 -0
- data/spec/fixtures/requests/ranking_sph04.dat +0 -0
- data/spec/fixtures/requests/ranking_wordcount.dat +0 -0
- data/spec/fixtures/requests/retries.dat +0 -0
- data/spec/fixtures/requests/retries_delay.dat +0 -0
- data/spec/fixtures/requests/select.dat +0 -0
- data/spec/fixtures/requests/sort_attr_asc.dat +0 -0
- data/spec/fixtures/requests/sort_attr_desc.dat +0 -0
- data/spec/fixtures/requests/sort_expr.dat +0 -0
- data/spec/fixtures/requests/sort_extended.dat +0 -0
- data/spec/fixtures/requests/sort_relevance.dat +0 -0
- data/spec/fixtures/requests/sort_time_segments.dat +0 -0
- data/spec/fixtures/requests/update_attributes.dat +0 -0
- data/spec/fixtures/requests/update_attributes_mva.dat +0 -0
- data/spec/fixtures/requests/weights.dat +0 -0
- data/spec/fixtures/responses/build_excerpts.dat +0 -0
- data/spec/fixtures/responses/build_keywords.dat +0 -0
- data/spec/fixtures/responses/flush_attributes.dat +0 -0
- data/spec/fixtures/responses/flush_attrs.dat +2 -0
- data/spec/fixtures/responses/open.dat +0 -0
- data/spec/fixtures/responses/open_twice.dat +0 -0
- data/spec/fixtures/responses/php/build_excerpts.php +8 -0
- data/spec/fixtures/responses/php/build_keywords.php +8 -0
- data/spec/fixtures/responses/php/flush_attributes.php +8 -0
- data/spec/fixtures/responses/php/open.php +8 -0
- data/spec/fixtures/responses/php/open_twice.php +9 -0
- data/spec/fixtures/responses/php/query.php +8 -0
- data/spec/fixtures/responses/php/query_error.php +8 -0
- data/spec/fixtures/responses/php/query_id64.php +8 -0
- data/spec/fixtures/responses/php/run_queries.php +10 -0
- data/spec/fixtures/responses/php/run_queries_error.php +9 -0
- data/spec/fixtures/responses/php/status.php +8 -0
- data/spec/fixtures/responses/php/update_attributes.php +8 -0
- data/spec/fixtures/responses/php/update_attributes_mva.php +8 -0
- data/spec/fixtures/responses/query.dat +0 -0
- data/spec/fixtures/responses/query_error.dat +0 -0
- data/spec/fixtures/responses/query_id64.dat +0 -0
- data/spec/fixtures/responses/run_queries.dat +0 -0
- data/spec/fixtures/responses/run_queries_error.dat +0 -0
- data/spec/fixtures/responses/status.dat +0 -0
- data/spec/fixtures/responses/update_attributes.dat +0 -0
- data/spec/fixtures/responses/update_attributes_mva.dat +0 -0
- data/spec/fixtures/sphinxapi.php +217 -45
- data/spec/spec_helper.rb +18 -3
- data/spec/sphinx/sphinx-id64.conf +6 -6
- data/spec/sphinx/sphinx.conf +6 -6
- data/sphinx.gemspec +19 -121
- metadata +268 -105
- data/README.rdoc +0 -243
- data/VERSION.yml +0 -5
- data/init.rb +0 -1
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,26 @@
|
|
1
|
-
require
|
1
|
+
require 'bundler/setup'
|
2
|
+
require 'sphinx'
|
3
|
+
require 'stringio'
|
2
4
|
|
3
5
|
# Helper exception class to omit real dialogue between client and server
|
4
6
|
class SphinxSpecError < StandardError; end
|
5
7
|
|
6
8
|
# Runs PHP fixture to get request dump
|
7
|
-
def sphinx_fixture(name)
|
8
|
-
|
9
|
+
def sphinx_fixture(name, type = :request)
|
10
|
+
File.open(File.join(File.dirname(__FILE__), 'fixtures', "#{type}s", "#{name}.dat"), 'rb') do |f|
|
11
|
+
f.read
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
class SphinxFakeSocket
|
16
|
+
def initialize(data = '', mode = 'rb')
|
17
|
+
@sock = StringIO.new(data, mode)
|
18
|
+
end
|
19
|
+
|
20
|
+
def method_missing(method, *args)
|
21
|
+
@sock.__send__(method, *args)
|
22
|
+
rescue IOError
|
23
|
+
end
|
9
24
|
end
|
10
25
|
|
11
26
|
def sphinx_create_client
|
@@ -33,7 +33,7 @@ source src2
|
|
33
33
|
index test1
|
34
34
|
{
|
35
35
|
source = src1
|
36
|
-
path = /opt/sphinx-
|
36
|
+
path = /opt/sphinx-2.1.1-id64/var/data/test1
|
37
37
|
docinfo = extern
|
38
38
|
morphology = none
|
39
39
|
stopwords =
|
@@ -43,7 +43,7 @@ index test1
|
|
43
43
|
index test2
|
44
44
|
{
|
45
45
|
source = src2
|
46
|
-
path = /opt/sphinx-
|
46
|
+
path = /opt/sphinx-2.1.1-id64/var/data/test2
|
47
47
|
docinfo = extern
|
48
48
|
morphology = none
|
49
49
|
stopwords =
|
@@ -57,11 +57,11 @@ indexer
|
|
57
57
|
|
58
58
|
searchd
|
59
59
|
{
|
60
|
-
|
61
|
-
log = /opt/sphinx-
|
62
|
-
query_log = /opt/sphinx-
|
60
|
+
listen = 0.0.0.0:9312
|
61
|
+
log = /opt/sphinx-2.1.1-id64/var/log/searchd.log
|
62
|
+
query_log = /opt/sphinx-2.1.1-id64/var/log/query.log
|
63
63
|
read_timeout = 5
|
64
64
|
max_children = 30
|
65
|
-
pid_file = /opt/sphinx-
|
65
|
+
pid_file = /opt/sphinx-2.1.1-id64/var/log/searchd.pid
|
66
66
|
max_matches = 1000
|
67
67
|
}
|
data/spec/sphinx/sphinx.conf
CHANGED
@@ -33,7 +33,7 @@ source src2
|
|
33
33
|
index test1
|
34
34
|
{
|
35
35
|
source = src1
|
36
|
-
path = /opt/sphinx-
|
36
|
+
path = /opt/sphinx-2.1.1/var/data/test1
|
37
37
|
docinfo = extern
|
38
38
|
morphology = none
|
39
39
|
stopwords =
|
@@ -43,7 +43,7 @@ index test1
|
|
43
43
|
index test2
|
44
44
|
{
|
45
45
|
source = src2
|
46
|
-
path = /opt/sphinx-
|
46
|
+
path = /opt/sphinx-2.1.1/var/data/test2
|
47
47
|
docinfo = extern
|
48
48
|
morphology = none
|
49
49
|
stopwords =
|
@@ -57,11 +57,11 @@ indexer
|
|
57
57
|
|
58
58
|
searchd
|
59
59
|
{
|
60
|
-
|
61
|
-
log = /opt/sphinx-
|
62
|
-
query_log = /opt/sphinx-
|
60
|
+
listen = 0.0.0.0:9312
|
61
|
+
log = /opt/sphinx-2.1.1/var/log/searchd.log
|
62
|
+
query_log = /opt/sphinx-2.1.1/var/log/query.log
|
63
63
|
read_timeout = 5
|
64
64
|
max_children = 30
|
65
|
-
pid_file = /opt/sphinx-
|
65
|
+
pid_file = /opt/sphinx-2.1.1/var/log/searchd.pid
|
66
66
|
max_matches = 1000
|
67
67
|
}
|
data/sphinx.gemspec
CHANGED
@@ -1,128 +1,26 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
3
|
+
require 'sphinx/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
9
|
-
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
6
|
+
s.name = 'sphinx'
|
7
|
+
s.version = Sphinx::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ['Dmytro Shteflyuk']
|
10
|
+
s.email = ['kpumuk@kpumuk.info']
|
11
|
+
s.homepage = 'http://github.com/kpumuk/sphinx'
|
12
|
+
s.summary = %q{Sphinx Client API for Ruby}
|
13
13
|
s.description = %q{An easy interface to Sphinx standalone full-text search engine. It is implemented as plugin for Ruby on Rails, but can be easily used as standalone library.}
|
14
|
-
s.email = %q{kpumuk@kpumuk.info}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"README.rdoc"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
".gitignore",
|
20
|
-
"README.rdoc",
|
21
|
-
"Rakefile",
|
22
|
-
"VERSION.yml",
|
23
|
-
"init.rb",
|
24
|
-
"lib/sphinx.rb",
|
25
|
-
"lib/sphinx/buffered_io.rb",
|
26
|
-
"lib/sphinx/client.rb",
|
27
|
-
"lib/sphinx/constants.rb",
|
28
|
-
"lib/sphinx/indifferent_access.rb",
|
29
|
-
"lib/sphinx/request.rb",
|
30
|
-
"lib/sphinx/response.rb",
|
31
|
-
"lib/sphinx/server.rb",
|
32
|
-
"lib/sphinx/timeout.rb",
|
33
|
-
"spec/client_response_spec.rb",
|
34
|
-
"spec/client_spec.rb",
|
35
|
-
"spec/client_validations_spec.rb",
|
36
|
-
"spec/fixtures/default_search.php",
|
37
|
-
"spec/fixtures/default_search_index.php",
|
38
|
-
"spec/fixtures/excerpt_custom.php",
|
39
|
-
"spec/fixtures/excerpt_default.php",
|
40
|
-
"spec/fixtures/excerpt_flags.php",
|
41
|
-
"spec/fixtures/field_weights.php",
|
42
|
-
"spec/fixtures/filter.php",
|
43
|
-
"spec/fixtures/filter_exclude.php",
|
44
|
-
"spec/fixtures/filter_float_range.php",
|
45
|
-
"spec/fixtures/filter_float_range_exclude.php",
|
46
|
-
"spec/fixtures/filter_range.php",
|
47
|
-
"spec/fixtures/filter_range_exclude.php",
|
48
|
-
"spec/fixtures/filter_range_int64.php",
|
49
|
-
"spec/fixtures/filter_ranges.php",
|
50
|
-
"spec/fixtures/filters.php",
|
51
|
-
"spec/fixtures/filters_different.php",
|
52
|
-
"spec/fixtures/geo_anchor.php",
|
53
|
-
"spec/fixtures/group_by_attr.php",
|
54
|
-
"spec/fixtures/group_by_attrpair.php",
|
55
|
-
"spec/fixtures/group_by_day.php",
|
56
|
-
"spec/fixtures/group_by_day_sort.php",
|
57
|
-
"spec/fixtures/group_by_month.php",
|
58
|
-
"spec/fixtures/group_by_week.php",
|
59
|
-
"spec/fixtures/group_by_year.php",
|
60
|
-
"spec/fixtures/group_distinct.php",
|
61
|
-
"spec/fixtures/id_range.php",
|
62
|
-
"spec/fixtures/id_range64.php",
|
63
|
-
"spec/fixtures/index_weights.php",
|
64
|
-
"spec/fixtures/keywords.php",
|
65
|
-
"spec/fixtures/limits.php",
|
66
|
-
"spec/fixtures/limits_cutoff.php",
|
67
|
-
"spec/fixtures/limits_max.php",
|
68
|
-
"spec/fixtures/limits_max_cutoff.php",
|
69
|
-
"spec/fixtures/match_all.php",
|
70
|
-
"spec/fixtures/match_any.php",
|
71
|
-
"spec/fixtures/match_boolean.php",
|
72
|
-
"spec/fixtures/match_extended.php",
|
73
|
-
"spec/fixtures/match_extended2.php",
|
74
|
-
"spec/fixtures/match_fullscan.php",
|
75
|
-
"spec/fixtures/match_phrase.php",
|
76
|
-
"spec/fixtures/max_query_time.php",
|
77
|
-
"spec/fixtures/miltiple_queries.php",
|
78
|
-
"spec/fixtures/ranking_bm25.php",
|
79
|
-
"spec/fixtures/ranking_fieldmask.php",
|
80
|
-
"spec/fixtures/ranking_matchany.php",
|
81
|
-
"spec/fixtures/ranking_none.php",
|
82
|
-
"spec/fixtures/ranking_proximity.php",
|
83
|
-
"spec/fixtures/ranking_proximity_bm25.php",
|
84
|
-
"spec/fixtures/ranking_sph04.php",
|
85
|
-
"spec/fixtures/ranking_wordcount.php",
|
86
|
-
"spec/fixtures/retries.php",
|
87
|
-
"spec/fixtures/retries_delay.php",
|
88
|
-
"spec/fixtures/select.php",
|
89
|
-
"spec/fixtures/set_override.php",
|
90
|
-
"spec/fixtures/sort_attr_asc.php",
|
91
|
-
"spec/fixtures/sort_attr_desc.php",
|
92
|
-
"spec/fixtures/sort_expr.php",
|
93
|
-
"spec/fixtures/sort_extended.php",
|
94
|
-
"spec/fixtures/sort_relevance.php",
|
95
|
-
"spec/fixtures/sort_time_segments.php",
|
96
|
-
"spec/fixtures/sphinxapi.php",
|
97
|
-
"spec/fixtures/update_attributes.php",
|
98
|
-
"spec/fixtures/update_attributes_mva.php",
|
99
|
-
"spec/fixtures/weights.php",
|
100
|
-
"spec/spec_helper.rb",
|
101
|
-
"spec/sphinx/sphinx-id64.conf",
|
102
|
-
"spec/sphinx/sphinx.conf",
|
103
|
-
"spec/sphinx/sphinx_test.sql",
|
104
|
-
"sphinx.gemspec"
|
105
|
-
]
|
106
|
-
s.homepage = %q{http://github.com/kpumuk/sphinx}
|
107
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
108
|
-
s.require_paths = ["lib"]
|
109
|
-
s.rubygems_version = %q{1.3.5}
|
110
|
-
s.summary = %q{Sphinx Client API for Ruby}
|
111
|
-
s.test_files = [
|
112
|
-
"spec/client_response_spec.rb",
|
113
|
-
"spec/client_spec.rb",
|
114
|
-
"spec/client_validations_spec.rb",
|
115
|
-
"spec/spec_helper.rb"
|
116
|
-
]
|
117
14
|
|
118
|
-
|
119
|
-
|
120
|
-
|
15
|
+
s.add_development_dependency 'rake'
|
16
|
+
s.add_development_dependency 'rspec'
|
17
|
+
s.add_development_dependency 'yard'
|
18
|
+
s.add_development_dependency 'redcarpet'
|
121
19
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
20
|
+
s.files = `git ls-files`.split("\n")
|
21
|
+
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
22
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
23
|
+
s.extra_rdoc_files = ['README.md', 'CHANGELOG.md']
|
24
|
+
s.rdoc_options = ['--charset=UTF-8']
|
25
|
+
s.require_paths = ['lib']
|
127
26
|
end
|
128
|
-
|
metadata
CHANGED
@@ -1,32 +1,96 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sphinx
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.1.1.3711
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Dmytro Shteflyuk
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
date: 2013-03-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: yard
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: redcarpet
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: An easy interface to Sphinx standalone full-text search engine. It is
|
79
|
+
implemented as plugin for Ruby on Rails, but can be easily used as standalone library.
|
80
|
+
email:
|
81
|
+
- kpumuk@kpumuk.info
|
18
82
|
executables: []
|
19
|
-
|
20
83
|
extensions: []
|
21
|
-
|
22
|
-
|
23
|
-
-
|
24
|
-
files:
|
84
|
+
extra_rdoc_files:
|
85
|
+
- README.md
|
86
|
+
- CHANGELOG.md
|
87
|
+
files:
|
25
88
|
- .gitignore
|
26
|
-
-
|
89
|
+
- .travis.yml
|
90
|
+
- CHANGELOG.md
|
91
|
+
- Gemfile
|
92
|
+
- README.md
|
27
93
|
- Rakefile
|
28
|
-
- VERSION.yml
|
29
|
-
- init.rb
|
30
94
|
- lib/sphinx.rb
|
31
95
|
- lib/sphinx/buffered_io.rb
|
32
96
|
- lib/sphinx/client.rb
|
@@ -36,108 +100,207 @@ files:
|
|
36
100
|
- lib/sphinx/response.rb
|
37
101
|
- lib/sphinx/server.rb
|
38
102
|
- lib/sphinx/timeout.rb
|
103
|
+
- lib/sphinx/version.rb
|
39
104
|
- spec/client_response_spec.rb
|
40
105
|
- spec/client_spec.rb
|
41
106
|
- spec/client_validations_spec.rb
|
42
|
-
- spec/fixtures/default_search.
|
43
|
-
- spec/fixtures/default_search_index.
|
44
|
-
- spec/fixtures/excerpt_custom.
|
45
|
-
- spec/fixtures/excerpt_default.
|
46
|
-
- spec/fixtures/excerpt_flags.
|
47
|
-
- spec/fixtures/field_weights.
|
48
|
-
- spec/fixtures/filter.
|
49
|
-
- spec/fixtures/filter_exclude.
|
50
|
-
- spec/fixtures/filter_float_range.
|
51
|
-
- spec/fixtures/filter_float_range_exclude.
|
52
|
-
- spec/fixtures/filter_range.
|
53
|
-
- spec/fixtures/filter_range_exclude.
|
54
|
-
- spec/fixtures/filter_range_int64.
|
55
|
-
- spec/fixtures/filter_ranges.
|
56
|
-
- spec/fixtures/filters.
|
57
|
-
- spec/fixtures/filters_different.
|
58
|
-
- spec/fixtures/geo_anchor.
|
59
|
-
- spec/fixtures/group_by_attr.
|
60
|
-
- spec/fixtures/group_by_attrpair.
|
61
|
-
- spec/fixtures/group_by_day.
|
62
|
-
- spec/fixtures/group_by_day_sort.
|
63
|
-
- spec/fixtures/group_by_month.
|
64
|
-
- spec/fixtures/group_by_week.
|
65
|
-
- spec/fixtures/group_by_year.
|
66
|
-
- spec/fixtures/group_distinct.
|
67
|
-
- spec/fixtures/id_range.
|
68
|
-
- spec/fixtures/id_range64.
|
69
|
-
- spec/fixtures/index_weights.
|
70
|
-
- spec/fixtures/keywords.
|
71
|
-
- spec/fixtures/limits.
|
72
|
-
- spec/fixtures/limits_cutoff.
|
73
|
-
- spec/fixtures/limits_max.
|
74
|
-
- spec/fixtures/limits_max_cutoff.
|
75
|
-
- spec/fixtures/match_all.
|
76
|
-
- spec/fixtures/match_any.
|
77
|
-
- spec/fixtures/match_boolean.
|
78
|
-
- spec/fixtures/match_extended.
|
79
|
-
- spec/fixtures/match_extended2.
|
80
|
-
- spec/fixtures/match_fullscan.
|
81
|
-
- spec/fixtures/match_phrase.
|
82
|
-
- spec/fixtures/max_query_time.
|
83
|
-
- spec/fixtures/miltiple_queries.
|
84
|
-
- spec/fixtures/
|
85
|
-
- spec/fixtures/
|
86
|
-
- spec/fixtures/
|
87
|
-
- spec/fixtures/
|
88
|
-
- spec/fixtures/
|
89
|
-
- spec/fixtures/
|
90
|
-
- spec/fixtures/
|
91
|
-
- spec/fixtures/
|
92
|
-
- spec/fixtures/
|
93
|
-
- spec/fixtures/
|
94
|
-
- spec/fixtures/
|
95
|
-
- spec/fixtures/
|
96
|
-
- spec/fixtures/
|
97
|
-
- spec/fixtures/
|
98
|
-
- spec/fixtures/
|
99
|
-
- spec/fixtures/
|
100
|
-
- spec/fixtures/
|
101
|
-
- spec/fixtures/
|
107
|
+
- spec/fixtures/requests/default_search.dat
|
108
|
+
- spec/fixtures/requests/default_search_index.dat
|
109
|
+
- spec/fixtures/requests/excerpt_custom.dat
|
110
|
+
- spec/fixtures/requests/excerpt_default.dat
|
111
|
+
- spec/fixtures/requests/excerpt_flags.dat
|
112
|
+
- spec/fixtures/requests/field_weights.dat
|
113
|
+
- spec/fixtures/requests/filter.dat
|
114
|
+
- spec/fixtures/requests/filter_exclude.dat
|
115
|
+
- spec/fixtures/requests/filter_float_range.dat
|
116
|
+
- spec/fixtures/requests/filter_float_range_exclude.dat
|
117
|
+
- spec/fixtures/requests/filter_range.dat
|
118
|
+
- spec/fixtures/requests/filter_range_exclude.dat
|
119
|
+
- spec/fixtures/requests/filter_range_int64.dat
|
120
|
+
- spec/fixtures/requests/filter_ranges.dat
|
121
|
+
- spec/fixtures/requests/filters.dat
|
122
|
+
- spec/fixtures/requests/filters_different.dat
|
123
|
+
- spec/fixtures/requests/geo_anchor.dat
|
124
|
+
- spec/fixtures/requests/group_by_attr.dat
|
125
|
+
- spec/fixtures/requests/group_by_attrpair.dat
|
126
|
+
- spec/fixtures/requests/group_by_day.dat
|
127
|
+
- spec/fixtures/requests/group_by_day_sort.dat
|
128
|
+
- spec/fixtures/requests/group_by_month.dat
|
129
|
+
- spec/fixtures/requests/group_by_week.dat
|
130
|
+
- spec/fixtures/requests/group_by_year.dat
|
131
|
+
- spec/fixtures/requests/group_distinct.dat
|
132
|
+
- spec/fixtures/requests/id_range.dat
|
133
|
+
- spec/fixtures/requests/id_range64.dat
|
134
|
+
- spec/fixtures/requests/index_weights.dat
|
135
|
+
- spec/fixtures/requests/keywords.dat
|
136
|
+
- spec/fixtures/requests/limits.dat
|
137
|
+
- spec/fixtures/requests/limits_cutoff.dat
|
138
|
+
- spec/fixtures/requests/limits_max.dat
|
139
|
+
- spec/fixtures/requests/limits_max_cutoff.dat
|
140
|
+
- spec/fixtures/requests/match_all.dat
|
141
|
+
- spec/fixtures/requests/match_any.dat
|
142
|
+
- spec/fixtures/requests/match_boolean.dat
|
143
|
+
- spec/fixtures/requests/match_extended.dat
|
144
|
+
- spec/fixtures/requests/match_extended2.dat
|
145
|
+
- spec/fixtures/requests/match_fullscan.dat
|
146
|
+
- spec/fixtures/requests/match_phrase.dat
|
147
|
+
- spec/fixtures/requests/max_query_time.dat
|
148
|
+
- spec/fixtures/requests/miltiple_queries.dat
|
149
|
+
- spec/fixtures/requests/outer_select.dat
|
150
|
+
- spec/fixtures/requests/override.dat
|
151
|
+
- spec/fixtures/requests/php/default_search.php
|
152
|
+
- spec/fixtures/requests/php/default_search_index.php
|
153
|
+
- spec/fixtures/requests/php/excerpt_custom.php
|
154
|
+
- spec/fixtures/requests/php/excerpt_default.php
|
155
|
+
- spec/fixtures/requests/php/excerpt_flags.php
|
156
|
+
- spec/fixtures/requests/php/field_weights.php
|
157
|
+
- spec/fixtures/requests/php/filter.php
|
158
|
+
- spec/fixtures/requests/php/filter_exclude.php
|
159
|
+
- spec/fixtures/requests/php/filter_float_range.php
|
160
|
+
- spec/fixtures/requests/php/filter_float_range_exclude.php
|
161
|
+
- spec/fixtures/requests/php/filter_range.php
|
162
|
+
- spec/fixtures/requests/php/filter_range_exclude.php
|
163
|
+
- spec/fixtures/requests/php/filter_range_int64.php
|
164
|
+
- spec/fixtures/requests/php/filter_ranges.php
|
165
|
+
- spec/fixtures/requests/php/filters.php
|
166
|
+
- spec/fixtures/requests/php/filters_different.php
|
167
|
+
- spec/fixtures/requests/php/geo_anchor.php
|
168
|
+
- spec/fixtures/requests/php/group_by_attr.php
|
169
|
+
- spec/fixtures/requests/php/group_by_attrpair.php
|
170
|
+
- spec/fixtures/requests/php/group_by_day.php
|
171
|
+
- spec/fixtures/requests/php/group_by_day_sort.php
|
172
|
+
- spec/fixtures/requests/php/group_by_month.php
|
173
|
+
- spec/fixtures/requests/php/group_by_week.php
|
174
|
+
- spec/fixtures/requests/php/group_by_year.php
|
175
|
+
- spec/fixtures/requests/php/group_distinct.php
|
176
|
+
- spec/fixtures/requests/php/id_range.php
|
177
|
+
- spec/fixtures/requests/php/id_range64.php
|
178
|
+
- spec/fixtures/requests/php/index_weights.php
|
179
|
+
- spec/fixtures/requests/php/keywords.php
|
180
|
+
- spec/fixtures/requests/php/limits.php
|
181
|
+
- spec/fixtures/requests/php/limits_cutoff.php
|
182
|
+
- spec/fixtures/requests/php/limits_max.php
|
183
|
+
- spec/fixtures/requests/php/limits_max_cutoff.php
|
184
|
+
- spec/fixtures/requests/php/match_all.php
|
185
|
+
- spec/fixtures/requests/php/match_any.php
|
186
|
+
- spec/fixtures/requests/php/match_boolean.php
|
187
|
+
- spec/fixtures/requests/php/match_extended.php
|
188
|
+
- spec/fixtures/requests/php/match_extended2.php
|
189
|
+
- spec/fixtures/requests/php/match_fullscan.php
|
190
|
+
- spec/fixtures/requests/php/match_phrase.php
|
191
|
+
- spec/fixtures/requests/php/max_query_time.php
|
192
|
+
- spec/fixtures/requests/php/miltiple_queries.php
|
193
|
+
- spec/fixtures/requests/php/outer_select.php
|
194
|
+
- spec/fixtures/requests/php/override.php
|
195
|
+
- spec/fixtures/requests/php/query_flag.php
|
196
|
+
- spec/fixtures/requests/php/query_flag_after_reset.php
|
197
|
+
- spec/fixtures/requests/php/ranking_bm25.php
|
198
|
+
- spec/fixtures/requests/php/ranking_expr.php
|
199
|
+
- spec/fixtures/requests/php/ranking_fieldmask.php
|
200
|
+
- spec/fixtures/requests/php/ranking_matchany.php
|
201
|
+
- spec/fixtures/requests/php/ranking_none.php
|
202
|
+
- spec/fixtures/requests/php/ranking_proximity.php
|
203
|
+
- spec/fixtures/requests/php/ranking_proximity_bm25.php
|
204
|
+
- spec/fixtures/requests/php/ranking_sph04.php
|
205
|
+
- spec/fixtures/requests/php/ranking_wordcount.php
|
206
|
+
- spec/fixtures/requests/php/retries.php
|
207
|
+
- spec/fixtures/requests/php/retries_delay.php
|
208
|
+
- spec/fixtures/requests/php/select.php
|
209
|
+
- spec/fixtures/requests/php/sort_attr_asc.php
|
210
|
+
- spec/fixtures/requests/php/sort_attr_desc.php
|
211
|
+
- spec/fixtures/requests/php/sort_expr.php
|
212
|
+
- spec/fixtures/requests/php/sort_extended.php
|
213
|
+
- spec/fixtures/requests/php/sort_relevance.php
|
214
|
+
- spec/fixtures/requests/php/sort_time_segments.php
|
215
|
+
- spec/fixtures/requests/php/update_attributes.php
|
216
|
+
- spec/fixtures/requests/php/update_attributes_mva.php
|
217
|
+
- spec/fixtures/requests/php/weights.php
|
218
|
+
- spec/fixtures/requests/query_flag.dat
|
219
|
+
- spec/fixtures/requests/query_flag_after_reset.dat
|
220
|
+
- spec/fixtures/requests/ranking_bm25.dat
|
221
|
+
- spec/fixtures/requests/ranking_expr.dat
|
222
|
+
- spec/fixtures/requests/ranking_fieldmask.dat
|
223
|
+
- spec/fixtures/requests/ranking_matchany.dat
|
224
|
+
- spec/fixtures/requests/ranking_none.dat
|
225
|
+
- spec/fixtures/requests/ranking_proximity.dat
|
226
|
+
- spec/fixtures/requests/ranking_proximity_bm25.dat
|
227
|
+
- spec/fixtures/requests/ranking_sph04.dat
|
228
|
+
- spec/fixtures/requests/ranking_wordcount.dat
|
229
|
+
- spec/fixtures/requests/retries.dat
|
230
|
+
- spec/fixtures/requests/retries_delay.dat
|
231
|
+
- spec/fixtures/requests/select.dat
|
232
|
+
- spec/fixtures/requests/sort_attr_asc.dat
|
233
|
+
- spec/fixtures/requests/sort_attr_desc.dat
|
234
|
+
- spec/fixtures/requests/sort_expr.dat
|
235
|
+
- spec/fixtures/requests/sort_extended.dat
|
236
|
+
- spec/fixtures/requests/sort_relevance.dat
|
237
|
+
- spec/fixtures/requests/sort_time_segments.dat
|
238
|
+
- spec/fixtures/requests/update_attributes.dat
|
239
|
+
- spec/fixtures/requests/update_attributes_mva.dat
|
240
|
+
- spec/fixtures/requests/weights.dat
|
241
|
+
- spec/fixtures/responses/build_excerpts.dat
|
242
|
+
- spec/fixtures/responses/build_keywords.dat
|
243
|
+
- spec/fixtures/responses/flush_attributes.dat
|
244
|
+
- spec/fixtures/responses/flush_attrs.dat
|
245
|
+
- spec/fixtures/responses/open.dat
|
246
|
+
- spec/fixtures/responses/open_twice.dat
|
247
|
+
- spec/fixtures/responses/php/build_excerpts.php
|
248
|
+
- spec/fixtures/responses/php/build_keywords.php
|
249
|
+
- spec/fixtures/responses/php/flush_attributes.php
|
250
|
+
- spec/fixtures/responses/php/open.php
|
251
|
+
- spec/fixtures/responses/php/open_twice.php
|
252
|
+
- spec/fixtures/responses/php/query.php
|
253
|
+
- spec/fixtures/responses/php/query_error.php
|
254
|
+
- spec/fixtures/responses/php/query_id64.php
|
255
|
+
- spec/fixtures/responses/php/run_queries.php
|
256
|
+
- spec/fixtures/responses/php/run_queries_error.php
|
257
|
+
- spec/fixtures/responses/php/status.php
|
258
|
+
- spec/fixtures/responses/php/update_attributes.php
|
259
|
+
- spec/fixtures/responses/php/update_attributes_mva.php
|
260
|
+
- spec/fixtures/responses/query.dat
|
261
|
+
- spec/fixtures/responses/query_error.dat
|
262
|
+
- spec/fixtures/responses/query_id64.dat
|
263
|
+
- spec/fixtures/responses/run_queries.dat
|
264
|
+
- spec/fixtures/responses/run_queries_error.dat
|
265
|
+
- spec/fixtures/responses/status.dat
|
266
|
+
- spec/fixtures/responses/update_attributes.dat
|
267
|
+
- spec/fixtures/responses/update_attributes_mva.dat
|
102
268
|
- spec/fixtures/sphinxapi.php
|
103
|
-
- spec/fixtures/update_attributes.php
|
104
|
-
- spec/fixtures/update_attributes_mva.php
|
105
|
-
- spec/fixtures/weights.php
|
106
269
|
- spec/spec_helper.rb
|
107
270
|
- spec/sphinx/sphinx-id64.conf
|
108
271
|
- spec/sphinx/sphinx.conf
|
109
272
|
- spec/sphinx/sphinx_test.sql
|
110
273
|
- sphinx.gemspec
|
111
|
-
has_rdoc: true
|
112
274
|
homepage: http://github.com/kpumuk/sphinx
|
113
275
|
licenses: []
|
114
|
-
|
115
276
|
post_install_message:
|
116
|
-
rdoc_options:
|
277
|
+
rdoc_options:
|
117
278
|
- --charset=UTF-8
|
118
|
-
require_paths:
|
279
|
+
require_paths:
|
119
280
|
- lib
|
120
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
281
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
282
|
+
none: false
|
283
|
+
requirements:
|
284
|
+
- - ! '>='
|
285
|
+
- !ruby/object:Gem::Version
|
286
|
+
version: '0'
|
287
|
+
segments:
|
288
|
+
- 0
|
289
|
+
hash: 3085923144825273519
|
290
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
291
|
+
none: false
|
292
|
+
requirements:
|
293
|
+
- - ! '>='
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
version: '0'
|
296
|
+
segments:
|
297
|
+
- 0
|
298
|
+
hash: 3085923144825273519
|
132
299
|
requirements: []
|
133
|
-
|
134
300
|
rubyforge_project:
|
135
|
-
rubygems_version: 1.
|
301
|
+
rubygems_version: 1.8.25
|
136
302
|
signing_key:
|
137
303
|
specification_version: 3
|
138
304
|
summary: Sphinx Client API for Ruby
|
139
|
-
test_files:
|
140
|
-
|
141
|
-
- spec/client_spec.rb
|
142
|
-
- spec/client_validations_spec.rb
|
143
|
-
- spec/spec_helper.rb
|
305
|
+
test_files: []
|
306
|
+
has_rdoc:
|