freelancing-god-thinking-sphinx 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/{README → README.textile} +81 -86
- data/lib/thinking_sphinx.rb +1 -1
- data/lib/thinking_sphinx/deltas/default_delta.rb +2 -1
- data/lib/thinking_sphinx/index.rb +2 -2
- data/tasks/distribution.rb +1 -1
- metadata +3 -3
data/{README → README.textile}
RENAMED
@@ -1,12 +1,12 @@
|
|
1
|
-
|
1
|
+
h1. Thinking Sphinx
|
2
2
|
|
3
|
-
|
3
|
+
h2. Usage
|
4
4
|
|
5
|
-
First, if you haven't done so already, check out the main usage
|
5
|
+
First, if you haven't done so already, check out the main "usage":http://ts.freelancing-gods.com/usage.html page. Once you've done that, the next place to look for information is the specific method docs - ThinkingSphinx::Search and ThinkingSphinx::Index::Builder in particular.
|
6
6
|
|
7
7
|
Keep in mind that while Thinking Sphinx works for ActiveRecord with Merb, it doesn't yet support DataMapper (although that is planned).
|
8
8
|
|
9
|
-
|
9
|
+
h2. Contributing
|
10
10
|
|
11
11
|
Fork on GitHub and after you've committed tested patches, send a pull request.
|
12
12
|
|
@@ -26,104 +26,99 @@ Then install the ginger gem. The steps are the same, except that you might need
|
|
26
26
|
rake gem
|
27
27
|
sudo gem install pkg/ginger-1.1.0.gem
|
28
28
|
|
29
|
-
Then install the faker gem:
|
30
|
-
|
31
|
-
sudo gem install faker
|
32
|
-
|
33
29
|
Then set up your database:
|
34
30
|
|
35
31
|
cp spec/fixtures/database.yml.default spec/fixtures/database.yml
|
36
|
-
cp spec/fixtures/database.yml.default features/support/db/database.yml
|
37
32
|
mysqladmin -u root create thinking_sphinx
|
38
|
-
|
33
|
+
|
39
34
|
Make sure you don't have another Sphinx daemon (searchd) running. If you do, quit it with "rake ts:stop"
|
40
35
|
in the app root.
|
41
36
|
|
42
37
|
You should now have a passing test suite from which to build your patch on.
|
43
38
|
|
44
39
|
rake spec
|
45
|
-
|
46
|
-
|
40
|
+
|
47
41
|
If you get the message "Failed to start searchd daemon", run the spec with sudo:
|
48
42
|
|
49
43
|
sudo rake spec
|
50
|
-
|
51
|
-
|
44
|
+
|
52
45
|
If you quit the spec suite before it's completed, you may be left with data in the test
|
53
46
|
database, causing the next run to have failures. Let that run complete and then try again.
|
54
47
|
|
55
|
-
|
48
|
+
h2. Contributors
|
56
49
|
|
57
50
|
Since I first released this library, there's been quite a few people who have submitted patches, to my immense gratitude. Others have suggested syntax changes and general improvements. So my thanks to the following people:
|
58
51
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
52
|
+
* Joost Hietbrink
|
53
|
+
* Jonathan Conway
|
54
|
+
* Gregory Mirzayantz
|
55
|
+
* Tung Nguyen
|
56
|
+
* Sean Cribbs
|
57
|
+
* Benoit Caccinolo
|
58
|
+
* John Barton
|
59
|
+
* Oliver Beddows
|
60
|
+
* Arthur Zapparoli
|
61
|
+
* Dusty Doris
|
62
|
+
* Marcus Crafter
|
63
|
+
* Patrick Lenz
|
64
|
+
* Björn Andreasson
|
65
|
+
* James Healy
|
66
|
+
* Jae-Jun Hwang
|
67
|
+
* Xavier Shay
|
68
|
+
* Jason Rust
|
69
|
+
* Gopal Patel
|
70
|
+
* Chris Heald
|
71
|
+
* Peter Vandenberk
|
72
|
+
* Josh French
|
73
|
+
* Andrew Bennett
|
74
|
+
* Jordan Fowler
|
75
|
+
* Seth Walker
|
76
|
+
* Joe Noon
|
77
|
+
* Wolfgang Postler
|
78
|
+
* Rick Olson
|
79
|
+
* Killian Murphy
|
80
|
+
* Morten Primdahl
|
81
|
+
* Ryan Bates
|
82
|
+
* David Eisinger
|
83
|
+
* Shay Arnett
|
84
|
+
* Minh Tran
|
85
|
+
* Jeremy Durham
|
86
|
+
* Piotr Sarnacki
|
87
|
+
* Matt Johnson
|
88
|
+
* Nicolas Blanco
|
89
|
+
* Max Lapshin
|
90
|
+
* Josh Natanson
|
91
|
+
* Philip Hallstrom
|
92
|
+
* Christian Rishøj
|
93
|
+
* Mike Flester
|
94
|
+
* Jim Remsik
|
95
|
+
* Kennon Ballou
|
96
|
+
* Henrik Nyh
|
97
|
+
* Emil Tin
|
98
|
+
* Doug Cole
|
99
|
+
* Ed Hickey
|
100
|
+
* Evan Weaver
|
101
|
+
* Thibaut Barrere
|
102
|
+
* Kristopher Chambers
|
103
|
+
* Dmitrij Smalko
|
104
|
+
* Aleksey Yeschenko
|
105
|
+
* Lachie Cox
|
106
|
+
* Lourens Naude
|
107
|
+
* Tom Davies
|
108
|
+
* Dan Pickett
|
109
|
+
* Alex Caudill
|
110
|
+
* Jim Benton
|
111
|
+
* John Aughey
|
112
|
+
* Keith Pitty
|
113
|
+
* Jeff Talbot
|
114
|
+
* Dana Contreras
|
115
|
+
* Menno van der Sman
|
116
|
+
* Bill Harding
|
117
|
+
* Isaac Feliu
|
118
|
+
* Andrei Bocan
|
119
|
+
* László Bácsi
|
120
|
+
* Peter Wagenet
|
121
|
+
* Max Lapshin
|
122
|
+
* Martin Emde
|
123
|
+
* David Wennergren
|
124
|
+
* Mark Lane
|
data/lib/thinking_sphinx.rb
CHANGED
@@ -39,7 +39,8 @@ module ThinkingSphinx
|
|
39
39
|
|
40
40
|
def reset_query(model)
|
41
41
|
"UPDATE #{model.quoted_table_name} SET " +
|
42
|
-
"#{@index.quote_column(@column.to_s)} = #{adapter.boolean(false)}"
|
42
|
+
"#{@index.quote_column(@column.to_s)} = #{adapter.boolean(false)} " +
|
43
|
+
"WHERE #{@index.quote_column(@column.to_s)} = #{adapter.boolean(true)}"
|
43
44
|
end
|
44
45
|
|
45
46
|
def clause(model, toggled)
|
@@ -37,6 +37,8 @@ module ThinkingSphinx
|
|
37
37
|
@delta_object = nil
|
38
38
|
|
39
39
|
initialize_from_builder(&block) if block_given?
|
40
|
+
|
41
|
+
add_internal_attributes_and_facets
|
40
42
|
end
|
41
43
|
|
42
44
|
def name
|
@@ -48,7 +50,6 @@ module ThinkingSphinx
|
|
48
50
|
end
|
49
51
|
|
50
52
|
def to_riddle_for_core(offset, index)
|
51
|
-
add_internal_attributes_and_facets
|
52
53
|
link!
|
53
54
|
|
54
55
|
source = Riddle::Configuration::SQLSource.new(
|
@@ -64,7 +65,6 @@ module ThinkingSphinx
|
|
64
65
|
end
|
65
66
|
|
66
67
|
def to_riddle_for_delta(offset, index)
|
67
|
-
add_internal_attributes_and_facets
|
68
68
|
link!
|
69
69
|
|
70
70
|
source = Riddle::Configuration::SQLSource.new(
|
data/tasks/distribution.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freelancing-god-thinking-sphinx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-09 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -56,7 +56,7 @@ files:
|
|
56
56
|
- lib/thinking_sphinx/tasks.rb
|
57
57
|
- lib/thinking_sphinx.rb
|
58
58
|
- LICENCE
|
59
|
-
- README
|
59
|
+
- README.textile
|
60
60
|
- tasks/distribution.rb
|
61
61
|
- tasks/testing.rb
|
62
62
|
- tasks/rails.rake
|