Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 47095 invoked from network); 22 Aug 2005 09:05:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2005 09:05:37 -0000 Received: (qmail 6814 invoked by uid 500); 22 Aug 2005 09:05:36 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 6321 invoked by uid 500); 22 Aug 2005 09:05:34 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 6308 invoked by uid 99); 22 Aug 2005 09:05:34 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2005 02:05:34 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id 9E5EEE3; Mon, 22 Aug 2005 11:05:33 +0200 (CEST) From: bugzilla@apache.org To: java-dev@lucene.apache.org Subject: DO NOT REPLY [Bug 36296] New: - setPhraseSlop return the same results irrespective of int parameter X-Bugzilla-Reason: AssignedTo Message-Id: <20050822090533.9E5EEE3@ajax.apache.org> Date: Mon, 22 Aug 2005 11:05:33 +0200 (CEST) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36296 Summary: setPhraseSlop return the same results irrespective of int parameter Product: Lucene Version: 1.4 Platform: PC OS/Version: Windows 2000 Status: NEW Severity: normal Priority: P3 Component: QueryParser AssignedTo: java-dev@lucene.apache.org ReportedBy: adhotre@ctepl.com CC: adhotre@ctepl.com Please help me for my requirement to have a similiar word search functionality using Lucene. Read about slop in Lucene FAQ [Is there a way to use a proximity operator (like near or within) with Lucene?] and tried to implement the same. Calling setPhraseSlop on QueryParser class gives me the same results with different querytext values(querytext 1:"Anil Dhotre", querytext 2: "Dhotre Anil"). The result of search is always hit count equals to 1. Correct result should give me hit count 0 when i give querytext "Dhotre Anil" with the 0 slop value of QueryParser. Following is code snippet. QueryParser queryParser = new QueryParser("default", DEFAULT_ANALYZER); queryParser.setPhraseSlop(0); System.out.println("Slop : " + queryParser.getPhraseSlop()); Query query = queryParser.parse("Anil Dhotre","data",DEFAULT_ANALYZER) ; Hits hits = searcher.search(query); Note: index includes "Anil Dhotre" as part of indexed data. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org