Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB4EF40AF for ; Tue, 21 Jun 2011 15:39:10 +0000 (UTC) Received: (qmail 89041 invoked by uid 500); 21 Jun 2011 15:39:08 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 89008 invoked by uid 500); 21 Jun 2011 15:39:08 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 89000 invoked by uid 99); 21 Jun 2011 15:39:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 15:39:08 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ian.lea@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-iw0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 15:39:02 +0000 Received: by iwi5 with SMTP id 5so6251255iwi.35 for ; Tue, 21 Jun 2011 08:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=nWcRS5vsl2Jwf3FvWiPzIJ//7m4RSAqFNB/wxvJDyYY=; b=qTr/3XH0ph3zTJ05TUJMzD8DPINrnAnV3ew+kvZzkqmyd+ONXKntth4LPKbFqQ+BgD Sf30Fq6o02HPqOvvCeZHKPaDbeDXD1+PuC/zDBsEXAgZosU+uCsvh8jCf92GAuj4QxZ/ 441+SWaHWSDrnvPNU+Uy6yuLTQNnts6vM8GQQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=H8OmSGpldA1VYwTvRWa0uJXHLE8IyjwwEdTj8Zn5HQyaBglGNXhJ3lIAA9vjsF4Fan RqWvLEi1f60TLu5TNfBEtIcQOzYCXa2dPG9ZAMjaIIABUQg3wyiy+l6EWj8GatJzEybV gZtxqJLyu/TzDelkQd/KSjmIV3ruVpxtYMbOQ= Received: by 10.231.112.150 with SMTP id w22mr4346674ibp.61.1308670721132; Tue, 21 Jun 2011 08:38:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.199.148 with HTTP; Tue, 21 Jun 2011 08:38:21 -0700 (PDT) In-Reply-To: <4E00B849.101@gmail.com> References: <4E00B849.101@gmail.com> From: Ian Lea Date: Tue, 21 Jun 2011 16:38:21 +0100 Message-ID: Subject: Re: question about wildcards To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 See the javadocs for QueryParser.setAllowLeadingWildcard(boolean allowLeadingWildcard). And from the FAQ, see http://wiki.apache.org/lucene-java/LuceneFAQ#What_wildcard_search_support_is_available_from_Lucene.3F Be sure to heed the warnings about performance. -- Ian. On Tue, Jun 21, 2011 at 4:27 PM, G.Long wrote: > Hi :) > > I've got the following text indexed with simpleAnalyzer : > > "security is a real problem." > > If I try to search for secu*, it will find the document. But if I try to > search for curi*, there are no results. > > I raed that it's not possible to add a * wildcard at the begining of the > query so what should I do to handle this type of query where the user write > just a part of the word (which is in the middle of the word) ? > > Thank you :) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org