Module: Xapit::Client::Membership::AdditionalMethods::ClassMethods

Defined in:
lib/xapit/client/membership.rb

Instance Method Summary collapse

Instance Method Details

#search(*args) ⇒ Object



35
36
37
# File 'lib/xapit/client/membership.rb', line 35

def search(*args)
  xapit_search(*args)
end

#xapit_index_builderObject



27
28
29
# File 'lib/xapit/client/membership.rb', line 27

def xapit_index_builder
  @xapit_index_builder
end

#xapit_model_adapterObject



23
24
25
# File 'lib/xapit/client/membership.rb', line 23

def xapit_model_adapter
  @xapit_model_adapter ||= Xapit::Client::AbstractModelAdapter.adapter_class(self).new(self)
end

#xapit_search(*args) ⇒ Object



31
32
33
# File 'lib/xapit/client/membership.rb', line 31

def xapit_search(*args)
  Collection.new.in_classes(self).include_facets(*xapit_index_builder.facets).search(*args)
end