Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 71393 invoked from network); 3 Dec 2009 12:43:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Dec 2009 12:43:21 -0000 Received: (qmail 67130 invoked by uid 500); 3 Dec 2009 12:43:19 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 67068 invoked by uid 500); 3 Dec 2009 12:43:19 -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 67057 invoked by uid 99); 3 Dec 2009 12:43:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2009 12:43:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [203.104.17.155] (HELO web94806.mail.in2.yahoo.com) (203.104.17.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 03 Dec 2009 12:43:09 +0000 Received: (qmail 95613 invoked by uid 60001); 3 Dec 2009 12:42:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1259844167; bh=mWbbq6Ulx8D5evrK/H+P7DJhN84UmFTMbxs6Ziv+B1M=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=LZL7pFD12yzCPZdO5v8QIFcSnx/wDcyLz2m5yJazZ6yrOaQ6g2uJ/PcRhvq4B6EctP1DMc1BP4afW44n8u++V8TofBqibk/ssTqFf8EqMfxOVunazRRz9Ld2OwNpwmXELEJplxc5tO4Zq8iEohsRNvueFEurnwyN/RLYhH+yBLs= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=hpXHUtYDXNjGa+lh75YxPRHUFfPU3bQQstk+G4AdbNu6Vbqwg3MF8DM4xAiJWYBUhl+z9DJhcorIbUSJOsqLS93xV1SEAvlTugDRp8zPwsw5g+YzhPM/11SLyXBqvOHDvwbg2WrU5RwUyfhPZrcs8+NDILPbE9szxbbnFpjuN3E=; Message-ID: <470630.94130.qm@web94806.mail.in2.yahoo.com> X-YMail-OSG: KVMmxfUVM1kcYVxNjM10zbVXMXfXlIiTzgoosAfj9m9aC6sCTXZlUCDXFTXhEwBKt6e.X8YoJnIVHIv1k66qxrlW43seODC9bYBNv8nh7_bI3c_7NlW5QWLDyynPSx1mSCVIbAgkMzCcEH6lAyEHEuUq9zOIskEYFp6ehtt4UeitVOsRs6_hjyl27V7KJSLkSm7DFeXrD6eFQbxkeCDbRnBNrlO_iLWdWxpRrbGcIYkDHvXbvHswIOcnVn4nIkmx8onEWOnq Received: from [209.73.190.209] by web94806.mail.in2.yahoo.com via HTTP; Thu, 03 Dec 2009 18:12:47 IST X-Mailer: YahooMailClassic/8.1.6 YahooMailWebService/0.8.100.260964 Date: Thu, 3 Dec 2009 18:12:47 +0530 (IST) From: DHIVYA M Subject: How to do relevancy ranking in lucene To: java user MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1601032916-1259844167=:94130" X-Virus-Checked: Checked by ClamAV on apache.org --0-1601032916-1259844167=:94130 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi all, Am using lucene 2.3.2. When i search using lucene demo am getting all the results which contains t= he query. But i would like to restrict my results to the relevant match and= not all the documents containing the query string. =A0 Ex: Query: how to search a string? =A0 Response am getting is: all documents containing words - search, string =A0 Desired response: I would like to compare the=A0documents that contains bot= h the words and the documents that contains anyone word of the query string= - to find the relevant documents. =A0 Kindly suggest me as how i should proceed and the details regarding this co= ntext. Urgent help needed. =A0 Thanks in advance for the timely help. Dhivya=0A=0A=0A The INTERNET now has a personality. YOURS! See your Ya= hoo! Homepage. http://in.yahoo.com/ --0-1601032916-1259844167=:94130--