The answer to my owner question: ... <requestHandler name="mlt" class="solr.MoreLikeThisHandler"> <lst name="defaults"/> </requestHandler> ...
would work. -Yao Yao Ge wrote: > > I am not sure about the parameters for MLT the requestHandler plugin. Can > one of you share the solrconfig.xml entry for MLT? Thanks in advance. > -Yao > > > Bill Au wrote: >> >> I have been using the StandardRequestHandler (ie /solr/select). fq does >> work with the MoreLikeThisHandler. I will switch to use that. Thanks. >> >> Bill >> >> On Tue, Jul 7, 2009 at 11:02 AM, Marc Sturlese >> <marc.sturl...@gmail.com>wrote: >> >>> >>> At least in trunk, if you request for: >>> http://localhost:8084/solr/core_A/mlt?q=id:7468365&fq=price[100<http://localhost:8084/solr/core_A/mlt?q=id:7468365&fq=price%5B100>TO >>> 200] >>> It will filter the MoreLikeThis results >>> >>> >>> Bill Au wrote: >>> > >>> > I think fq only works on the main response, not the mlt matches. I >>> found >>> > a >>> > couple of releated jira: >>> > >>> > http://issues.apache.org/jira/browse/SOLR-295 >>> > http://issues.apache.org/jira/browse/SOLR-281 >>> > >>> > If I am reading them correctly, I should be able to use DIsMax and >>> > MoreLikeThis together. I will give that a try and report back. >>> > >>> > Bill >>> > >>> > >>> > On Tue, Jul 7, 2009 at 4:45 AM, Marc Sturlese >>> > <marc.sturl...@gmail.com>wrote: >>> > >>> >> >>> >> Using MoreLikeThisHandler you can use fq to filter your results. As >>> far >>> >> as >>> >> I >>> >> know bq are not allowed. >>> >> >>> >> >>> >> Bill Au wrote: >>> >> > >>> >> > I have been trying to restrict MoreLikeThis results without any >>> luck >>> >> also. >>> >> > In additional to restricting the results, I am also looking to >>> >> influence >>> >> > the >>> >> > scores similar to the way boost query (bq) works in the >>> >> > DisMaxRequestHandler. >>> >> > >>> >> > I think Solr's MoreLikeThis depends on Lucene's contrib queries >>> >> > MoreLikeThis, or at least it used to. Has anyone looked into >>> enhancing >>> >> > Solrs' MoreLikeThis to support bq and restricting mlt results? >>> >> > >>> >> > Bill >>> >> > >>> >> > On Mon, Jul 6, 2009 at 2:16 PM, Yao Ge <yao...@gmail.com> wrote: >>> >> > >>> >> >> >>> >> >> I could not find any support from >>> >> >> http://wiki.apache.org/solr/MoreLikeThison >>> >> >> how to restrict MLT results to certain subsets. I passed along a >>> fq >>> >> >> parameter and it is ignored. Since we can not incorporate the >>> filters >>> >> in >>> >> >> the >>> >> >> query itself which is used to retrieve the target for similarity >>> >> >> comparison, >>> >> >> it appears there is no way to filter MLT results. BTW. I am using >>> Solr >>> >> >> 1.3. >>> >> >> Please let me know if there is way (other than hacking the source >>> >> code) >>> >> >> to >>> >> >> do this. Thanks! >>> >> >> -- >>> >> >> View this message in context: >>> >> >> >>> >> >>> http://www.nabble.com/Filtering-MoreLikeThis-results-tp24360355p24360355.html >>> >> >> Sent from the Solr - User mailing list archive at Nabble.com. >>> >> >> >>> >> >> >>> >> > >>> >> > >>> >> >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/Filtering-MoreLikeThis-results-tp24360355p24369257.html >>> >> Sent from the Solr - User mailing list archive at Nabble.com. >>> >> >>> >> >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Filtering-MoreLikeThis-results-tp24360355p24374996.html >>> Sent from the Solr - User mailing list archive at Nabble.com. >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Filtering-MoreLikeThis-results-tp24360355p24380408.html Sent from the Solr - User mailing list archive at Nabble.com.