sphinx 0.9.9.2117
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/README.rdoc +243 -0
- data/Rakefile +45 -0
- data/VERSION.yml +5 -0
- data/init.rb +1 -0
- data/lib/sphinx/buffered_io.rb +26 -0
- data/lib/sphinx/client.rb +2426 -0
- data/lib/sphinx/constants.rb +179 -0
- data/lib/sphinx/indifferent_access.rb +152 -0
- data/lib/sphinx/request.rb +121 -0
- data/lib/sphinx/response.rb +71 -0
- data/lib/sphinx/server.rb +170 -0
- data/lib/sphinx/timeout.rb +31 -0
- data/lib/sphinx.rb +51 -0
- data/spec/client_response_spec.rb +170 -0
- data/spec/client_spec.rb +669 -0
- data/spec/client_validations_spec.rb +859 -0
- data/spec/fixtures/default_search.php +8 -0
- data/spec/fixtures/default_search_index.php +8 -0
- data/spec/fixtures/excerpt_custom.php +11 -0
- data/spec/fixtures/excerpt_default.php +8 -0
- data/spec/fixtures/excerpt_flags.php +12 -0
- data/spec/fixtures/field_weights.php +9 -0
- data/spec/fixtures/filter.php +9 -0
- data/spec/fixtures/filter_exclude.php +9 -0
- data/spec/fixtures/filter_float_range.php +9 -0
- data/spec/fixtures/filter_float_range_exclude.php +9 -0
- data/spec/fixtures/filter_range.php +9 -0
- data/spec/fixtures/filter_range_exclude.php +9 -0
- data/spec/fixtures/filter_range_int64.php +10 -0
- data/spec/fixtures/filter_ranges.php +10 -0
- data/spec/fixtures/filters.php +10 -0
- data/spec/fixtures/filters_different.php +13 -0
- data/spec/fixtures/geo_anchor.php +9 -0
- data/spec/fixtures/group_by_attr.php +9 -0
- data/spec/fixtures/group_by_attrpair.php +9 -0
- data/spec/fixtures/group_by_day.php +9 -0
- data/spec/fixtures/group_by_day_sort.php +9 -0
- data/spec/fixtures/group_by_month.php +9 -0
- data/spec/fixtures/group_by_week.php +9 -0
- data/spec/fixtures/group_by_year.php +9 -0
- data/spec/fixtures/group_distinct.php +10 -0
- data/spec/fixtures/id_range.php +9 -0
- data/spec/fixtures/id_range64.php +9 -0
- data/spec/fixtures/index_weights.php +9 -0
- data/spec/fixtures/keywords.php +8 -0
- data/spec/fixtures/limits.php +9 -0
- data/spec/fixtures/limits_cutoff.php +9 -0
- data/spec/fixtures/limits_max.php +9 -0
- data/spec/fixtures/limits_max_cutoff.php +9 -0
- data/spec/fixtures/match_all.php +9 -0
- data/spec/fixtures/match_any.php +9 -0
- data/spec/fixtures/match_boolean.php +9 -0
- data/spec/fixtures/match_extended.php +9 -0
- data/spec/fixtures/match_extended2.php +9 -0
- data/spec/fixtures/match_fullscan.php +9 -0
- data/spec/fixtures/match_phrase.php +9 -0
- data/spec/fixtures/max_query_time.php +9 -0
- data/spec/fixtures/miltiple_queries.php +12 -0
- data/spec/fixtures/ranking_bm25.php +9 -0
- data/spec/fixtures/ranking_fieldmask.php +9 -0
- data/spec/fixtures/ranking_matchany.php +9 -0
- data/spec/fixtures/ranking_none.php +9 -0
- data/spec/fixtures/ranking_proximity.php +9 -0
- data/spec/fixtures/ranking_proximity_bm25.php +9 -0
- data/spec/fixtures/ranking_wordcount.php +9 -0
- data/spec/fixtures/retries.php +9 -0
- data/spec/fixtures/retries_delay.php +9 -0
- data/spec/fixtures/select.php +9 -0
- data/spec/fixtures/set_override.php +11 -0
- data/spec/fixtures/sort_attr_asc.php +9 -0
- data/spec/fixtures/sort_attr_desc.php +9 -0
- data/spec/fixtures/sort_expr.php +9 -0
- data/spec/fixtures/sort_extended.php +9 -0
- data/spec/fixtures/sort_relevance.php +9 -0
- data/spec/fixtures/sort_time_segments.php +9 -0
- data/spec/fixtures/sphinxapi.php +1633 -0
- data/spec/fixtures/update_attributes.php +8 -0
- data/spec/fixtures/update_attributes_mva.php +8 -0
- data/spec/fixtures/weights.php +9 -0
- data/spec/spec_helper.rb +24 -0
- data/spec/sphinx/sphinx-id64.conf +67 -0
- data/spec/sphinx/sphinx.conf +67 -0
- data/spec/sphinx/sphinx_test.sql +88 -0
- data/sphinx.gemspec +127 -0
- metadata +142 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../init'
|
2
|
+
|
3
|
+
# Helper exception class to omit real dialogue between client and server
|
4
|
+
class SphinxSpecError < StandardError; end
|
5
|
+
|
6
|
+
# Runs PHP fixture to get request dump
|
7
|
+
def sphinx_fixture(name)
|
8
|
+
`php #{File.dirname(__FILE__)}/fixtures/#{name}.php`
|
9
|
+
end
|
10
|
+
|
11
|
+
def sphinx_create_client
|
12
|
+
@sphinx = Sphinx::Client.new
|
13
|
+
@sock = mock('SocketMock')
|
14
|
+
|
15
|
+
servers = @sphinx.instance_variable_get(:@servers)
|
16
|
+
servers.first.stub(:get_socket => @sock, :free_socket => nil)
|
17
|
+
@sphinx.stub!(:parse_response).and_raise(SphinxSpecError)
|
18
|
+
return @sphinx
|
19
|
+
end
|
20
|
+
|
21
|
+
def sphinx_safe_call
|
22
|
+
yield
|
23
|
+
rescue SphinxSpecError
|
24
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
source src1
|
2
|
+
{
|
3
|
+
type = mysql
|
4
|
+
sql_host = localhost
|
5
|
+
sql_user = root
|
6
|
+
sql_pass =
|
7
|
+
sql_db = sphinx_test
|
8
|
+
sql_port = 3306
|
9
|
+
|
10
|
+
sql_query = SELECT id, name, description, UNIX_TIMESTAMP(created_at) AS created_at, group_id, rating FROM links
|
11
|
+
sql_attr_uint = group_id
|
12
|
+
sql_attr_timestamp = created_at
|
13
|
+
sql_attr_float = rating
|
14
|
+
sql_attr_multi = uint tags from query; SELECT link_id, tag_id FROM links_tags
|
15
|
+
sql_query_info = SELECT * FROM links WHERE id=$id
|
16
|
+
}
|
17
|
+
|
18
|
+
source src2
|
19
|
+
{
|
20
|
+
type = mysql
|
21
|
+
sql_host = localhost
|
22
|
+
sql_user = root
|
23
|
+
sql_pass =
|
24
|
+
sql_db = sphinx_test
|
25
|
+
sql_port = 3306
|
26
|
+
|
27
|
+
sql_query = SELECT id, name, description, UNIX_TIMESTAMP(created_at) AS created_at, group_id FROM links64
|
28
|
+
sql_attr_uint = group_id
|
29
|
+
sql_attr_timestamp = created_at
|
30
|
+
sql_query_info = SELECT * FROM links WHERE id=$id
|
31
|
+
}
|
32
|
+
|
33
|
+
index test1
|
34
|
+
{
|
35
|
+
source = src1
|
36
|
+
path = /opt/sphinx-0.9.9-id64/var/data/test1
|
37
|
+
docinfo = extern
|
38
|
+
morphology = none
|
39
|
+
stopwords =
|
40
|
+
charset_type = utf-8
|
41
|
+
}
|
42
|
+
|
43
|
+
index test2
|
44
|
+
{
|
45
|
+
source = src2
|
46
|
+
path = /opt/sphinx-0.9.9-id64/var/data/test2
|
47
|
+
docinfo = extern
|
48
|
+
morphology = none
|
49
|
+
stopwords =
|
50
|
+
charset_type = utf-8
|
51
|
+
}
|
52
|
+
|
53
|
+
indexer
|
54
|
+
{
|
55
|
+
mem_limit = 32M
|
56
|
+
}
|
57
|
+
|
58
|
+
searchd
|
59
|
+
{
|
60
|
+
port = 9312
|
61
|
+
log = /opt/sphinx-0.9.9-id64/var/log/searchd.log
|
62
|
+
query_log = /opt/sphinx-0.9.9-id64/var/log/query.log
|
63
|
+
read_timeout = 5
|
64
|
+
max_children = 30
|
65
|
+
pid_file = /opt/sphinx-0.9.9-id64/var/log/searchd.pid
|
66
|
+
max_matches = 1000
|
67
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
source src1
|
2
|
+
{
|
3
|
+
type = mysql
|
4
|
+
sql_host = localhost
|
5
|
+
sql_user = root
|
6
|
+
sql_pass =
|
7
|
+
sql_db = sphinx_test
|
8
|
+
sql_port = 3306
|
9
|
+
|
10
|
+
sql_query = SELECT id, name, description, UNIX_TIMESTAMP(created_at) AS created_at, group_id, rating FROM links
|
11
|
+
sql_attr_uint = group_id
|
12
|
+
sql_attr_timestamp = created_at
|
13
|
+
sql_attr_float = rating
|
14
|
+
sql_attr_multi = uint tags from query; SELECT link_id, tag_id FROM links_tags
|
15
|
+
sql_query_info = SELECT * FROM links WHERE id=$id
|
16
|
+
}
|
17
|
+
|
18
|
+
source src2
|
19
|
+
{
|
20
|
+
type = mysql
|
21
|
+
sql_host = localhost
|
22
|
+
sql_user = root
|
23
|
+
sql_pass =
|
24
|
+
sql_db = sphinx_test
|
25
|
+
sql_port = 3306
|
26
|
+
|
27
|
+
sql_query = SELECT id, name, description, UNIX_TIMESTAMP(created_at) AS created_at, group_id FROM links64
|
28
|
+
sql_attr_uint = group_id
|
29
|
+
sql_attr_timestamp = created_at
|
30
|
+
sql_query_info = SELECT * FROM links WHERE id=$id
|
31
|
+
}
|
32
|
+
|
33
|
+
index test1
|
34
|
+
{
|
35
|
+
source = src1
|
36
|
+
path = /opt/sphinx-0.9.9/var/data/test1
|
37
|
+
docinfo = extern
|
38
|
+
morphology = none
|
39
|
+
stopwords =
|
40
|
+
charset_type = utf-8
|
41
|
+
}
|
42
|
+
|
43
|
+
index test2
|
44
|
+
{
|
45
|
+
source = src2
|
46
|
+
path = /opt/sphinx-0.9.9/var/data/test2
|
47
|
+
docinfo = extern
|
48
|
+
morphology = none
|
49
|
+
stopwords =
|
50
|
+
charset_type = utf-8
|
51
|
+
}
|
52
|
+
|
53
|
+
indexer
|
54
|
+
{
|
55
|
+
mem_limit = 32M
|
56
|
+
}
|
57
|
+
|
58
|
+
searchd
|
59
|
+
{
|
60
|
+
port = 9312
|
61
|
+
log = /opt/sphinx-0.9.9/var/log/searchd.log
|
62
|
+
query_log = /opt/sphinx-0.9.9/var/log/query.log
|
63
|
+
read_timeout = 5
|
64
|
+
max_children = 30
|
65
|
+
pid_file = /opt/sphinx-0.9.9/var/log/searchd.pid
|
66
|
+
max_matches = 1000
|
67
|
+
}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
/*
|
2
|
+
SQLyog Enterprise - MySQL GUI v5.20
|
3
|
+
Host - 5.0.27-community-nt : Database - sphinx_test
|
4
|
+
*********************************************************************
|
5
|
+
Server version : 5.0.27-community-nt
|
6
|
+
*/
|
7
|
+
|
8
|
+
|
9
|
+
SET NAMES utf8;
|
10
|
+
|
11
|
+
SET SQL_MODE='';
|
12
|
+
|
13
|
+
DROP database `sphinx_test`;
|
14
|
+
CREATE database `sphinx_test`;
|
15
|
+
|
16
|
+
USE `sphinx_test`;
|
17
|
+
|
18
|
+
/* Table structure for table `links` */
|
19
|
+
|
20
|
+
DROP TABLE IF EXISTS `links`;
|
21
|
+
|
22
|
+
CREATE TABLE `links` (
|
23
|
+
`id` INT(11) NOT NULL auto_increment,
|
24
|
+
`name` VARCHAR(255) NOT NULL,
|
25
|
+
`created_at` DATETIME NOT NULL,
|
26
|
+
`description` TEXT,
|
27
|
+
`group_id` INT(11) NOT NULL,
|
28
|
+
`rating` FLOAT NOT NULL,
|
29
|
+
PRIMARY KEY (`id`)
|
30
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
31
|
+
|
32
|
+
/* Table structure for table `tags` */
|
33
|
+
|
34
|
+
DROP TABLE IF EXISTS `tags`;
|
35
|
+
|
36
|
+
CREATE TABLE `tags` (
|
37
|
+
`id` INT(11) NOT NULL auto_increment,
|
38
|
+
`tag` VARCHAR(255) NOT NULL,
|
39
|
+
PRIMARY KEY (`id`)
|
40
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
41
|
+
|
42
|
+
/* Table structure for table `links_tags` */
|
43
|
+
|
44
|
+
DROP TABLE IF EXISTS `links_tags`;
|
45
|
+
|
46
|
+
CREATE TABLE `links_tags` (
|
47
|
+
`link_id` INT(11) NOT NULL,
|
48
|
+
`tag_id` INT(11) NOT NULL,
|
49
|
+
PRIMARY KEY (`link_id`,`tag_id`)
|
50
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
51
|
+
|
52
|
+
/* Table structure for table `links64` */
|
53
|
+
|
54
|
+
DROP TABLE IF EXISTS `links64`;
|
55
|
+
|
56
|
+
CREATE TABLE `links64` (
|
57
|
+
`id` BIGINT(11) NOT NULL auto_increment,
|
58
|
+
`name` VARCHAR(255) NOT NULL,
|
59
|
+
`created_at` DATETIME NOT NULL,
|
60
|
+
`description` TEXT,
|
61
|
+
`group_id` INT(11) NOT NULL,
|
62
|
+
PRIMARY KEY (`id`)
|
63
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
64
|
+
|
65
|
+
/* Data for the table `links` */
|
66
|
+
|
67
|
+
INSERT INTO `links`(`id`,`name`,`created_at`,`description`,`group_id`,`rating`) VALUES
|
68
|
+
(1,'Paint Protects WiFi Network from Hackers','2007-04-04 06:48:10','A company known as SEC Technologies has created a special type of paint that blocks Wi-Fi signals so that you can be sure hackers can ',1,13.32),
|
69
|
+
(2,'Airplanes To Become WiFi Hotspots','2007-04-04 06:49:15','Airlines will start turning their airplanes into WiFi hotspots beginning early next year, WSJ reports. Here\'s what you need to know...',2,54.85),
|
70
|
+
(3,'Planet VIP-195 GSM/WiFi Phone With Windows Messanger','2007-04-04 06:50:47','The phone does comply with IEEE 802.11b and IEEE 802.11g to provide phone capability via WiFi. As GSM phone the VIP-195 support 900/1800/1900 band and GPRS too. It comes with simple button to switch between WiFi or GSM mod',1,16.25);
|
71
|
+
|
72
|
+
/* Data for the table `tags` */
|
73
|
+
INSERT INTO `tags`(`id`,`tag`) VALUES
|
74
|
+
(1, 'tag1'),(2, 'tag2'),(3, 'tag3'),(4, 'tag4'),(5, 'tag5'),
|
75
|
+
(6, 'tag6'),(7, 'tag7'),(8, 'tag8'),(9, 'tag9'),(10, 'tag5');
|
76
|
+
|
77
|
+
/* Data for the table `links_tags` */
|
78
|
+
INSERT INTO `links_tags`(`link_id`,`tag_id`) VALUES
|
79
|
+
(1, 1),(1, 2),(1, 3),(1, 4),
|
80
|
+
(2, 5),(2, 6),(2, 7),(2, 8),
|
81
|
+
(3, 9),(3, 1),(3, 7),(3, 10);
|
82
|
+
|
83
|
+
/* Data for the table `links64` */
|
84
|
+
|
85
|
+
INSERT INTO `links64`(`id`,`name`,`created_at`,`description`,`group_id`) VALUES
|
86
|
+
(4294967297,'Paint Protects WiFi Network from Hackers','2007-04-04 06:48:10','A company known as SEC Technologies has created a special type of paint that blocks Wi-Fi signals so that you can be sure hackers can ',1),
|
87
|
+
(4294967298,'Airplanes To Become WiFi Hotspots','2007-04-04 06:49:15','Airlines will start turning their airplanes into WiFi hotspots beginning early next year, WSJ reports. Here\'s what you need to know...',2),
|
88
|
+
(4294967299,'Planet VIP-195 GSM/WiFi Phone With Windows Messanger','2007-04-04 06:50:47','The phone does comply with IEEE 802.11b and IEEE 802.11g to provide phone capability via WiFi. As GSM phone the VIP-195 support 900/1800/1900 band and GPRS too. It comes with simple button to switch between WiFi or GSM mod',1);
|
data/sphinx.gemspec
ADDED
@@ -0,0 +1,127 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{sphinx}
|
8
|
+
s.version = "0.9.9.2117"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Dmytro Shteflyuk"]
|
12
|
+
s.date = %q{2009-12-04}
|
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_wordcount.php",
|
85
|
+
"spec/fixtures/retries.php",
|
86
|
+
"spec/fixtures/retries_delay.php",
|
87
|
+
"spec/fixtures/select.php",
|
88
|
+
"spec/fixtures/set_override.php",
|
89
|
+
"spec/fixtures/sort_attr_asc.php",
|
90
|
+
"spec/fixtures/sort_attr_desc.php",
|
91
|
+
"spec/fixtures/sort_expr.php",
|
92
|
+
"spec/fixtures/sort_extended.php",
|
93
|
+
"spec/fixtures/sort_relevance.php",
|
94
|
+
"spec/fixtures/sort_time_segments.php",
|
95
|
+
"spec/fixtures/sphinxapi.php",
|
96
|
+
"spec/fixtures/update_attributes.php",
|
97
|
+
"spec/fixtures/update_attributes_mva.php",
|
98
|
+
"spec/fixtures/weights.php",
|
99
|
+
"spec/spec_helper.rb",
|
100
|
+
"spec/sphinx/sphinx-id64.conf",
|
101
|
+
"spec/sphinx/sphinx.conf",
|
102
|
+
"spec/sphinx/sphinx_test.sql",
|
103
|
+
"sphinx.gemspec"
|
104
|
+
]
|
105
|
+
s.homepage = %q{http://github.com/kpumuk/sphinx}
|
106
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
107
|
+
s.require_paths = ["lib"]
|
108
|
+
s.rubygems_version = %q{1.3.5}
|
109
|
+
s.summary = %q{Sphinx Client API for Ruby}
|
110
|
+
s.test_files = [
|
111
|
+
"spec/client_response_spec.rb",
|
112
|
+
"spec/client_spec.rb",
|
113
|
+
"spec/client_validations_spec.rb",
|
114
|
+
"spec/spec_helper.rb"
|
115
|
+
]
|
116
|
+
|
117
|
+
if s.respond_to? :specification_version then
|
118
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
119
|
+
s.specification_version = 3
|
120
|
+
|
121
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
122
|
+
else
|
123
|
+
end
|
124
|
+
else
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
metadata
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sphinx
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.9.2117
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dmytro Shteflyuk
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-12-04 00:00:00 +02:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: 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.
|
17
|
+
email: kpumuk@kpumuk.info
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.rdoc
|
24
|
+
files:
|
25
|
+
- .gitignore
|
26
|
+
- README.rdoc
|
27
|
+
- Rakefile
|
28
|
+
- VERSION.yml
|
29
|
+
- init.rb
|
30
|
+
- lib/sphinx.rb
|
31
|
+
- lib/sphinx/buffered_io.rb
|
32
|
+
- lib/sphinx/client.rb
|
33
|
+
- lib/sphinx/constants.rb
|
34
|
+
- lib/sphinx/indifferent_access.rb
|
35
|
+
- lib/sphinx/request.rb
|
36
|
+
- lib/sphinx/response.rb
|
37
|
+
- lib/sphinx/server.rb
|
38
|
+
- lib/sphinx/timeout.rb
|
39
|
+
- spec/client_response_spec.rb
|
40
|
+
- spec/client_spec.rb
|
41
|
+
- spec/client_validations_spec.rb
|
42
|
+
- spec/fixtures/default_search.php
|
43
|
+
- spec/fixtures/default_search_index.php
|
44
|
+
- spec/fixtures/excerpt_custom.php
|
45
|
+
- spec/fixtures/excerpt_default.php
|
46
|
+
- spec/fixtures/excerpt_flags.php
|
47
|
+
- spec/fixtures/field_weights.php
|
48
|
+
- spec/fixtures/filter.php
|
49
|
+
- spec/fixtures/filter_exclude.php
|
50
|
+
- spec/fixtures/filter_float_range.php
|
51
|
+
- spec/fixtures/filter_float_range_exclude.php
|
52
|
+
- spec/fixtures/filter_range.php
|
53
|
+
- spec/fixtures/filter_range_exclude.php
|
54
|
+
- spec/fixtures/filter_range_int64.php
|
55
|
+
- spec/fixtures/filter_ranges.php
|
56
|
+
- spec/fixtures/filters.php
|
57
|
+
- spec/fixtures/filters_different.php
|
58
|
+
- spec/fixtures/geo_anchor.php
|
59
|
+
- spec/fixtures/group_by_attr.php
|
60
|
+
- spec/fixtures/group_by_attrpair.php
|
61
|
+
- spec/fixtures/group_by_day.php
|
62
|
+
- spec/fixtures/group_by_day_sort.php
|
63
|
+
- spec/fixtures/group_by_month.php
|
64
|
+
- spec/fixtures/group_by_week.php
|
65
|
+
- spec/fixtures/group_by_year.php
|
66
|
+
- spec/fixtures/group_distinct.php
|
67
|
+
- spec/fixtures/id_range.php
|
68
|
+
- spec/fixtures/id_range64.php
|
69
|
+
- spec/fixtures/index_weights.php
|
70
|
+
- spec/fixtures/keywords.php
|
71
|
+
- spec/fixtures/limits.php
|
72
|
+
- spec/fixtures/limits_cutoff.php
|
73
|
+
- spec/fixtures/limits_max.php
|
74
|
+
- spec/fixtures/limits_max_cutoff.php
|
75
|
+
- spec/fixtures/match_all.php
|
76
|
+
- spec/fixtures/match_any.php
|
77
|
+
- spec/fixtures/match_boolean.php
|
78
|
+
- spec/fixtures/match_extended.php
|
79
|
+
- spec/fixtures/match_extended2.php
|
80
|
+
- spec/fixtures/match_fullscan.php
|
81
|
+
- spec/fixtures/match_phrase.php
|
82
|
+
- spec/fixtures/max_query_time.php
|
83
|
+
- spec/fixtures/miltiple_queries.php
|
84
|
+
- spec/fixtures/ranking_bm25.php
|
85
|
+
- spec/fixtures/ranking_fieldmask.php
|
86
|
+
- spec/fixtures/ranking_matchany.php
|
87
|
+
- spec/fixtures/ranking_none.php
|
88
|
+
- spec/fixtures/ranking_proximity.php
|
89
|
+
- spec/fixtures/ranking_proximity_bm25.php
|
90
|
+
- spec/fixtures/ranking_wordcount.php
|
91
|
+
- spec/fixtures/retries.php
|
92
|
+
- spec/fixtures/retries_delay.php
|
93
|
+
- spec/fixtures/select.php
|
94
|
+
- spec/fixtures/set_override.php
|
95
|
+
- spec/fixtures/sort_attr_asc.php
|
96
|
+
- spec/fixtures/sort_attr_desc.php
|
97
|
+
- spec/fixtures/sort_expr.php
|
98
|
+
- spec/fixtures/sort_extended.php
|
99
|
+
- spec/fixtures/sort_relevance.php
|
100
|
+
- spec/fixtures/sort_time_segments.php
|
101
|
+
- spec/fixtures/sphinxapi.php
|
102
|
+
- spec/fixtures/update_attributes.php
|
103
|
+
- spec/fixtures/update_attributes_mva.php
|
104
|
+
- spec/fixtures/weights.php
|
105
|
+
- spec/spec_helper.rb
|
106
|
+
- spec/sphinx/sphinx-id64.conf
|
107
|
+
- spec/sphinx/sphinx.conf
|
108
|
+
- spec/sphinx/sphinx_test.sql
|
109
|
+
- sphinx.gemspec
|
110
|
+
has_rdoc: true
|
111
|
+
homepage: http://github.com/kpumuk/sphinx
|
112
|
+
licenses: []
|
113
|
+
|
114
|
+
post_install_message:
|
115
|
+
rdoc_options:
|
116
|
+
- --charset=UTF-8
|
117
|
+
require_paths:
|
118
|
+
- lib
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: "0"
|
124
|
+
version:
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: "0"
|
130
|
+
version:
|
131
|
+
requirements: []
|
132
|
+
|
133
|
+
rubyforge_project:
|
134
|
+
rubygems_version: 1.3.5
|
135
|
+
signing_key:
|
136
|
+
specification_version: 3
|
137
|
+
summary: Sphinx Client API for Ruby
|
138
|
+
test_files:
|
139
|
+
- spec/client_response_spec.rb
|
140
|
+
- spec/client_spec.rb
|
141
|
+
- spec/client_validations_spec.rb
|
142
|
+
- spec/spec_helper.rb
|