Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 93478 invoked from network); 17 Sep 2004 19:21:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Sep 2004 19:21:19 -0000 Received: (qmail 5492 invoked by uid 500); 17 Sep 2004 19:21:16 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 5390 invoked by uid 500); 17 Sep 2004 19:21:15 -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 5377 invoked by uid 500); 17 Sep 2004 19:21:15 -0000 Received: (qmail 5374 invoked by uid 99); 17 Sep 2004 19:21:15 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 17 Sep 2004 12:21:15 -0700 Received: (qmail 93431 invoked by uid 1912); 17 Sep 2004 19:21:14 -0000 Date: 17 Sep 2004 19:21:14 -0000 Message-ID: <20040917192114.93430.qmail@minotaur.apache.org> From: dnaber@apache.org To: jakarta-lucene-cvs@apache.org Subject: cvs commit: jakarta-lucene/src/java/org/apache/lucene/search PhrasePrefixQuery.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N dnaber 2004/09/17 12:21:14 Modified: src/java/org/apache/lucene/search PhrasePrefixQuery.java Log: fix toString output; make the comments real javadoc comments Revision Changes Path 1.16 +7 -5 jakarta-lucene/src/java/org/apache/lucene/search/PhrasePrefixQuery.java Index: PhrasePrefixQuery.java =================================================================== RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/PhrasePrefixQuery.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- PhrasePrefixQuery.java 15 Sep 2004 21:09:00 -0000 1.15 +++ PhrasePrefixQuery.java 17 Sep 2004 19:21:14 -0000 1.16 @@ -45,22 +45,22 @@ private int slop = 0; - /* Sets the phrase slop for this query. + /** Sets the phrase slop for this query. * @see PhraseQuery#setSlop(int) */ public void setSlop(int s) { slop = s; } - /* Sets the phrase slop for this query. + /** Sets the phrase slop for this query. * @see PhraseQuery#getSlop() */ public int getSlop() { return slop; } - /* Add a single term at the next position in the phrase. + /** Add a single term at the next position in the phrase. * @see PhraseQuery#add(Term) */ public void add(Term term) { add(new Term[]{term}); } - /* Add multiple terms at the next position in the phrase. Any of the terms + /** Add multiple terms at the next position in the phrase. Any of the terms * may match. * * @see PhraseQuery#add(Term) @@ -250,7 +250,9 @@ Iterator i = termArrays.iterator(); while (i.hasNext()) { Term[] terms = (Term[])i.next(); - buffer.append(terms[0].text() + (terms.length > 0 ? "*" : "")); + buffer.append(terms[0].text() + (terms.length > 1 ? "*" : "")); + if (i.hasNext()) + buffer.append(" "); } buffer.append("\""); --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org