Method: Elasticsearch::Model::Multimodel#document_type
- Defined in:
- lib/elasticsearch/model/multimodel.rb
#document_type ⇒ Array
Get an Array of document types used for retrieving documents when doing a search across multiple models
70 71 72 |
# File 'lib/elasticsearch/model/multimodel.rb', line 70 def document_type models.map { |m| m.document_type } end |