Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 4146 invoked from network); 27 Feb 2002 17:02:22 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 27 Feb 2002 17:02:22 -0000 Received: (qmail 22269 invoked by uid 97); 27 Feb 2002 17:02:07 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 22210 invoked by uid 97); 27 Feb 2002 17:02:06 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 22174 invoked from network); 27 Feb 2002 17:02:06 -0000 Message-ID: From: Aruna Raghavan To: 'Lucene Users List' Subject: RE: Wildcard Searching Date: Wed, 27 Feb 2002 11:00:19 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >From my experience with wildcards, 1. They are case sensitive while the regular queries aren't. 2. Only one wild card is allowed in a word. If you are using this with a bool query, you can use something like the following (asas*) AND (fhg*fd). This is acceptable 3. There is a requirement of using atleast one character before wildcard in a query.(*fhhd is not valid) 4. Special characters are not supported (? may be a special character) Hope this helps! -----Original Message----- From: Howk, Michael [mailto:MHowk@FSC.Follett.com] Sent: Wednesday, February 27, 2002 10:56 AM To: Lucene Mailing List (E-mail) Subject: Wildcard Searching We're really struggling with trying to understand why the WildcardQuery seems to strip out the question mark by replacing it with a space. We're using the daily build, and a StandardAnalyzer. We've got the text "The Round Window" in our index. If we search on "roun*" the Lucene QueryParser returns a hit. When we search on "roun?", we don't get any hits. We don't even know how to make heads or tails of the WildcardQuery or WildcardTermEnum classes. Also, Lucene returns the parsed version of each of our searches. When we search by rou*d, Lucene parses it as rou*d (which is what we would expect). But when we search by rou?d, Lucene parses it as "rou d". It seems to wrap the term in quotes and replace the question mark with a space. Any ideas? Or can someone give us an idea of how to understand WildcardQuery or WildcardTermEnum? Michael -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: