friendlyfashion-thinking-sphinx 2.0.13.2 → 2.0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/thinking_sphinx/search.rb +12 -12
- data/lib/thinking_sphinx/version.rb +1 -1
- metadata +2 -2
@@ -424,24 +424,24 @@ module ThinkingSphinx
|
|
424
424
|
|
425
425
|
begin
|
426
426
|
retry_on_stale_index do
|
427
|
-
|
428
|
-
|
427
|
+
retry_on_index_not_preread do
|
428
|
+
begin
|
429
429
|
log query do
|
430
430
|
@results = client.query query, indexes, comment
|
431
431
|
end
|
432
|
-
|
433
|
-
|
434
|
-
log "Found #{total} result#{'s' unless total == 1}"
|
432
|
+
total = @results[:total_found].to_i
|
433
|
+
log "Found #{total} result#{'s' unless total == 1}"
|
435
434
|
|
436
|
-
|
435
|
+
log "Sphinx Daemon returned warning: #{warning}" if warning?
|
437
436
|
|
438
|
-
|
439
|
-
|
440
|
-
|
437
|
+
if error?
|
438
|
+
log "Sphinx Daemon returned error: #{error}"
|
439
|
+
raise SphinxError.new(error, @results) unless options[:ignore_errors]
|
440
|
+
end
|
441
|
+
rescue Errno::ECONNREFUSED => err
|
442
|
+
raise ThinkingSphinx::ConnectionError,
|
443
|
+
'Connection to Sphinx Daemon (searchd) failed.'
|
441
444
|
end
|
442
|
-
rescue Errno::ECONNREFUSED => err
|
443
|
-
raise ThinkingSphinx::ConnectionError,
|
444
|
-
'Connection to Sphinx Daemon (searchd) failed.'
|
445
445
|
end
|
446
446
|
|
447
447
|
compose_results
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: friendlyfashion-thinking-sphinx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.13.
|
4
|
+
version: 2.0.13.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|