lib/elasticsearch/model/multimodel.rb in elasticsearch-model-7.2.1 vs lib/elasticsearch/model/multimodel.rb in elasticsearch-model-8.0.0.pre
- old
+ new
@@ -15,11 +15,10 @@
# specific language governing permissions and limitations
# under the License.
module Elasticsearch
module Model
-
# Keeps a global registry of classes that include `Elasticsearch::Model`
#
class Registry
def initialize
@models = []
@@ -78,20 +77,12 @@
#
def index_name
models.map { |m| m.index_name }
end
- # Get an Array of document types used for retrieving documents when doing a search across multiple models
- #
- # @return [Array] the list of document types used for retrieving documents
- #
- def document_type
- models.map { |m| m.document_type }.compact.presence
- end
-
# Get the client common for all models
#
- # @return Elasticsearch::Transport::Client
+ # @return Elastic::Transport::Client
#
def client
Elasticsearch::Model.client
end
end