Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

1.4.13

  • Loading branch information...
commit 15908474e33729cd7b6c3726578c7603409d3203 1 parent 44e247b
@pat pat authored
View
4 HISTORY
@@ -1,4 +1,6 @@
-Edge:
+1.4.13 - August 10th 2012
+* Sphinx 2.0.5 support.
+* Hard retries for Sphinx exceptions (Andrew Hunter).
* Add support for association-filtered faceting (Andrew White).
* Cast PostgreSQL timestamps to their floored integers (instead of rounding up).
* Don't add array_accum to PostgreSQL v80311 (8.3.?) or newer.
View
20 lib/thinking_sphinx/bundled_search.rb
@@ -1,41 +1,41 @@
module ThinkingSphinx
class BundledSearch
attr_reader :client
-
+
def initialize
@searches = []
end
-
+
def search(*args)
@searches << ThinkingSphinx.search(*args)
@searches.last.append_to client
end
-
+
def search_for_ids(*args)
@searches << ThinkingSphinx.search_for_ids(*args)
@searches.last.append_to client
end
-
+
def searches
populate
@searches
end
-
+
private
-
+
def client
@client ||= ThinkingSphinx::Configuration.instance.client
end
-
+
def populated?
@populated
end
-
+
def populate
return if populated?
-
+
@populated = true
-
+
client.run.each_with_index do |results, index|
searches[index].populate_from_queue results
end
View
2  lib/thinking_sphinx/version.rb
@@ -1,3 +1,3 @@
module ThinkingSphinx
- Version = '1.4.12'
+ Version = '1.4.13'
end
Please sign in to comment.
Something went wrong with that request. Please try again.