Sha256: 9a13190fa20a1916e854ae314061cb1fbb02366161d4b596aa05da14daca4994

Contents?: true

Size: 311 Bytes

Versions: 43

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true
module Blacklight::Solr::Response::MoreLikeThis
  def more_like document
    mlt = more_like_this[document.id]
    return [] unless mlt and mlt['docs']

    mlt['docs']
  end

  def more_like_this
    return {} unless self[:moreLikeThis]
        
    self[:moreLikeThis]
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
blacklight-6.25.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.24.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.23.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.22.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.21.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.20.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.19.2 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.19.1 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.19.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.18.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.17.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.16.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.15.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.14.1 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.14.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.13.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.12.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.11.2 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.11.1 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.11.0 lib/blacklight/solr/response/more_like_this.rb