Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@apache.org Received: (qmail 42426 invoked from network); 24 Feb 2003 05:13:44 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 24 Feb 2003 05:13:44 -0000 Received: (qmail 14791 invoked by uid 97); 24 Feb 2003 05:15:29 -0000 Delivered-To: qmlist-jakarta-archive-lucene-dev@nagoya.betaversion.org Received: (qmail 14784 invoked from network); 24 Feb 2003 05:15:28 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 24 Feb 2003 05:15:28 -0000 Received: (qmail 42196 invoked by uid 500); 24 Feb 2003 05:13:41 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 42182 invoked from network); 24 Feb 2003 05:13:41 -0000 Received: from web12702.mail.yahoo.com (216.136.173.239) by daedalus.apache.org with SMTP; 24 Feb 2003 05:13:41 -0000 Message-ID: <20030224051351.18513.qmail@web12702.mail.yahoo.com> Received: from [24.90.65.225] by web12702.mail.yahoo.com via HTTP; Sun, 23 Feb 2003 21:13:51 PST Date: Sun, 23 Feb 2003 21:13:51 -0800 (PST) From: Otis Gospodnetic Subject: Re: New PhrasePrefixQuery To: Lucene Developers List Cc: Konrad Scherer In-Reply-To: <5.1.0.14.0.20021127150602.00aa6c20@mailbox.uottawa.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello Konrad, What was the reason for this change? The need to support wildcard queries, and not just prefix questies inside phrase queries? e.g. "How do you spell mi*pelling" or "How do you spell mis?pelling" and not just "How do you spell Missis*" There are no other functionality changes, right? Just trying to understand. If that is so, then yes, a better class name would be PhraseWildcardQuery, and the current PhrasePrefixQuery should be deprecated. I think this would be a good addition. Also, why the ArrayList -> Vector change of the existing code? Thanks, Otis --- Konrad Scherer wrote: > Hello all, > > First my thanks to Doug and Anders for their patience and help. > Notes about this new version > 1) No changes to Term. There are now inner classes to handle the Term > > versus WildcardTerm stuff. > 2) If analyzer does not drop wildcard characters (like > StandardTokenizer) > then this class could be a drop in replacement for PhraseQuery. > 3) This class does more than prefix terms, it handles both ? and * in > any > location thanks to WildcardTermEnum. Perhaps it should be called > PhraseWildcardQuery? > 4) In an attempt to get around using the prepare method I have > combined > sumOfSquaredWeights and normalize into the scorer method. I have to > cache > the searcher from sumOfSquaredWeights. The method works i.e. produces > the > correct results, but I do not know it the math is okay. > Tell me what you think. > > Konrad > ATTACHMENT part 2 application/octet-stream name=QueryParser.jj.diff; x-mac-type=42494E41; x-mac-creator=5843454C > ATTACHMENT part 3 application/octet-stream name=PhrasePrefixQuery.java __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org