model_set 0.10.6
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.rdoc +39 -0
- data/VERSION.yml +5 -0
- data/lib/model_set/conditioned.rb +33 -0
- data/lib/model_set/conditions.rb +103 -0
- data/lib/model_set/query.rb +132 -0
- data/lib/model_set/raw_query.rb +41 -0
- data/lib/model_set/raw_sql_query.rb +19 -0
- data/lib/model_set/set_query.rb +34 -0
- data/lib/model_set/solr_query.rb +70 -0
- data/lib/model_set/sphinx_query.rb +206 -0
- data/lib/model_set/sql_base_query.rb +52 -0
- data/lib/model_set/sql_query.rb +109 -0
- data/lib/model_set.rb +743 -0
- data/lib/multi_set.rb +67 -0
- data/test/model_set_test.rb +329 -0
- data/test/multi_set_test.rb +65 -0
- data/test/test_helper.rb +23 -0
- data/vendor/sphinx_client/README.rdoc +41 -0
- data/vendor/sphinx_client/Rakefile +21 -0
- data/vendor/sphinx_client/init.rb +1 -0
- data/vendor/sphinx_client/install.rb +5 -0
- data/vendor/sphinx_client/lib/sphinx/client.rb +1093 -0
- data/vendor/sphinx_client/lib/sphinx/request.rb +50 -0
- data/vendor/sphinx_client/lib/sphinx/response.rb +69 -0
- data/vendor/sphinx_client/lib/sphinx.rb +6 -0
- data/vendor/sphinx_client/spec/client_response_spec.rb +112 -0
- data/vendor/sphinx_client/spec/client_spec.rb +469 -0
- data/vendor/sphinx_client/spec/fixtures/default_search.php +8 -0
- data/vendor/sphinx_client/spec/fixtures/default_search_index.php +8 -0
- data/vendor/sphinx_client/spec/fixtures/excerpt_custom.php +11 -0
- data/vendor/sphinx_client/spec/fixtures/excerpt_default.php +8 -0
- data/vendor/sphinx_client/spec/fixtures/excerpt_flags.php +11 -0
- data/vendor/sphinx_client/spec/fixtures/field_weights.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/filter.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/filter_exclude.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/filter_float_range.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/filter_float_range_exclude.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/filter_range.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/filter_range_exclude.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/filter_range_int64.php +10 -0
- data/vendor/sphinx_client/spec/fixtures/filter_ranges.php +10 -0
- data/vendor/sphinx_client/spec/fixtures/filters.php +10 -0
- data/vendor/sphinx_client/spec/fixtures/filters_different.php +13 -0
- data/vendor/sphinx_client/spec/fixtures/geo_anchor.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/group_by_attr.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/group_by_attrpair.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/group_by_day.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/group_by_day_sort.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/group_by_month.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/group_by_week.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/group_by_year.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/group_distinct.php +10 -0
- data/vendor/sphinx_client/spec/fixtures/id_range.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/id_range64.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/index_weights.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/keywords.php +8 -0
- data/vendor/sphinx_client/spec/fixtures/limits.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/limits_cutoff.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/limits_max.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/limits_max_cutoff.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/match_all.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/match_any.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/match_boolean.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/match_extended.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/match_extended2.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/match_fullscan.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/match_phrase.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/max_query_time.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/miltiple_queries.php +12 -0
- data/vendor/sphinx_client/spec/fixtures/ranking_bm25.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/ranking_none.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/ranking_proximity.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/ranking_proximity_bm25.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/ranking_wordcount.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/retries.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/retries_delay.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/select.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/set_override.php +11 -0
- data/vendor/sphinx_client/spec/fixtures/sort_attr_asc.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/sort_attr_desc.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/sort_expr.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/sort_extended.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/sort_relevance.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/sort_time_segments.php +9 -0
- data/vendor/sphinx_client/spec/fixtures/sphinxapi.php +1269 -0
- data/vendor/sphinx_client/spec/fixtures/update_attributes.php +8 -0
- data/vendor/sphinx_client/spec/fixtures/update_attributes_mva.php +8 -0
- data/vendor/sphinx_client/spec/fixtures/weights.php +9 -0
- data/vendor/sphinx_client/spec/sphinx/sphinx-id64.conf +67 -0
- data/vendor/sphinx_client/spec/sphinx/sphinx.conf +67 -0
- data/vendor/sphinx_client/spec/sphinx/sphinx_test.sql +86 -0
- data/vendor/sphinx_client/sphinx.yml.tpl +3 -0
- data/vendor/sphinx_client/tasks/sphinx.rake +75 -0
- metadata +151 -0
@@ -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 = 3312
|
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 = 3312
|
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,86 @@
|
|
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
|
+
SET NAMES utf8;
|
9
|
+
|
10
|
+
SET SQL_MODE='';
|
11
|
+
|
12
|
+
CREATE database IF NOT EXISTS `sphinx_test`;
|
13
|
+
|
14
|
+
USE `sphinx_test`;
|
15
|
+
|
16
|
+
/* Table structure for table `links` */
|
17
|
+
|
18
|
+
DROP TABLE IF EXISTS `links`;
|
19
|
+
|
20
|
+
CREATE TABLE `links` (
|
21
|
+
`id` INT(11) NOT NULL auto_increment,
|
22
|
+
`name` VARCHAR(255) NOT NULL,
|
23
|
+
`created_at` DATETIME NOT NULL,
|
24
|
+
`description` TEXT,
|
25
|
+
`group_id` INT(11) NOT NULL,
|
26
|
+
`rating` FLOAT NOT NULL,
|
27
|
+
PRIMARY KEY (`id`)
|
28
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
29
|
+
|
30
|
+
/* Table structure for table `tags` */
|
31
|
+
|
32
|
+
DROP TABLE IF EXISTS `tags`;
|
33
|
+
|
34
|
+
CREATE TABLE `tags` (
|
35
|
+
`id` INT(11) NOT NULL auto_increment,
|
36
|
+
`tag` VARCHAR(255) NOT NULL,
|
37
|
+
PRIMARY KEY (`id`)
|
38
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
39
|
+
|
40
|
+
/* Table structure for table `links_tags` */
|
41
|
+
|
42
|
+
DROP TABLE IF EXISTS `links_tags`;
|
43
|
+
|
44
|
+
CREATE TABLE `links_tags` (
|
45
|
+
`link_id` INT(11) NOT NULL,
|
46
|
+
`tag_id` INT(11) NOT NULL,
|
47
|
+
PRIMARY KEY (`link_id`,`tag_id`)
|
48
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
49
|
+
|
50
|
+
/* Table structure for table `links64` */
|
51
|
+
|
52
|
+
DROP TABLE IF EXISTS `links64`;
|
53
|
+
|
54
|
+
CREATE TABLE `links64` (
|
55
|
+
`id` BIGINT(11) NOT NULL auto_increment,
|
56
|
+
`name` VARCHAR(255) NOT NULL,
|
57
|
+
`created_at` DATETIME NOT NULL,
|
58
|
+
`description` TEXT,
|
59
|
+
`group_id` INT(11) NOT NULL,
|
60
|
+
PRIMARY KEY (`id`)
|
61
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
62
|
+
|
63
|
+
/* Data for the table `links` */
|
64
|
+
|
65
|
+
INSERT INTO `links`(`id`,`name`,`created_at`,`description`,`group_id`,`rating`) VALUES
|
66
|
+
(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),
|
67
|
+
(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),
|
68
|
+
(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);
|
69
|
+
|
70
|
+
/* Data for the table `tags` */
|
71
|
+
INSERT INTO `tags`(`id`,`tag`) VALUES
|
72
|
+
(1, 'tag1'),(2, 'tag2'),(3, 'tag3'),(4, 'tag4'),(5, 'tag5'),
|
73
|
+
(6, 'tag6'),(7, 'tag7'),(8, 'tag8'),(9, 'tag9'),(10, 'tag5');
|
74
|
+
|
75
|
+
/* Data for the table `links_tags` */
|
76
|
+
INSERT INTO `links_tags`(`link_id`,`tag_id`) VALUES
|
77
|
+
(1, 1),(1, 2),(1, 3),(1, 4),
|
78
|
+
(2, 5),(2, 6),(2, 7),(2, 8),
|
79
|
+
(3, 9),(3, 1),(3, 7),(3, 10);
|
80
|
+
|
81
|
+
/* Data for the table `links64` */
|
82
|
+
|
83
|
+
INSERT INTO `links64`(`id`,`name`,`created_at`,`description`,`group_id`) VALUES
|
84
|
+
(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),
|
85
|
+
(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),
|
86
|
+
(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);
|
@@ -0,0 +1,75 @@
|
|
1
|
+
namespace :sphinx do
|
2
|
+
desc 'Run indexer for configured indexes'
|
3
|
+
task :index do
|
4
|
+
config = load_config
|
5
|
+
if config[:indexes]
|
6
|
+
system "#{config[:root_dir]}/indexer --config \"#{config[:config_file]}\" #{config[:indexes]}"
|
7
|
+
else
|
8
|
+
puts 'You should specify indexes in sphinx.yml'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
desc 'Run indexer for all indexes'
|
13
|
+
task :index_all do
|
14
|
+
config = load_config
|
15
|
+
system "#{config[:root_dir]}/indexer --config \"#{config[:config_file]}\" --all"
|
16
|
+
end
|
17
|
+
|
18
|
+
desc 'Rotate configured indexes and restart searchd server'
|
19
|
+
task :rotate do
|
20
|
+
config = load_config
|
21
|
+
if config[:indexes]
|
22
|
+
system "#{config[:root_dir]}/indexer --config \"#{config[:config_file]}\" --rotate #{config[:indexes]}"
|
23
|
+
else
|
24
|
+
puts 'You should specify indexes in sphinx.yml'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
desc 'Rotate all indexes and restart searchd server'
|
29
|
+
task :rotate_all do
|
30
|
+
config = load_config
|
31
|
+
system "#{config[:root_dir]}/indexer --config \"#{config[:config_file]}\" --rotate --all"
|
32
|
+
end
|
33
|
+
|
34
|
+
desc 'Start searchd server'
|
35
|
+
task :start do
|
36
|
+
config = load_config
|
37
|
+
if File.exists?(config[:pid_file])
|
38
|
+
puts 'Sphinx searchd server is already started.'
|
39
|
+
else
|
40
|
+
system "#{config[:root_dir]}/searchd --config \"#{config[:config_file]}\""
|
41
|
+
puts 'Sphinx searchd server started.'
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
desc 'Stop searchd server'
|
46
|
+
task :stop do
|
47
|
+
config = load_config
|
48
|
+
unless File.exists?(config[:pid_file])
|
49
|
+
puts 'Sphinx searchd server is not running.'
|
50
|
+
else
|
51
|
+
pid = File.read(config[:pid_file]).chomp
|
52
|
+
kill 'SIGHUP', pid
|
53
|
+
puts 'Sphinx searchd server stopped.'
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
desc 'Restart searchd server'
|
58
|
+
task :restart => [:stop, :start]
|
59
|
+
|
60
|
+
def load_config
|
61
|
+
return @sphinx_config if @sphinx_config
|
62
|
+
|
63
|
+
options = YAML.load_file(File.dirname(__FILE__) + '/../../../../config/sphinx.yml') rescue {}
|
64
|
+
@sphinx_config = {
|
65
|
+
:config_file => options['config_file'] || '/etc/sphinx.conf',
|
66
|
+
:root_dir => options['root_dir'] || '/usr/bin',
|
67
|
+
:indexes => options['indexes']
|
68
|
+
}
|
69
|
+
sphinx_config = File.read(@sphinx_config[:config_file]) rescue ''
|
70
|
+
|
71
|
+
sphinx_config =~ /searchd\s*{.*pid_file\s*=\s*(.*?)\n.*}/m
|
72
|
+
@sphinx_config[:pid_file] = $1 || '/var/run/searchd.pid'
|
73
|
+
return @sphinx_config
|
74
|
+
end
|
75
|
+
end
|
metadata
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: model_set
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.10.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Justin Balthrop
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-03-31 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Easy manipulation of sets of ActiveRecord models
|
17
|
+
email: code@justinbalthrop.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- LICENSE
|
24
|
+
- README.rdoc
|
25
|
+
files:
|
26
|
+
- LICENSE
|
27
|
+
- README.rdoc
|
28
|
+
- VERSION.yml
|
29
|
+
- lib/model_set.rb
|
30
|
+
- lib/model_set/conditioned.rb
|
31
|
+
- lib/model_set/conditions.rb
|
32
|
+
- lib/model_set/query.rb
|
33
|
+
- lib/model_set/raw_query.rb
|
34
|
+
- lib/model_set/raw_sql_query.rb
|
35
|
+
- lib/model_set/set_query.rb
|
36
|
+
- lib/model_set/solr_query.rb
|
37
|
+
- lib/model_set/sphinx_query.rb
|
38
|
+
- lib/model_set/sql_base_query.rb
|
39
|
+
- lib/model_set/sql_query.rb
|
40
|
+
- lib/multi_set.rb
|
41
|
+
- test/model_set_test.rb
|
42
|
+
- test/multi_set_test.rb
|
43
|
+
- test/test_helper.rb
|
44
|
+
- vendor/sphinx_client/README.rdoc
|
45
|
+
- vendor/sphinx_client/Rakefile
|
46
|
+
- vendor/sphinx_client/init.rb
|
47
|
+
- vendor/sphinx_client/install.rb
|
48
|
+
- vendor/sphinx_client/lib/sphinx.rb
|
49
|
+
- vendor/sphinx_client/lib/sphinx/client.rb
|
50
|
+
- vendor/sphinx_client/lib/sphinx/request.rb
|
51
|
+
- vendor/sphinx_client/lib/sphinx/response.rb
|
52
|
+
- vendor/sphinx_client/spec/client_response_spec.rb
|
53
|
+
- vendor/sphinx_client/spec/client_spec.rb
|
54
|
+
- vendor/sphinx_client/spec/fixtures/default_search.php
|
55
|
+
- vendor/sphinx_client/spec/fixtures/default_search_index.php
|
56
|
+
- vendor/sphinx_client/spec/fixtures/excerpt_custom.php
|
57
|
+
- vendor/sphinx_client/spec/fixtures/excerpt_default.php
|
58
|
+
- vendor/sphinx_client/spec/fixtures/excerpt_flags.php
|
59
|
+
- vendor/sphinx_client/spec/fixtures/field_weights.php
|
60
|
+
- vendor/sphinx_client/spec/fixtures/filter.php
|
61
|
+
- vendor/sphinx_client/spec/fixtures/filter_exclude.php
|
62
|
+
- vendor/sphinx_client/spec/fixtures/filter_float_range.php
|
63
|
+
- vendor/sphinx_client/spec/fixtures/filter_float_range_exclude.php
|
64
|
+
- vendor/sphinx_client/spec/fixtures/filter_range.php
|
65
|
+
- vendor/sphinx_client/spec/fixtures/filter_range_exclude.php
|
66
|
+
- vendor/sphinx_client/spec/fixtures/filter_range_int64.php
|
67
|
+
- vendor/sphinx_client/spec/fixtures/filter_ranges.php
|
68
|
+
- vendor/sphinx_client/spec/fixtures/filters.php
|
69
|
+
- vendor/sphinx_client/spec/fixtures/filters_different.php
|
70
|
+
- vendor/sphinx_client/spec/fixtures/geo_anchor.php
|
71
|
+
- vendor/sphinx_client/spec/fixtures/group_by_attr.php
|
72
|
+
- vendor/sphinx_client/spec/fixtures/group_by_attrpair.php
|
73
|
+
- vendor/sphinx_client/spec/fixtures/group_by_day.php
|
74
|
+
- vendor/sphinx_client/spec/fixtures/group_by_day_sort.php
|
75
|
+
- vendor/sphinx_client/spec/fixtures/group_by_month.php
|
76
|
+
- vendor/sphinx_client/spec/fixtures/group_by_week.php
|
77
|
+
- vendor/sphinx_client/spec/fixtures/group_by_year.php
|
78
|
+
- vendor/sphinx_client/spec/fixtures/group_distinct.php
|
79
|
+
- vendor/sphinx_client/spec/fixtures/id_range.php
|
80
|
+
- vendor/sphinx_client/spec/fixtures/id_range64.php
|
81
|
+
- vendor/sphinx_client/spec/fixtures/index_weights.php
|
82
|
+
- vendor/sphinx_client/spec/fixtures/keywords.php
|
83
|
+
- vendor/sphinx_client/spec/fixtures/limits.php
|
84
|
+
- vendor/sphinx_client/spec/fixtures/limits_cutoff.php
|
85
|
+
- vendor/sphinx_client/spec/fixtures/limits_max.php
|
86
|
+
- vendor/sphinx_client/spec/fixtures/limits_max_cutoff.php
|
87
|
+
- vendor/sphinx_client/spec/fixtures/match_all.php
|
88
|
+
- vendor/sphinx_client/spec/fixtures/match_any.php
|
89
|
+
- vendor/sphinx_client/spec/fixtures/match_boolean.php
|
90
|
+
- vendor/sphinx_client/spec/fixtures/match_extended.php
|
91
|
+
- vendor/sphinx_client/spec/fixtures/match_extended2.php
|
92
|
+
- vendor/sphinx_client/spec/fixtures/match_fullscan.php
|
93
|
+
- vendor/sphinx_client/spec/fixtures/match_phrase.php
|
94
|
+
- vendor/sphinx_client/spec/fixtures/max_query_time.php
|
95
|
+
- vendor/sphinx_client/spec/fixtures/miltiple_queries.php
|
96
|
+
- vendor/sphinx_client/spec/fixtures/ranking_bm25.php
|
97
|
+
- vendor/sphinx_client/spec/fixtures/ranking_none.php
|
98
|
+
- vendor/sphinx_client/spec/fixtures/ranking_proximity.php
|
99
|
+
- vendor/sphinx_client/spec/fixtures/ranking_proximity_bm25.php
|
100
|
+
- vendor/sphinx_client/spec/fixtures/ranking_wordcount.php
|
101
|
+
- vendor/sphinx_client/spec/fixtures/retries.php
|
102
|
+
- vendor/sphinx_client/spec/fixtures/retries_delay.php
|
103
|
+
- vendor/sphinx_client/spec/fixtures/select.php
|
104
|
+
- vendor/sphinx_client/spec/fixtures/set_override.php
|
105
|
+
- vendor/sphinx_client/spec/fixtures/sort_attr_asc.php
|
106
|
+
- vendor/sphinx_client/spec/fixtures/sort_attr_desc.php
|
107
|
+
- vendor/sphinx_client/spec/fixtures/sort_expr.php
|
108
|
+
- vendor/sphinx_client/spec/fixtures/sort_extended.php
|
109
|
+
- vendor/sphinx_client/spec/fixtures/sort_relevance.php
|
110
|
+
- vendor/sphinx_client/spec/fixtures/sort_time_segments.php
|
111
|
+
- vendor/sphinx_client/spec/fixtures/sphinxapi.php
|
112
|
+
- vendor/sphinx_client/spec/fixtures/update_attributes.php
|
113
|
+
- vendor/sphinx_client/spec/fixtures/update_attributes_mva.php
|
114
|
+
- vendor/sphinx_client/spec/fixtures/weights.php
|
115
|
+
- vendor/sphinx_client/spec/sphinx/sphinx-id64.conf
|
116
|
+
- vendor/sphinx_client/spec/sphinx/sphinx.conf
|
117
|
+
- vendor/sphinx_client/spec/sphinx/sphinx_test.sql
|
118
|
+
- vendor/sphinx_client/sphinx.yml.tpl
|
119
|
+
- vendor/sphinx_client/tasks/sphinx.rake
|
120
|
+
has_rdoc: true
|
121
|
+
homepage: http://github.com/ninjudd/model_set
|
122
|
+
licenses: []
|
123
|
+
|
124
|
+
post_install_message:
|
125
|
+
rdoc_options:
|
126
|
+
- --charset=UTF-8
|
127
|
+
require_paths:
|
128
|
+
- lib
|
129
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: "0"
|
134
|
+
version:
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: "0"
|
140
|
+
version:
|
141
|
+
requirements: []
|
142
|
+
|
143
|
+
rubyforge_project:
|
144
|
+
rubygems_version: 1.3.5
|
145
|
+
signing_key:
|
146
|
+
specification_version: 3
|
147
|
+
summary: Easy manipulation of sets of ActiveRecord models
|
148
|
+
test_files:
|
149
|
+
- test/model_set_test.rb
|
150
|
+
- test/multi_set_test.rb
|
151
|
+
- test/test_helper.rb
|