Skip to content

Commit

Permalink
[DS-1449] Fixing related items retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVdV committed Jan 24, 2013
1 parent cc2d459 commit ecb14db
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1904,9 +1904,9 @@ public Object transform(Object input)

QueryResponse rsp = getSolr().query(solrQuery);
NamedList mltResults = (NamedList) rsp.getResponse().get("moreLikeThis");
if(mltResults != null && mltResults.get(item.getHandle()) != null)
if(mltResults != null && mltResults.get(item.getType() + "-" + item.getID()) != null)
{
SolrDocumentList relatedDocs = (SolrDocumentList) mltResults.get(item.getHandle());
SolrDocumentList relatedDocs = (SolrDocumentList) mltResults.get(item.getType() + "-" + item.getID());
for (Object relatedDoc : relatedDocs)
{
SolrDocument relatedDocument = (SolrDocument) relatedDoc;
Expand Down

0 comments on commit ecb14db

Please sign in to comment.