Hi Ruben

Did you check the configuration:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/SOLR_Discovery/3.2#Step_3

Cheers

hg

*Hilton Gibson*
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://scholar.sun.ac.za
http://bit.ly/goodir
http://library.sun.ac.za
http://za.linkedin.com/in/hiltongibson


On 7 February 2014 11:49, Ruben <[email protected]> wrote:

>  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
>
------------------------------------------------------------------------------
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

Reply via email to