From java-user-return-40063-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Sat May 02 07:07:43 2009 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 53014 invoked from network); 2 May 2009 07:07:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 May 2009 07:07:43 -0000 Received: (qmail 7589 invoked by uid 500); 2 May 2009 07:07:40 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 7543 invoked by uid 500); 2 May 2009 07:07:39 -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 7533 invoked by uid 99); 2 May 2009 07:07:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 May 2009 07:07:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of seidymam@gmail.com designates 209.85.218.179 as permitted sender) Received: from [209.85.218.179] (HELO mail-bw0-f179.google.com) (209.85.218.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 May 2009 07:07:32 +0000 Received: by bwz27 with SMTP id 27so3103340bwz.5 for ; Sat, 02 May 2009 00:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=/BlJ2PtNQX/mppvgl+slHeclo3h0fTD/S/ITflP3bfo=; b=LE84dKZKjINKjiog6siPRrokGySYy8ysk9gSiFjhmKhDncyJyuK0hC05z/jGBJyHOU R6k6oVE8ytx63tK8DCgNseJXH0hfNjzUr10e+3Ay/VLhxitRc66up0wzndMVyDLBMvhg m9Z9Nptq4E6yjzrE4eQ1hVukoszjPsuSDtsdI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=mrzJ9twmBkqnTtzjIfjvyjROqq9zAtuRbwLWau9nQKzpY2SM1y2buHQ+/z9mOErJlo J2YZeMAfw3wdgqY25cfo4pKf326drsnPbBIyUm5Nty3LAoQK/neKQqVN4btvdUgB6rz3 VculBF6qkbWDPjxRFDkTNCI/kBStacGIUHarY= MIME-Version: 1.0 Received: by 10.204.31.78 with SMTP id x14mr3298132bkc.3.1241248031312; Sat, 02 May 2009 00:07:11 -0700 (PDT) Date: Sat, 2 May 2009 10:07:10 +0300 Message-ID: <179b305e0905020007g7a50608cm7532e5eabe2de14@mail.gmail.com> Subject: not the length that matters, but the content From: Seid Mohammed To: java-user Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I want documents which have more number of query term matches to be returned, not the one with less number of terms to matter. that is, if I submit the query " the quickbrown fox" have two documents doc1: brown fox doc2: the quick brown fox jumps over the lazzy dog. I want the search result be doc2 . How can I do so. peice of code will be helpfull Thanks a lot Seid M -- "RABI ZIDNI ILMA" --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org