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.