Module: Ext::DelayedIndexing::ClassMethods

Defined in:
app/models/ext/delayed_indexing.rb

Instance Method Summary collapse

Instance Method Details

#search_index(query, organization) ⇒ Object



16
17
18
19
20
21
# File 'app/models/ext/delayed_indexing.rb', line 16

def search_index(query, organization)
  self.search do
    fulltext query
    with(:organization_id).equal_to(organization.id)
  end.results
end