Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52718D797 for ; Thu, 13 Sep 2012 18:52:57 +0000 (UTC) Received: (qmail 41035 invoked by uid 500); 13 Sep 2012 18:52:55 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 40992 invoked by uid 500); 13 Sep 2012 18:52:54 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 40985 invoked by uid 99); 13 Sep 2012 18:52:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 18:52:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of SRS0=rNtemP=HM=basetechnology.com=jack@yourhostingaccount.com designates 65.254.253.147 as permitted sender) Received: from [65.254.253.147] (HELO mailout18.yourhostingaccount.com) (65.254.253.147) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 18:52:45 +0000 Received: from mailscan16.yourhostingaccount.com ([10.1.15.16] helo=mailscan16.yourhostingaccount.com) by mailout18.yourhostingaccount.com with esmtp (Exim) id 1TCEWX-0004O1-40 for dev@lucene.apache.org; Thu, 13 Sep 2012 14:52:25 -0400 Received: from impout01.yourhostingaccount.com ([10.1.55.1] helo=impout01.yourhostingaccount.com) by mailscan16.yourhostingaccount.com with esmtp (Exim) id 1TCEWW-0000It-Hk for dev@lucene.apache.org; Thu, 13 Sep 2012 14:52:24 -0400 Received: from authsmtp08.yourhostingaccount.com ([10.1.18.8]) by impout01.yourhostingaccount.com with NO UCE id yisQ1j00N0ASqTN01isQ84; Thu, 13 Sep 2012 14:52:24 -0400 X-Authority-Analysis: v=2.0 cv=IICA+3TG c=1 sm=1 a=PHQHB1QSaEYgcU2qnZkzMw==:17 a=aQzbgH187woA:10 a=GhT9Af96CVYA:10 a=3jZET7lWBKwA:10 a=IkcTkHD0fZMA:10 a=jvYhGVW7AAAA:8 a=OaA9DFZNGlgA:10 a=mV9VRH-2AAAA:8 a=QT-l6vMviFLcM__x1K0A:9 a=QEXdDO2ut3YA:10 a=88iI8knYSJUA:10 a=8amoANLqcXHyoDJd6jbCBw==:117 X-EN-OrigOutIP: 10.1.18.8 X-EN-IMPSID: yisQ1j00N0ASqTN01isQ84 Received: from 207-237-102-116.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com ([207.237.102.116] helo=JackKrupansky) by authsmtp08.yourhostingaccount.com with esmtpa (Exim) id 1TCEWW-00020P-F9 for dev@lucene.apache.org; Thu, 13 Sep 2012 14:52:24 -0400 Message-ID: From: "Jack Krupansky" To: References: <20120913174218.7D0F6238890D@eris.apache.org> In-Reply-To: <20120913174218.7D0F6238890D@eris.apache.org> Subject: Re: svn commit: r1384427 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java Date: Thu, 13 Sep 2012 14:52:21 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-EN-UserInfo: e0a4b55451ed9f27313ebf02e3d4348d:fc4a93e1349e680c52bdd723c0ab3ef6 X-EN-AuthUser: jack@basetechnology.com Sender: "Jack Krupansky" X-EN-OrigIP: 207.237.102.116 X-EN-OrigHost: 207-237-102-116.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com Technically, should also indicate that backslashes need to be escaped to include them in a wildcard term. -- Jack Krupansky -----Original Message----- From: rmuir@apache.org Sent: Thursday, September 13, 2012 1:42 PM To: commits@lucene.apache.org Subject: svn commit: r1384427 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java Author: rmuir Date: Thu Sep 13 17:42:18 2012 New Revision: 1384427 URL: http://svn.apache.org/viewvc?rev=1384427&view=rev Log: add note about escaping terms Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java?rev=1384427&r1=1384426&r2=1384427&view=diff ============================================================================== --- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java (original) +++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java Thu Sep 13 17:42:18 2012 @@ -28,7 +28,10 @@ import java.util.List; /** Implements the wildcard search query. Supported wildcards are *, which * matches any character sequence (including the empty one), and ?, - * which matches any single character. Note this query can be slow, as it + * which matches any single character. If you want to treat a wildcard as a literal + * character instead, escape it with '\'. + *

+ * Note this query can be slow, as it * needs to iterate over many terms. In order to prevent extremely slow WildcardQueries, * a Wildcard term should not start with the wildcard * * --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org