Hi iorixxx,

Sorry for the delay in replying.

The code is the below:

/public void performSearch(DSpaceObject dso) throws SearchServiceException {

        if(queryResults != null)
        {
            return;
        }

        this.queryArgs = prepareDefaultFilters(getView());
        this.queryArgs.setRows(1);
        this.queryArgs.add("fl","dc.contributor.author,handle");
        this.queryArgs.add("mlt","true");
        this.queryArgs.add("mlt.fl","dc.contributor.author,handle");
        this.queryArgs.add("mlt.mindf","1");
        this.queryArgs.add("mlt.mintf","1");
        this.queryArgs.setQuery("handle:" + dso.getHandle());
        this.queryArgs.setRows(1);

        queryResults = getSearchService().search(queryArgs);

    }
/

I use dc.contributor.author for similarity (mlt.fl). I don't know which
parameter is mlt.qf, the code by default is the above, and I only changed
the part of dc.contributor.author.

Thanks

 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/MoreLikeThis-tp4114605p4116022.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to