From java-user-return-41875-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Thu Aug 13 13:38:59 2009 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 34867 invoked from network); 13 Aug 2009 13:38:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Aug 2009 13:38:58 -0000 Received: (qmail 94706 invoked by uid 500); 13 Aug 2009 13:39:03 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 94606 invoked by uid 500); 13 Aug 2009 13:39:03 -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 94596 invoked by uid 99); 13 Aug 2009 13:39:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 13:39:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.190.49.19] (HELO web52909.mail.re2.yahoo.com) (206.190.49.19) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 13 Aug 2009 13:38:53 +0000 Received: (qmail 96866 invoked by uid 60001); 13 Aug 2009 13:37:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1250170672; bh=wCMo62zJXcTJQd8z1htMKgXIFHi9BRhL+/nTQcMoqz8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=0/MFhGXT68FYo3AGho9QhS672PXn2MKQ19SK3yXGvMh1BQaj9RM6KWwCqboxvNvBgPhpChV4BtDdKUg7m+Vp9ov8oLXDs6yVlvfS/0R3S2Qsq+xO4y66GDn3RdB2our5AjG67VpSgRykugjCKr/sNKLEfAzaH6J/M2AIjr5vkvE= 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:In-Reply-To:MIME-Version:Content-Type; b=MVaxP8hWMHIR6vLvuClWR4nmlAU/uPyVWMSeFYcuRDLJ5aUw3X7gcAiVGXUZ0imJ5PU/IqyotyVkFlmWzrZ8cbC+yPP5A1IUqQuiMyRmVdMJWbp/UueIQ6X9AMpnrnbUf43yPKOyPv9DsA2QReUu3kY3rlL4Br2HJUnykmXCwZw=; Message-ID: <187833.91011.qm@web52909.mail.re2.yahoo.com> X-YMail-OSG: OOaUAksVM1k8TClXJMQjlW60KlojLfnsmcFLsftCT4JeQ9rQ3be2LgcGG_i8qgL8r.BOTq0i_vGXdqlcIEwLVI4ycx23MDsvOrG9IEwJ2qoXWVRvMwVtsDl8m_V9s5_uqkqspHHrk_DU8HgVFpotxTTCYOMrxz9u5GtEkKPbsDIJoH00iQyBL7v1ETEMikqPYt2RgHcRRZU0FjGxsO.1WPgYGFC0Xog2ubx4XCEMf7.kYZvb9iDEvWa9nSb3GxYjcCIbLTyZbA_QaE_SOuxo4aJOvWlbiVY_ElzMWxEC_KM- Received: from [193.140.184.100] by web52909.mail.re2.yahoo.com via HTTP; Thu, 13 Aug 2009 06:37:52 PDT X-Mailer: YahooMailClassic/6.1.2 YahooMailWebService/0.7.338.2 Date: Thu, 13 Aug 2009 06:37:52 -0700 (PDT) From: AHMET ARSLAN Subject: Re: Generating Query To: java-user@lucene.apache.org In-Reply-To: <24952356.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org > hm...try tat...but doesn't seems to be working for me though Discarding lengthNorm didn't work for you. Very interesting. I am not sure but I think inverse document frequency causing problem to you. Probably one of query word (very common word) has high document frequency, and the docs having other query words are getting higher rank. Or one your query word (very rare word) has very small document frequency, and docs having only that word are getting higher rank. You can override another method (idf) of Similarity to ignore idf as well as lengthNorm. public float idf(int docFreq, int numDocs) { return 1.0f; } public float lengthNorm(String fieldName, int numTerms) { return 1.0f; } Ofcourse this modifications will cause some side-effects but probably you will see all of your query words in the first document. If such document exists in your index. Can you confirm this by ANDing all of your query words and look if you are getting results? Please let me know if this works for you. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org