Skip to content

Commit

Permalink
1.4.13
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Aug 10, 2012
1 parent 44e247b commit 1590847
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
4 changes: 3 additions & 1 deletion 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.
Expand Down
20 changes: 10 additions & 10 deletions 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
Expand Down
2 changes: 1 addition & 1 deletion lib/thinking_sphinx/version.rb
@@ -1,3 +1,3 @@
module ThinkingSphinx
Version = '1.4.12'
Version = '1.4.13'
end

0 comments on commit 1590847

Please sign in to comment.