1

I have a similar question as in "Boost recent item in MoreLikeThis Solr request handler" Boost recent item in MoreLikeThis Solr request handler

I would like to Boost recent Items returned from the MoreLikeThis Handler or Component. I found out that bf isn't supported for MoreLikeThisHandler as it is a Dismax Parameter.

Therefore I tried following (within my solrconfig.xml):

<requestHandler name="/select" class="solr.SearchHandler">
<lst name="defaults">
    <str name="df">id</str>
    <str name="mlt">true</str>
    <str name="mlt.count">10</str>
    <str name="mlt.fl">project,type,summary,description,environment,fixfor,component</str>
    <str name="mlt.mintf">1</str>
    <str name="mlt.mindf">2</str>
    <str name="mlt.boost">true</str>
    <str name="rows">20</str>
    <str name="fl">id,key,project,summary,reporter,assignee,updated,score</str>
    <str name="bf">ms(NOW/HOUR,updated)</str>
</lst>
<!--<arr name="components">
    <str>mlt</str>
</arr>-->

with

<field name="id" type="long" indexed="true" stored="true" required="true" multiValued="false" termVectors="true"/><!-- is termVector by long needed? -->
...
<field name="key" type="string" indexed="true" stored="true" required="true" multiValued="false"/>
...
<field name="description" type="text_general" indexed="true" stored="false" required="true" multiValued="false" termVectors="true"/>
...
<field name="updated" type="date" indexed="true" stored="true" required="false" multiValued="false"/>
Community
  • 1
  • 1
velop
  • 3,102
  • 1
  • 27
  • 30
  • I don't think you can currently do that in Solr. You should implement MLT functionality as a MLT query parser instead of request handler or search component and contribute it back to the community. – Alexey Serba Feb 18 '13 at 20:31
  • I'm not that deep into Solr right now and have to write my thesis first before I try something like this ;) thx anyway – velop Apr 05 '13 at 12:14

1 Answers1

0

Mlt boost does not seem to be supported.
You can probably check the Mlt Sort Patch SOLR-1545

Jayendra
  • 52,349
  • 4
  • 80
  • 90
  • Thank you for your help. I made a dirty fix now: Request 20 Docs instead of 10 and sort it by hand (in java) – velop Apr 05 '13 at 12:12