Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 37406 invoked from network); 3 Apr 2007 15:30:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2007 15:30:30 -0000 Received: (qmail 63294 invoked by uid 500); 3 Apr 2007 15:30:30 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 63265 invoked by uid 500); 3 Apr 2007 15:30:30 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 63254 invoked by uid 99); 3 Apr 2007 15:30:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 08:30:29 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of erickerickson@gmail.com designates 66.249.92.169 as permitted sender) Received: from [66.249.92.169] (HELO ug-out-1314.google.com) (66.249.92.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 08:30:19 -0700 Received: by ug-out-1314.google.com with SMTP id k40so341603ugc for ; Tue, 03 Apr 2007 08:29:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=OlllO/Ug37qZiba+Py6pHK7gJy0Wh+fgYlyaqYY34Hm/l33mSvo2ob3hAY0hWXqyPrrLM2xatyHyXBAx+XpvihfkdRIs+uq7C/SkGSi9o5alTP2TpdQrtCCW8M7NQISKxARk4es7xCcskBwUMstDwQU1LRppbo/lSHmjBbZt6qU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jrPoQN76vGpJgmFbMWRW3BCkso4dRyqs2G4OVh8Oobx0gkexsFqFL5Xq6SVpCKESKKJu6bPQe8zawdz/AT4GP/zrQkApgVs9D0hdK/YWSqgl2Ft0WdKo5UJ/ywke3heGaFwYTvC8zlyQI6HjWlWqhCbs9lCwi+EJXiYJ2/rKAGM= Received: by 10.115.106.7 with SMTP id i7mr2274039wam.1175614187447; Tue, 03 Apr 2007 08:29:47 -0700 (PDT) Received: by 10.114.58.3 with HTTP; Tue, 3 Apr 2007 08:29:47 -0700 (PDT) Message-ID: <359a92830704030829k14d78986i3f20e6581c6ee184@mail.gmail.com> Date: Tue, 3 Apr 2007 11:29:47 -0400 From: "Erick Erickson" To: java-user@lucene.apache.org Subject: Re: search-time boosting In-Reply-To: <1c36b0de0704030820x273741a6t80f52477a85dd24c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11574_29070582.1175614187279" References: <46113BFF.9060309@smarter.com> <1c36b0de0704030820x273741a6t80f52477a85dd24c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11574_29070582.1175614187279 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I don't think index time boosts are the way to go. From a message on this list that I printed out (from Otis? Yonik? Chris? someone who knows waaaay more about this topic than I do, probably Chris given the lack of capitalization ).... '...index time field boosts are a way to express things like "this documents title is worth twice as much as the title of most documents" query time boosts are a way to express "i care about matches on this clause of my query twice as much as i do about matches to other clauses of my query"...' So I don't think that index time boosts express what Ofer wants... Erick On 4/3/07, Daniel Rosher wrote: > > Hi Ofer, > > I think your best option is to boost the field for your category field > during index time with Field.setBoost(floatBoost) > > You will have to reindex your corpus however. > > Regards, > Dan > > On 4/2/07, Ofer Nave wrote: > > > > I'd like to be able to boost documents at search-time, and I'm not sure > > how to do it. > > > > Example: > > > > I'm building a search engine for products (comparison shopping). Many > > queries tend to indicate a category (i.e., 'digital cameras') as opposed > > to a product (i.e., 'canon powershot'). I have the name of the category > > the product is in indexed in a separate field. My intention was to > > query both the title field and the category field, and when the category > > field relevancy is extremely high, boost the documents in that category. > > > > Is there a way to do this? Or an alternative approach to the problem? > > > > -ofer > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > > ------=_Part_11574_29070582.1175614187279--