Method: Elasticsearch::Model::Multimodel#document_type

Defined in:
lib/elasticsearch/model/multimodel.rb

#document_typeArray

Get an Array of document types used for retrieving documents when doing a search across multiple models

Returns:

  • (Array)

    the list of document types used for retrieving documents



70
71
72
# File 'lib/elasticsearch/model/multimodel.rb', line 70

def document_type
  models.map { |m| m.document_type }
end