Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 60723 invoked from network); 19 Mar 2009 13:40:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2009 13:40:43 -0000 Received: (qmail 78426 invoked by uid 500); 19 Mar 2009 13:40:36 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 78401 invoked by uid 500); 19 Mar 2009 13:40:35 -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 78390 invoked by uid 99); 19 Mar 2009 13:40:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 06:40:35 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [208.97.132.202] (HELO spunkymail-a9.g.dreamhost.com) (208.97.132.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 13:40:25 +0000 Received: from [192.168.0.103] (adsl-074-229-189-244.sip.rmo.bellsouth.net [74.229.189.244]) by spunkymail-a9.g.dreamhost.com (Postfix) with ESMTP id 2AA071FCF0 for ; Thu, 19 Mar 2009 06:40:02 -0700 (PDT) Message-Id: From: Grant Ingersoll To: java-user@lucene.apache.org In-Reply-To: <22599538.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: boosting query Date: Thu, 19 Mar 2009 09:40:01 -0400 References: <22599538.post@talk.nabble.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org First off, I would start by using Lucene's explain functionality to see why one result appears before the other. The explain method will tell you all the factors that go into scoring each of your results, as it goes beyond just term frequency. Finally, you might find http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Debugging-Relevance-Issues-Search helpful. One of the things I often tell people is that if you know a certain result needs to be in a certain place for a certain query, just put it there. Otherwise, don't sweat relative position too much unless you have a result that you think is good buried (i.e. page 5) deep down in your results. -Grant On Mar 19, 2009, at 8:54 AM, m.harig wrote: > > Hello all, > > i've a search application which uses lucene-2.3.0 , > and my > application running for a banking domain. Am indexing some banking > urls as > an input and am searching some keywords. What my doubt is when i > search > "cards", the less count keyword url comes up. I mean , for example > > http:// > www.siteA.com > http:// > www.siteB.com > http:// > www.siteC.com > > in that urls , http://www.siteB.com has got > more > number of words count "cards" than the other two sites. But when am > searching am getting the http://www.siteB.com as the last search > result, > other two urls are coming up. > > But i need the url which has more number word > counts > will come up . I used filed.setBoost(100f); Is it the right way to > boost > the field? How do i do my above. ? please anyone help me out of > this....... > -- > View this message in context: http://www.nabble.com/boosting-query-tp22599538p22599538.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org