Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D59E188B2 for ; Tue, 29 Dec 2015 12:00:12 +0000 (UTC) Received: (qmail 44556 invoked by uid 500); 29 Dec 2015 12:00:09 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 44490 invoked by uid 500); 29 Dec 2015 12:00:08 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 44479 invoked by uid 99); 29 Dec 2015 12:00:08 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2015 12:00:08 +0000 Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id A5D4D1A0019 for ; Tue, 29 Dec 2015 12:00:08 +0000 (UTC) Received: by mail-ob0-f181.google.com with SMTP id ba1so157852722obb.3 for ; Tue, 29 Dec 2015 04:00:08 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.134.202 with SMTP id pm10mr6667586oeb.50.1451390407996; Tue, 29 Dec 2015 04:00:07 -0800 (PST) Received: by 10.202.65.212 with HTTP; Tue, 29 Dec 2015 04:00:07 -0800 (PST) In-Reply-To: References: <1450791059429-4246522.post@n3.nabble.com> <1450907215920-4247154.post@n3.nabble.com> <1450976223.3415343.475769770.71DC0F53@webmail.messagingengine.com> <1450991916.3462825.475892106.14097409@webmail.messagingengine.com> Date: Tue, 29 Dec 2015 12:00:07 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: mlt and document boost From: Alessandro Benedetti To: "solr-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=047d7b417a63b31e2705280829ac --047d7b417a63b31e2705280829ac Content-Type: text/plain; charset=UTF-8 I simply concatenated them : q={!boost b=recip(dist(2,0,star_rating,0,3),1,10,10)}{!mlt qf=name,description,facilities,resort,region,dest_level_2 mintf=1 mindf=3 maxqt=100}43083 >From the debug query the syntax is fine. Am i correct ? Cheers On 29 December 2015 at 11:48, Alessandro Benedetti wrote: > Hi Upaya, > talking about wrapping the MLT query parser with additional query parsers : > > let's assume I want to run my MLT query + 2 boost functions on the results > to affect the ranking. > > Can you give me an example of how to wrap them together ? > > Those two are the independent pieces : > {!boost b=recip(dist(2, 0, star_rating, 0, 3),1,10,10)} > {!mlt qf=name,description,facilities,resort,region,dest_level_2 mintf=1 > mindf=3 maxqt=100}43083 > > Cheers > > Cheers > > On 24 December 2015 at 21:18, Upayavira wrote: > >> If you are going to go that far, you can get the parsed query from the >> debug output, but seriously, if you are using a latest Solr and don't >> need the stream.body functionality in MLT, then use the MLT query >> parser, it is by far the best way to do it - as you get all the features >> of other query parsers and such for free. >> >> Upayavira >> >> On Thu, Dec 24, 2015, at 07:37 PM, Tim Hearn wrote: >> > One workaround is to use the 'important terms' feature to grab the query >> > generated by the MLT handler, then parse that list into your own solr >> > query >> > to use through a standard search handler. That way, you can get the >> same >> > results as if you used the MLT handler, and you can also use filter >> > querying, highlighting, etc. >> > >> > Note: I am currently running a Solr 5.0.0 Single-Core installation >> > >> > On Thu, Dec 24, 2015 at 11:57 AM, Upayavira wrote: >> > >> > > Which morelikethis are you using? Handler, SearchComponent or >> > > QueryParser? >> > > >> > > You should be a able to wrap the mlt query parser with the boost query >> > > parser with no problem. >> > > >> > > Upayavira >> > > >> > > On Thu, Dec 24, 2015, at 05:18 AM, Binoy Dalal wrote: >> > > > Have you tried applying the boosts to individual fields with mlt.qf? >> > > > Optionally, you could get the patch that is on jira and integrate >> it into >> > > > your code if you're so inclined. >> > > > >> > > > On Thu, 24 Dec 2015, 03:17 CrazyDiamond >> wrote: >> > > > >> > > > > So no way to apply boost to mlt or any other way to change order >> of >> > > > > document >> > > > > in mlt result? also may be there is a way to make to mlt query at >> > > once and >> > > > > merge. >> > > > > >> > > > > >> > > > > >> > > > > -- >> > > > > View this message in context: >> > > > > >> > > >> http://lucene.472066.n3.nabble.com/mlt-and-document-boost-tp4246522p4247154.html >> > > > > Sent from the Solr - User mailing list archive at Nabble.com. >> > > > > >> > > > -- >> > > > Regards, >> > > > Binoy Dalal >> > > >> > > > > -- > -------------------------- > > Benedetti Alessandro > Visiting card : http://about.me/alessandro_benedetti > > "Tyger, tyger burning bright > In the forests of the night, > What immortal hand or eye > Could frame thy fearful symmetry?" > > William Blake - Songs of Experience -1794 England > -- -------------------------- Benedetti Alessandro Visiting card : http://about.me/alessandro_benedetti "Tyger, tyger burning bright In the forests of the night, What immortal hand or eye Could frame thy fearful symmetry?" William Blake - Songs of Experience -1794 England --047d7b417a63b31e2705280829ac--