Class LogiLogiXapian
In: lib/logi_logi_xapian.rb
Parent: Object

Methods

search  

Public Class methods

[Source]

    # File lib/logi_logi_xapian.rb, line 15
15:   def self.search(models, query)
16:     search = ActsAsXapian::Search.new(models, query, :limit => 5000)
17:     matches = search.results.collect {|r| r[:model]}
18:     matches.delete(nil)
19:     if matches.size == 5000
20:       raise 'Reached maximum size'
21:     end
22:     return matches
23:   end

[Validate]