Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 56157 invoked from network); 12 Feb 2009 15:18:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 15:18:10 -0000 Received: (qmail 34881 invoked by uid 500); 12 Feb 2009 15:18:04 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 34857 invoked by uid 500); 12 Feb 2009 15:18:04 -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 34846 invoked by uid 99); 12 Feb 2009 15:18:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 07:18:04 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 15:17:56 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LXdJn-0007zM-HJ for solr-user@lucene.apache.org; Thu, 12 Feb 2009 07:17:35 -0800 Message-ID: <21978064.post@talk.nabble.com> Date: Thu, 12 Feb 2009 07:17:35 -0800 (PST) From: sunnyfr To: solr-user@lucene.apache.org Subject: Re: solr 1.4 - boost query from where it finds the word(s) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: johanna.34@gmail.com References: <21973015.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Grant, Thanks for your quick answer. So there is not a real quick way to increase one field in particular according to another one if the text is find there, otherwise how can I do that in two queries ? thanks a lot, Grant Ingersoll-6 wrote: > > Hi Sunny, > > As with any relevance issue, one of the first thing I ask before > getting to a solution, is what is the problem you are seeing that > makes you want to change the way things work? > > That being said, the only way you would be able to do this is through > some custom components and I'm pretty sure it would involve having to > run at least two queries (the first which involves SpanQueries), but I > might be missing something. > > > -Grant > > On Feb 12, 2009, at 5:00 AM, sunnyfr wrote: > >> >> Hi everybody, >> Wish you a nice day, >> >> I've a question, I would like to know if it's possible to boost >> differently >> some field according to where it find the word. >> >> Will try to make it more clear; >> >> I've a book core with title, description and tags. >> >> If word looked for is found in the title, I would like to boost >> differntly >> another field like number of view >> >>> found in the title then : nb_views^2 and rating^1 >>> found in the description then : nb_views^0.5 and rating^0.2 >>> found in the tag then : nb_views^1 and rating^0.5 >> >> How can I do that ? >> >> Even I would love to make something like if after : >> if nb_views between 0 and 50 then nb_views^1.3 if nb_views>100 then >> nb_views^2 >> >> Do you have an idea ? What would you reckon ? >> >> THANKS A LOT GUYS, >> >> -- >> View this message in context: >> http://www.nabble.com/solr-1.4---boost-query-from-where-it-finds-the-word%28s%29-tp21972988p21972988.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/solr-1.4---boost-query-from-where-it-finds-the-word%28s%29-tp21973015p21978064.html Sent from the Solr - User mailing list archive at Nabble.com.