sherpa99-thinking-sphinx 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENCE +20 -0
- data/README +107 -0
- data/README.textile +107 -0
- data/Rakefile +4 -0
- data/contribute.rb +328 -0
- data/cucumber.yml +1 -0
- data/features/a.rb +17 -0
- data/features/attribute_transformation.feature +22 -0
- data/features/datetime_deltas.feature +55 -0
- data/features/delayed_delta_indexing.feature +37 -0
- data/features/deleting_instances.feature +52 -0
- data/features/facets.feature +26 -0
- data/features/handling_edits.feature +67 -0
- data/features/retry_stale_indexes.feature +24 -0
- data/features/searching_across_models.feature +20 -0
- data/features/searching_by_model.feature +118 -0
- data/features/searching_with_find_arguments.feature +56 -0
- data/features/sphinx_detection.feature +16 -0
- data/features/step_definitions/alpha_steps.rb +3 -0
- data/features/step_definitions/beta_steps.rb +11 -0
- data/features/step_definitions/cat_steps.rb +3 -0
- data/features/step_definitions/common_steps.rb +154 -0
- data/features/step_definitions/datetime_delta_steps.rb +11 -0
- data/features/step_definitions/delayed_delta_indexing_steps.rb +7 -0
- data/features/step_definitions/facet_steps.rb +30 -0
- data/features/step_definitions/find_arguments_steps.rb +36 -0
- data/features/step_definitions/gamma_steps.rb +15 -0
- data/features/step_definitions/search_steps.rb +66 -0
- data/features/step_definitions/sphinx_steps.rb +23 -0
- data/features/support/db/active_record.rb +40 -0
- data/features/support/db/database.example.yml +4 -0
- data/features/support/db/migrations/create_alphas.rb +18 -0
- data/features/support/db/migrations/create_animals.rb +9 -0
- data/features/support/db/migrations/create_betas.rb +15 -0
- data/features/support/db/migrations/create_boxes.rb +13 -0
- data/features/support/db/migrations/create_comments.rb +13 -0
- data/features/support/db/migrations/create_delayed_betas.rb +28 -0
- data/features/support/db/migrations/create_developers.rb +39 -0
- data/features/support/db/migrations/create_gammas.rb +14 -0
- data/features/support/db/migrations/create_people.rb +1014 -0
- data/features/support/db/migrations/create_posts.rb +6 -0
- data/features/support/db/migrations/create_thetas.rb +16 -0
- data/features/support/db/mysql.rb +4 -0
- data/features/support/db/postgresql.rb +4 -0
- data/features/support/env.rb +6 -0
- data/features/support/models/alpha.rb +9 -0
- data/features/support/models/animal.rb +5 -0
- data/features/support/models/beta.rb +7 -0
- data/features/support/models/box.rb +8 -0
- data/features/support/models/cat.rb +3 -0
- data/features/support/models/comment.rb +3 -0
- data/features/support/models/delayed_beta.rb +7 -0
- data/features/support/models/developer.rb +8 -0
- data/features/support/models/gamma.rb +5 -0
- data/features/support/models/person.rb +8 -0
- data/features/support/models/post.rb +8 -0
- data/features/support/models/theta.rb +7 -0
- data/features/support/post_database.rb +37 -0
- data/features/support/z.rb +19 -0
- data/ginger_scenarios.rb +24 -0
- data/init.rb +12 -0
- data/lib/thinking_sphinx.rb +144 -0
- data/lib/thinking_sphinx/active_record.rb +245 -0
- data/lib/thinking_sphinx/active_record/delta.rb +74 -0
- data/lib/thinking_sphinx/active_record/has_many_association.rb +29 -0
- data/lib/thinking_sphinx/active_record/search.rb +57 -0
- data/lib/thinking_sphinx/adapters/abstract_adapter.rb +34 -0
- data/lib/thinking_sphinx/adapters/mysql_adapter.rb +53 -0
- data/lib/thinking_sphinx/adapters/postgresql_adapter.rb +129 -0
- data/lib/thinking_sphinx/association.rb +144 -0
- data/lib/thinking_sphinx/attribute.rb +258 -0
- data/lib/thinking_sphinx/collection.rb +142 -0
- data/lib/thinking_sphinx/configuration.rb +236 -0
- data/lib/thinking_sphinx/core/string.rb +22 -0
- data/lib/thinking_sphinx/deltas.rb +22 -0
- data/lib/thinking_sphinx/deltas/datetime_delta.rb +50 -0
- data/lib/thinking_sphinx/deltas/default_delta.rb +65 -0
- data/lib/thinking_sphinx/deltas/delayed_delta.rb +25 -0
- data/lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb +24 -0
- data/lib/thinking_sphinx/deltas/delayed_delta/flag_as_deleted_job.rb +27 -0
- data/lib/thinking_sphinx/deltas/delayed_delta/job.rb +26 -0
- data/lib/thinking_sphinx/facet.rb +58 -0
- data/lib/thinking_sphinx/facet_collection.rb +44 -0
- data/lib/thinking_sphinx/field.rb +172 -0
- data/lib/thinking_sphinx/index.rb +414 -0
- data/lib/thinking_sphinx/index/builder.rb +233 -0
- data/lib/thinking_sphinx/index/faux_column.rb +110 -0
- data/lib/thinking_sphinx/rails_additions.rb +133 -0
- data/lib/thinking_sphinx/search.rb +638 -0
- data/lib/thinking_sphinx/tasks.rb +128 -0
- data/rails/init.rb +6 -0
- data/spec/fixtures/data.sql +32 -0
- data/spec/fixtures/database.yml.default +3 -0
- data/spec/fixtures/models.rb +81 -0
- data/spec/fixtures/structure.sql +84 -0
- data/spec/spec_helper.rb +54 -0
- data/spec/sphinx_helper.rb +109 -0
- data/spec/unit/thinking_sphinx/active_record/delta_spec.rb +136 -0
- data/spec/unit/thinking_sphinx/active_record/has_many_association_spec.rb +53 -0
- data/spec/unit/thinking_sphinx/active_record/search_spec.rb +107 -0
- data/spec/unit/thinking_sphinx/active_record_spec.rb +256 -0
- data/spec/unit/thinking_sphinx/association_spec.rb +247 -0
- data/spec/unit/thinking_sphinx/attribute_spec.rb +212 -0
- data/spec/unit/thinking_sphinx/collection_spec.rb +14 -0
- data/spec/unit/thinking_sphinx/configuration_spec.rb +136 -0
- data/spec/unit/thinking_sphinx/core/string_spec.rb +9 -0
- data/spec/unit/thinking_sphinx/field_spec.rb +145 -0
- data/spec/unit/thinking_sphinx/index/builder_spec.rb +5 -0
- data/spec/unit/thinking_sphinx/index/faux_column_spec.rb +30 -0
- data/spec/unit/thinking_sphinx/index_spec.rb +54 -0
- data/spec/unit/thinking_sphinx/search_spec.rb +59 -0
- data/spec/unit/thinking_sphinx_spec.rb +129 -0
- data/tasks/distribution.rb +48 -0
- data/tasks/rails.rake +1 -0
- data/tasks/testing.rb +86 -0
- data/thinking-sphinx.gemspec +232 -0
- data/vendor/after_commit/LICENSE +20 -0
- data/vendor/after_commit/README +16 -0
- data/vendor/after_commit/Rakefile +22 -0
- data/vendor/after_commit/init.rb +5 -0
- data/vendor/after_commit/lib/after_commit.rb +42 -0
- data/vendor/after_commit/lib/after_commit/active_record.rb +91 -0
- data/vendor/after_commit/lib/after_commit/connection_adapters.rb +103 -0
- data/vendor/after_commit/test/after_commit_test.rb +53 -0
- data/vendor/delayed_job/lib/delayed/job.rb +251 -0
- data/vendor/delayed_job/lib/delayed/message_sending.rb +7 -0
- data/vendor/delayed_job/lib/delayed/performable_method.rb +55 -0
- data/vendor/delayed_job/lib/delayed/worker.rb +54 -0
- data/vendor/riddle/lib/riddle.rb +30 -0
- data/vendor/riddle/lib/riddle/client.rb +619 -0
- data/vendor/riddle/lib/riddle/client/filter.rb +53 -0
- data/vendor/riddle/lib/riddle/client/message.rb +65 -0
- data/vendor/riddle/lib/riddle/client/response.rb +84 -0
- data/vendor/riddle/lib/riddle/configuration.rb +33 -0
- data/vendor/riddle/lib/riddle/configuration/distributed_index.rb +48 -0
- data/vendor/riddle/lib/riddle/configuration/index.rb +142 -0
- data/vendor/riddle/lib/riddle/configuration/indexer.rb +19 -0
- data/vendor/riddle/lib/riddle/configuration/remote_index.rb +17 -0
- data/vendor/riddle/lib/riddle/configuration/searchd.rb +25 -0
- data/vendor/riddle/lib/riddle/configuration/section.rb +37 -0
- data/vendor/riddle/lib/riddle/configuration/source.rb +23 -0
- data/vendor/riddle/lib/riddle/configuration/sql_source.rb +34 -0
- data/vendor/riddle/lib/riddle/configuration/xml_source.rb +28 -0
- data/vendor/riddle/lib/riddle/controller.rb +44 -0
- metadata +248 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Riddle
|
|
2
|
+
class Configuration
|
|
3
|
+
class RemoteIndex
|
|
4
|
+
attr_accessor :address, :port, :name
|
|
5
|
+
|
|
6
|
+
def initialize(address, port, name)
|
|
7
|
+
@address = address
|
|
8
|
+
@port = port
|
|
9
|
+
@name = name
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def remote
|
|
13
|
+
"#{address}:#{port}"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Riddle
|
|
2
|
+
class Configuration
|
|
3
|
+
class Searchd < Riddle::Configuration::Section
|
|
4
|
+
self.settings = [:address, :port, :log, :query_log, :read_timeout,
|
|
5
|
+
:max_children, :pid_file, :max_matches, :seamless_rotate,
|
|
6
|
+
:preopen_indexes, :unlink_old]
|
|
7
|
+
|
|
8
|
+
attr_accessor *self.settings
|
|
9
|
+
|
|
10
|
+
def render
|
|
11
|
+
raise ConfigurationError unless valid?
|
|
12
|
+
|
|
13
|
+
(
|
|
14
|
+
["searchd", "{"] +
|
|
15
|
+
settings_body +
|
|
16
|
+
["}", ""]
|
|
17
|
+
).join("\n")
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def valid?
|
|
21
|
+
!( @port.nil? || @pid_file.nil? )
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module Riddle
|
|
2
|
+
class Configuration
|
|
3
|
+
class Section
|
|
4
|
+
class << self
|
|
5
|
+
attr_accessor :settings
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
settings = []
|
|
9
|
+
|
|
10
|
+
def valid?
|
|
11
|
+
true
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
private
|
|
15
|
+
|
|
16
|
+
def settings_body
|
|
17
|
+
self.class.settings.select { |setting|
|
|
18
|
+
!send(setting).nil?
|
|
19
|
+
}.collect { |setting|
|
|
20
|
+
if send(setting) == ""
|
|
21
|
+
conf = " #{setting} = "
|
|
22
|
+
else
|
|
23
|
+
conf = setting_to_array(setting).collect { |set|
|
|
24
|
+
" #{setting} = #{set}"
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
conf.length == 0 ? nil : conf
|
|
28
|
+
}.flatten.compact
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def setting_to_array(setting)
|
|
32
|
+
value = send(setting)
|
|
33
|
+
value.is_a?(Array) ? value : [value]
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Riddle
|
|
2
|
+
class Configuration
|
|
3
|
+
class Source < Riddle::Configuration::Section
|
|
4
|
+
attr_accessor :name, :parent, :type
|
|
5
|
+
|
|
6
|
+
def render
|
|
7
|
+
raise ConfigurationError unless valid?
|
|
8
|
+
|
|
9
|
+
inherited_name = "#{name}"
|
|
10
|
+
inherited_name << " : #{parent}" if parent
|
|
11
|
+
(
|
|
12
|
+
["source #{inherited_name}", "{"] +
|
|
13
|
+
settings_body +
|
|
14
|
+
["}", ""]
|
|
15
|
+
).join("\n")
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def valid?
|
|
19
|
+
!( @name.nil? || @type.nil? )
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Riddle
|
|
2
|
+
class Configuration
|
|
3
|
+
class SQLSource < Riddle::Configuration::Source
|
|
4
|
+
self.settings = [:type, :sql_host, :sql_user, :sql_pass, :sql_db,
|
|
5
|
+
:sql_port, :sql_sock, :mysql_connect_flags, :sql_query_pre, :sql_query,
|
|
6
|
+
:sql_query_range, :sql_range_step, :sql_attr_uint, :sql_attr_bool,
|
|
7
|
+
:sql_attr_timestamp, :sql_attr_str2ordinal, :sql_attr_float,
|
|
8
|
+
:sql_attr_multi, :sql_query_post, :sql_query_post_index,
|
|
9
|
+
:sql_ranged_throttle, :sql_query_info]
|
|
10
|
+
|
|
11
|
+
attr_accessor *self.settings
|
|
12
|
+
|
|
13
|
+
def initialize(name, type)
|
|
14
|
+
@name = name
|
|
15
|
+
@type = type
|
|
16
|
+
|
|
17
|
+
@sql_query_pre = []
|
|
18
|
+
@sql_attr_uint = []
|
|
19
|
+
@sql_attr_bool = []
|
|
20
|
+
@sql_attr_timestamp = []
|
|
21
|
+
@sql_attr_str2ordinal = []
|
|
22
|
+
@sql_attr_float = []
|
|
23
|
+
@sql_attr_multi = []
|
|
24
|
+
@sql_query_post = []
|
|
25
|
+
@sql_query_post_index = []
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def valid?
|
|
29
|
+
super && (!( @sql_host.nil? || @sql_user.nil? || @sql_db.nil? ||
|
|
30
|
+
@sql_query.nil? ) || !@parent.nil?)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Riddle
|
|
2
|
+
class Configuration
|
|
3
|
+
class XMLSource < Riddle::Configuration::Source
|
|
4
|
+
self.settings = [:type, :xmlpipe_command, :xmlpipe_field,
|
|
5
|
+
:xmlpipe_attr_uint, :xmlpipe_attr_bool, :xmlpipe_attr_timestamp,
|
|
6
|
+
:xmlpipe_attr_str2ordinal, :xmlpipe_attr_float, :xmlpipe_attr_multi]
|
|
7
|
+
|
|
8
|
+
attr_accessor *self.settings
|
|
9
|
+
|
|
10
|
+
def initialize(name, type)
|
|
11
|
+
@name = name
|
|
12
|
+
@type = type
|
|
13
|
+
|
|
14
|
+
@xmlpipe_field = []
|
|
15
|
+
@xmlpipe_attr_uint = []
|
|
16
|
+
@xmlpipe_attr_bool = []
|
|
17
|
+
@xmlpipe_attr_timestamp = []
|
|
18
|
+
@xmlpipe_attr_str2ordinal = []
|
|
19
|
+
@xmlpipe_attr_float = []
|
|
20
|
+
@xmlpipe_attr_multi = []
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def valid?
|
|
24
|
+
super && ( !@xmlpipe_command.nil? || !parent.nil? )
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Riddle
|
|
2
|
+
class Controller
|
|
3
|
+
def initialize(configuration, path)
|
|
4
|
+
@configuration = configuration
|
|
5
|
+
@path = path
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def index
|
|
9
|
+
cmd = "indexer --config #{@path} --all"
|
|
10
|
+
cmd << " --rotate" if running?
|
|
11
|
+
`#{cmd}`
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def start
|
|
15
|
+
return if running?
|
|
16
|
+
|
|
17
|
+
cmd = "searchd --pidfile --config #{@path}"
|
|
18
|
+
`#{cmd}`
|
|
19
|
+
|
|
20
|
+
sleep(1)
|
|
21
|
+
|
|
22
|
+
unless running?
|
|
23
|
+
puts "Failed to start searchd daemon. Check #{@configuration.searchd.log}."
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def stop
|
|
28
|
+
return unless running?
|
|
29
|
+
`kill #{pid}`
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def pid
|
|
33
|
+
if File.exists?("#{@configuration.searchd.pid_file}")
|
|
34
|
+
`cat #{@configuration.searchd.pid_file}`[/\d+/]
|
|
35
|
+
else
|
|
36
|
+
nil
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def running?
|
|
41
|
+
pid && `ps #{pid} | wc -l`.to_i > 1
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: sherpa99-thinking-sphinx
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.1.4
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Pat Allan
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2009-01-17 00:00:00 -08:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies: []
|
|
15
|
+
|
|
16
|
+
description: A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching.
|
|
17
|
+
email: pat@freelancing-gods.com
|
|
18
|
+
executables: []
|
|
19
|
+
|
|
20
|
+
extensions: []
|
|
21
|
+
|
|
22
|
+
extra_rdoc_files: []
|
|
23
|
+
|
|
24
|
+
files:
|
|
25
|
+
- contribute.rb
|
|
26
|
+
- cucumber.yml
|
|
27
|
+
- features
|
|
28
|
+
- features/a.rb
|
|
29
|
+
- features/attribute_transformation.feature
|
|
30
|
+
- features/datetime_deltas.feature
|
|
31
|
+
- features/delayed_delta_indexing.feature
|
|
32
|
+
- features/deleting_instances.feature
|
|
33
|
+
- features/facets.feature
|
|
34
|
+
- features/handling_edits.feature
|
|
35
|
+
- features/retry_stale_indexes.feature
|
|
36
|
+
- features/searching_across_models.feature
|
|
37
|
+
- features/searching_by_model.feature
|
|
38
|
+
- features/searching_with_find_arguments.feature
|
|
39
|
+
- features/sphinx_detection.feature
|
|
40
|
+
- features/step_definitions
|
|
41
|
+
- features/step_definitions/alpha_steps.rb
|
|
42
|
+
- features/step_definitions/beta_steps.rb
|
|
43
|
+
- features/step_definitions/cat_steps.rb
|
|
44
|
+
- features/step_definitions/common_steps.rb
|
|
45
|
+
- features/step_definitions/datetime_delta_steps.rb
|
|
46
|
+
- features/step_definitions/delayed_delta_indexing_steps.rb
|
|
47
|
+
- features/step_definitions/facet_steps.rb
|
|
48
|
+
- features/step_definitions/find_arguments_steps.rb
|
|
49
|
+
- features/step_definitions/gamma_steps.rb
|
|
50
|
+
- features/step_definitions/search_steps.rb
|
|
51
|
+
- features/step_definitions/sphinx_steps.rb
|
|
52
|
+
- features/support
|
|
53
|
+
- features/support/db
|
|
54
|
+
- features/support/db/active_record.rb
|
|
55
|
+
- features/support/db/database.example.yml
|
|
56
|
+
- features/support/db/migrations
|
|
57
|
+
- features/support/db/migrations/create_alphas.rb
|
|
58
|
+
- features/support/db/migrations/create_animals.rb
|
|
59
|
+
- features/support/db/migrations/create_betas.rb
|
|
60
|
+
- features/support/db/migrations/create_boxes.rb
|
|
61
|
+
- features/support/db/migrations/create_comments.rb
|
|
62
|
+
- features/support/db/migrations/create_delayed_betas.rb
|
|
63
|
+
- features/support/db/migrations/create_developers.rb
|
|
64
|
+
- features/support/db/migrations/create_gammas.rb
|
|
65
|
+
- features/support/db/migrations/create_people.rb
|
|
66
|
+
- features/support/db/migrations/create_posts.rb
|
|
67
|
+
- features/support/db/migrations/create_thetas.rb
|
|
68
|
+
- features/support/db/mysql.rb
|
|
69
|
+
- features/support/db/postgresql.rb
|
|
70
|
+
- features/support/env.rb
|
|
71
|
+
- features/support/models
|
|
72
|
+
- features/support/models/alpha.rb
|
|
73
|
+
- features/support/models/animal.rb
|
|
74
|
+
- features/support/models/beta.rb
|
|
75
|
+
- features/support/models/box.rb
|
|
76
|
+
- features/support/models/cat.rb
|
|
77
|
+
- features/support/models/comment.rb
|
|
78
|
+
- features/support/models/delayed_beta.rb
|
|
79
|
+
- features/support/models/developer.rb
|
|
80
|
+
- features/support/models/gamma.rb
|
|
81
|
+
- features/support/models/person.rb
|
|
82
|
+
- features/support/models/post.rb
|
|
83
|
+
- features/support/models/theta.rb
|
|
84
|
+
- features/support/post_database.rb
|
|
85
|
+
- features/support/z.rb
|
|
86
|
+
- ginger_scenarios.rb
|
|
87
|
+
- init.rb
|
|
88
|
+
- lib
|
|
89
|
+
- lib/thinking_sphinx
|
|
90
|
+
- lib/thinking_sphinx/active_record
|
|
91
|
+
- lib/thinking_sphinx/active_record/delta.rb
|
|
92
|
+
- lib/thinking_sphinx/active_record/has_many_association.rb
|
|
93
|
+
- lib/thinking_sphinx/active_record/search.rb
|
|
94
|
+
- lib/thinking_sphinx/active_record.rb
|
|
95
|
+
- lib/thinking_sphinx/adapters
|
|
96
|
+
- lib/thinking_sphinx/adapters/abstract_adapter.rb
|
|
97
|
+
- lib/thinking_sphinx/adapters/mysql_adapter.rb
|
|
98
|
+
- lib/thinking_sphinx/adapters/postgresql_adapter.rb
|
|
99
|
+
- lib/thinking_sphinx/association.rb
|
|
100
|
+
- lib/thinking_sphinx/attribute.rb
|
|
101
|
+
- lib/thinking_sphinx/collection.rb
|
|
102
|
+
- lib/thinking_sphinx/configuration.rb
|
|
103
|
+
- lib/thinking_sphinx/core
|
|
104
|
+
- lib/thinking_sphinx/core/string.rb
|
|
105
|
+
- lib/thinking_sphinx/deltas
|
|
106
|
+
- lib/thinking_sphinx/deltas/datetime_delta.rb
|
|
107
|
+
- lib/thinking_sphinx/deltas/default_delta.rb
|
|
108
|
+
- lib/thinking_sphinx/deltas/delayed_delta
|
|
109
|
+
- lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
|
|
110
|
+
- lib/thinking_sphinx/deltas/delayed_delta/flag_as_deleted_job.rb
|
|
111
|
+
- lib/thinking_sphinx/deltas/delayed_delta/job.rb
|
|
112
|
+
- lib/thinking_sphinx/deltas/delayed_delta.rb
|
|
113
|
+
- lib/thinking_sphinx/deltas.rb
|
|
114
|
+
- lib/thinking_sphinx/facet.rb
|
|
115
|
+
- lib/thinking_sphinx/facet_collection.rb
|
|
116
|
+
- lib/thinking_sphinx/field.rb
|
|
117
|
+
- lib/thinking_sphinx/index
|
|
118
|
+
- lib/thinking_sphinx/index/builder.rb
|
|
119
|
+
- lib/thinking_sphinx/index/faux_column.rb
|
|
120
|
+
- lib/thinking_sphinx/index.rb
|
|
121
|
+
- lib/thinking_sphinx/rails_additions.rb
|
|
122
|
+
- lib/thinking_sphinx/search.rb
|
|
123
|
+
- lib/thinking_sphinx/tasks.rb
|
|
124
|
+
- lib/thinking_sphinx.rb
|
|
125
|
+
- LICENCE
|
|
126
|
+
- rails
|
|
127
|
+
- rails/init.rb
|
|
128
|
+
- Rakefile
|
|
129
|
+
- README
|
|
130
|
+
- README.textile
|
|
131
|
+
- spec
|
|
132
|
+
- spec/fixtures
|
|
133
|
+
- spec/fixtures/data.sql
|
|
134
|
+
- spec/fixtures/database.yml.default
|
|
135
|
+
- spec/fixtures/models.rb
|
|
136
|
+
- spec/fixtures/structure.sql
|
|
137
|
+
- spec/spec_helper.rb
|
|
138
|
+
- spec/sphinx_helper.rb
|
|
139
|
+
- spec/unit
|
|
140
|
+
- spec/unit/thinking_sphinx
|
|
141
|
+
- spec/unit/thinking_sphinx/active_record
|
|
142
|
+
- spec/unit/thinking_sphinx/active_record/delta_spec.rb
|
|
143
|
+
- spec/unit/thinking_sphinx/active_record/has_many_association_spec.rb
|
|
144
|
+
- spec/unit/thinking_sphinx/active_record/search_spec.rb
|
|
145
|
+
- spec/unit/thinking_sphinx/active_record_spec.rb
|
|
146
|
+
- spec/unit/thinking_sphinx/association_spec.rb
|
|
147
|
+
- spec/unit/thinking_sphinx/attribute_spec.rb
|
|
148
|
+
- spec/unit/thinking_sphinx/collection_spec.rb
|
|
149
|
+
- spec/unit/thinking_sphinx/configuration_spec.rb
|
|
150
|
+
- spec/unit/thinking_sphinx/core
|
|
151
|
+
- spec/unit/thinking_sphinx/core/string_spec.rb
|
|
152
|
+
- spec/unit/thinking_sphinx/field_spec.rb
|
|
153
|
+
- spec/unit/thinking_sphinx/index
|
|
154
|
+
- spec/unit/thinking_sphinx/index/builder_spec.rb
|
|
155
|
+
- spec/unit/thinking_sphinx/index/faux_column_spec.rb
|
|
156
|
+
- spec/unit/thinking_sphinx/index_spec.rb
|
|
157
|
+
- spec/unit/thinking_sphinx/search_spec.rb
|
|
158
|
+
- spec/unit/thinking_sphinx_spec.rb
|
|
159
|
+
- tasks
|
|
160
|
+
- tasks/distribution.rb
|
|
161
|
+
- tasks/rails.rake
|
|
162
|
+
- tasks/testing.rb
|
|
163
|
+
- thinking-sphinx.gemspec
|
|
164
|
+
- vendor
|
|
165
|
+
- vendor/after_commit
|
|
166
|
+
- vendor/after_commit/init.rb
|
|
167
|
+
- vendor/after_commit/lib
|
|
168
|
+
- vendor/after_commit/lib/after_commit
|
|
169
|
+
- vendor/after_commit/lib/after_commit/active_record.rb
|
|
170
|
+
- vendor/after_commit/lib/after_commit/connection_adapters.rb
|
|
171
|
+
- vendor/after_commit/lib/after_commit.rb
|
|
172
|
+
- vendor/after_commit/LICENSE
|
|
173
|
+
- vendor/after_commit/Rakefile
|
|
174
|
+
- vendor/after_commit/README
|
|
175
|
+
- vendor/after_commit/test
|
|
176
|
+
- vendor/after_commit/test/after_commit_test.rb
|
|
177
|
+
- vendor/delayed_job
|
|
178
|
+
- vendor/delayed_job/lib
|
|
179
|
+
- vendor/delayed_job/lib/delayed
|
|
180
|
+
- vendor/delayed_job/lib/delayed/job.rb
|
|
181
|
+
- vendor/delayed_job/lib/delayed/message_sending.rb
|
|
182
|
+
- vendor/delayed_job/lib/delayed/performable_method.rb
|
|
183
|
+
- vendor/delayed_job/lib/delayed/worker.rb
|
|
184
|
+
- vendor/riddle
|
|
185
|
+
- vendor/riddle/lib
|
|
186
|
+
- vendor/riddle/lib/riddle
|
|
187
|
+
- vendor/riddle/lib/riddle/client
|
|
188
|
+
- vendor/riddle/lib/riddle/client/filter.rb
|
|
189
|
+
- vendor/riddle/lib/riddle/client/message.rb
|
|
190
|
+
- vendor/riddle/lib/riddle/client/response.rb
|
|
191
|
+
- vendor/riddle/lib/riddle/client.rb
|
|
192
|
+
- vendor/riddle/lib/riddle/configuration
|
|
193
|
+
- vendor/riddle/lib/riddle/configuration/distributed_index.rb
|
|
194
|
+
- vendor/riddle/lib/riddle/configuration/index.rb
|
|
195
|
+
- vendor/riddle/lib/riddle/configuration/indexer.rb
|
|
196
|
+
- vendor/riddle/lib/riddle/configuration/remote_index.rb
|
|
197
|
+
- vendor/riddle/lib/riddle/configuration/searchd.rb
|
|
198
|
+
- vendor/riddle/lib/riddle/configuration/section.rb
|
|
199
|
+
- vendor/riddle/lib/riddle/configuration/source.rb
|
|
200
|
+
- vendor/riddle/lib/riddle/configuration/sql_source.rb
|
|
201
|
+
- vendor/riddle/lib/riddle/configuration/xml_source.rb
|
|
202
|
+
- vendor/riddle/lib/riddle/configuration.rb
|
|
203
|
+
- vendor/riddle/lib/riddle/controller.rb
|
|
204
|
+
- vendor/riddle/lib/riddle.rb
|
|
205
|
+
has_rdoc: true
|
|
206
|
+
homepage: http://ts.freelancing-gods.com
|
|
207
|
+
post_install_message:
|
|
208
|
+
rdoc_options:
|
|
209
|
+
- --title
|
|
210
|
+
- Thinking Sphinx -- Rails/Merb Sphinx Plugin
|
|
211
|
+
- --line-numbers
|
|
212
|
+
require_paths:
|
|
213
|
+
- lib
|
|
214
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
215
|
+
requirements:
|
|
216
|
+
- - ">="
|
|
217
|
+
- !ruby/object:Gem::Version
|
|
218
|
+
version: "0"
|
|
219
|
+
version:
|
|
220
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
|
+
requirements:
|
|
222
|
+
- - ">="
|
|
223
|
+
- !ruby/object:Gem::Version
|
|
224
|
+
version: "0"
|
|
225
|
+
version:
|
|
226
|
+
requirements: []
|
|
227
|
+
|
|
228
|
+
rubyforge_project: thinking-sphinx
|
|
229
|
+
rubygems_version: 1.2.0
|
|
230
|
+
signing_key:
|
|
231
|
+
specification_version: 2
|
|
232
|
+
summary: A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching.
|
|
233
|
+
test_files:
|
|
234
|
+
- spec/unit/thinking_sphinx/active_record/delta_spec.rb
|
|
235
|
+
- spec/unit/thinking_sphinx/active_record/has_many_association_spec.rb
|
|
236
|
+
- spec/unit/thinking_sphinx/active_record/search_spec.rb
|
|
237
|
+
- spec/unit/thinking_sphinx/active_record_spec.rb
|
|
238
|
+
- spec/unit/thinking_sphinx/association_spec.rb
|
|
239
|
+
- spec/unit/thinking_sphinx/attribute_spec.rb
|
|
240
|
+
- spec/unit/thinking_sphinx/collection_spec.rb
|
|
241
|
+
- spec/unit/thinking_sphinx/configuration_spec.rb
|
|
242
|
+
- spec/unit/thinking_sphinx/core/string_spec.rb
|
|
243
|
+
- spec/unit/thinking_sphinx/field_spec.rb
|
|
244
|
+
- spec/unit/thinking_sphinx/index/builder_spec.rb
|
|
245
|
+
- spec/unit/thinking_sphinx/index/faux_column_spec.rb
|
|
246
|
+
- spec/unit/thinking_sphinx/index_spec.rb
|
|
247
|
+
- spec/unit/thinking_sphinx/search_spec.rb
|
|
248
|
+
- spec/unit/thinking_sphinx_spec.rb
|