Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 72377 invoked from network); 9 Apr 2009 13:13:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Apr 2009 13:13:32 -0000 Received: (qmail 40193 invoked by uid 500); 9 Apr 2009 13:13:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 40108 invoked by uid 500); 9 Apr 2009 13:13:29 -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 40098 invoked by uid 99); 9 Apr 2009 13:13:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 13:13:29 +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 (athena.apache.org: domain of isaacrc82@gmail.com designates 209.85.132.242 as permitted sender) Received: from [209.85.132.242] (HELO an-out-0708.google.com) (209.85.132.242) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 13:13:23 +0000 Received: by an-out-0708.google.com with SMTP id b2so347044ana.5 for ; Thu, 09 Apr 2009 06:13:01 -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; bh=fnvi06e9RA304v3qhWgv3RRHRTwj/4Wx8+58FJjk2zE=; b=K6e8334cJzEntPp+x//yhcNhXxk9FwkClOuHnAl7BiWlZaZamxp2+M9s/bnCqaTt7Z FNhs/D47rImMqzPGC/518mp/RYbPfmbNdS1I1pm4pzO2/r0jfeOGwF1C9HRd6/c7Pb9k e+87KBVIAqufh2aaUW6aTSiSwrcvFDt95e9ts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=KtJ/nWjSytSYSb3nRHhptBExOt46vurirRfoRSGrT5YKajdEYFDtqTVJk6Id8CGoQr lk2o9S/6S4GXlfYn8mXiOlUUKZSWCHFMOmyxchEDDl08V/9ABk3kCKQ85YrM4BuXiyK9 fdT03pdYvvA3q3A7HXPR/O8PXahpmwA8VJ0V4= MIME-Version: 1.0 Received: by 10.100.231.16 with SMTP id d16mr83077anh.93.1239282781205; Thu, 09 Apr 2009 06:13:01 -0700 (PDT) Date: Thu, 9 Apr 2009 09:13:01 -0400 Message-ID: Subject: Problem with ranking in lucene From: Ariel To: lucene user Content-Type: multipart/alternative; boundary=0016368e1f5ef33bff04671f015a X-Virus-Checked: Checked by ClamAV on apache.org --0016368e1f5ef33bff04671f015a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi everybody: I have a question about the ranking of lucene. Here I have the problem: when I do a search in my index like this: bank OR transference I get 10 results, the first two documents that are returned have the both terms in the content field but then the 3th, 4th and 5th only has the word bank and then the 6th is a document that have both terms. Why is this happening ? It is not supposed that when I do a search with the OR operator it returned first the documents that have the terms together and then the document that only have one of the two terms ??? I am indexing by two fields and I am searching with MultifieldQuery in both fields two: title and content, I am using the same analyzer for indexing and searching. I hope you can help me. Thanks in advance Regards Ariel --0016368e1f5ef33bff04671f015a--