Sha256: 17205156dbd57f4ef16679045cef43f0abf605dc0d4c5d763d666506474552e8

Contents?: true

Size: 281 Bytes

Versions: 17

Compression:

Stored size: 281 Bytes

Contents

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

17 entries across 17 versions & 1 rubygems

Version Path
blacklight-5.19.2 lib/blacklight/solr/response/more_like_this.rb
blacklight-5.19.1 lib/blacklight/solr/response/more_like_this.rb
blacklight-5.19.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-5.18.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-5.17.2 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.0.0.pre5 lib/blacklight/solr/response/more_like_this.rb
blacklight-5.17.1 lib/blacklight/solr/response/more_like_this.rb
blacklight-5.17.0 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.0.0.pre4 lib/blacklight/solr/response/more_like_this.rb
blacklight-5.16.4 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.0.0.pre3 lib/blacklight/solr/response/more_like_this.rb
blacklight-5.16.3 lib/blacklight/solr/response/more_like_this.rb
blacklight-5.16.2 lib/blacklight/solr/response/more_like_this.rb
blacklight-5.16.1 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.0.0.pre2 lib/blacklight/solr/response/more_like_this.rb
blacklight-6.0.0.pre1 app/models/blacklight/solr/response/more_like_this.rb
blacklight-5.16.0 app/models/blacklight/solr/response/more_like_this.rb