Hi everybody,
I have written in this list days ago, but I didn't found any response,
so sorry for posting once again but I don't find how to resolve this
issue. I need to change the values of MoreLikeThis Solr parameters,
which can be changed in RelatedItems.java file. Now I'm filtering
related documents by author, and I want to filter by his name and
surnames, but Solr is filtering authors by name or surname, so it is
doing an OR instead of an AND. I have readed Solr documentation (
https://wiki.apache.org/solr/MoreLikeThis) and explains every parameter
that can be configured in the file that I said before. The part of code
which I must modify is:
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);
}
Anyonar can help me with this issue?
Thanks in advance,
Rubén
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette