class OpenSearch::DSL::Search::Queries::MoreLikeThis
A query which returns documents which are similar to the specified text or documents
@example Find documents similar to the provided text
search do query do more_like_this do like ['Eyjafjallajökull'] fields [:title, :abstract, :content] end end end
@example Find documents similar to the specified documents
search do query do more_like_this do like [{_id: 1}, {_id: 2}, {_id: 3}] fields [:title, :abstract] end end end
@see opensearch.org/guide/en/opensearch/reference/current/query-dsl-mlt-query.html