Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 37010 invoked from network); 2 Apr 2007 18:16:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2007 18:16:29 -0000 Received: (qmail 33941 invoked by uid 500); 2 Apr 2007 18:16:22 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 33912 invoked by uid 500); 2 Apr 2007 18:16:22 -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 33892 invoked by uid 99); 2 Apr 2007 18:16:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 11:16:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mike.klaas@gmail.com designates 64.233.184.239 as permitted sender) Received: from [64.233.184.239] (HELO wr-out-0506.google.com) (64.233.184.239) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 11:16:14 -0700 Received: by wr-out-0506.google.com with SMTP id 68so1383514wra for ; Mon, 02 Apr 2007 11:15:52 -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:content-transfer-encoding:content-disposition:references; b=q3a7giRE/TMHK/SGlELmVjy69SfPfE1NIqkjFmaZXkdlpHJn4QtaJE+uvJl67knLD1c3206u/6wClUc8RDVECX7usGlIAVSriHY94u0VnKT1beGuDDCEoYnVXrZnM3tfyDmqpMjyUSy9f+5y+2w77gbQckiguNC5jZfkzV3LNAo= 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:content-transfer-encoding:content-disposition:references; b=G+715MeNETcCxlbpqPjsg8woS++JpCHt/0B5qlokLMGrVhmYIZo32IONRtmITGG2aY7cpaP+u4why59UhYisHL49nYX3LF3qZctZ8b+Pd30qqyHcabGYbA0q+mTvTr95093bPxEL5D6fbTjzuR4g0KMkOG6mSv6AuZR0sPKIrGc= Received: by 10.114.155.1 with SMTP id c1mr1913457wae.1175537752249; Mon, 02 Apr 2007 11:15:52 -0700 (PDT) Received: by 10.114.196.6 with HTTP; Mon, 2 Apr 2007 11:15:50 -0700 (PDT) Message-ID: <3d2ce8cb0704021115i642d383br6602077124efaeea@mail.gmail.com> Date: Mon, 2 Apr 2007 11:15:50 -0700 From: "Mike Klaas" To: java-user@lucene.apache.org Subject: Re: search-time boosting In-Reply-To: <46113BFF.9060309@smarter.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46113BFF.9060309@smarter.com> X-Virus-Checked: Checked by ClamAV on apache.org 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? title:"digital cameras"^0.7 category:"digital cameras"^4.5 -Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org