Return-Path: Delivered-To: apmail-incubator-lucene-net-user-archive@locus.apache.org Received: (qmail 69476 invoked from network); 13 Jul 2006 10:18:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2006 10:18:20 -0000 Received: (qmail 82725 invoked by uid 500); 13 Jul 2006 10:18:20 -0000 Delivered-To: apmail-incubator-lucene-net-user-archive@incubator.apache.org Received: (qmail 82667 invoked by uid 500); 13 Jul 2006 10:18:19 -0000 Mailing-List: contact lucene-net-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-user@incubator.apache.org Delivered-To: mailing list lucene-net-user@incubator.apache.org Received: (qmail 82658 invoked by uid 99); 13 Jul 2006 10:18:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 03:18:19 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of nicolas.brel@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 03:18:17 -0700 Received: by nf-out-0910.google.com with SMTP id a27so103938nfc for ; Thu, 13 Jul 2006 03:17:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Dv8nwxPKq2puDAASOmngBrB2EJoDTwmbBrLPuLltknhhcGSof6Gv+fEtrJscX2kRgy6TqaTngtkxKLpOCcI12Q4XDeXwGj1RdDv+f4emt9WE/E0LyvkJmWh15enZnpJ7lBCyW1cp0ZQ5Vt9G/n7T3WSsOxeyhMQrpPoaQdg7jjw= Received: by 10.48.226.15 with SMTP id y15mr700343nfg; Thu, 13 Jul 2006 03:17:56 -0700 (PDT) Received: by 10.49.30.7 with HTTP; Thu, 13 Jul 2006 03:17:56 -0700 (PDT) Message-ID: Date: Thu, 13 Jul 2006 12:17:56 +0200 From: Nicolas To: lucene-net-user@incubator.apache.org Subject: Re: Leading wildcard in Lucene.Net 1.9? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16437_2375855.1152785876163" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_16437_2375855.1152785876163 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline As far as I know, PrefixQuery only allows trailing wildcards. If you intend to do so the solution I've adopted is to index the term in reverse order on another field. if you mean to search *def and you want to match abcdef just create 2 fields regularField where you index a term in its natural order that is to say abcdef reverseField where you index a term in the refverse order that is to say fedcba then you'll have to transform the query regularField:*def in reverseField:fed*. Concerning *abc*, maybe you can investigate RegExpQuery... Regards, Nicolas On 7/13/06, Nathan Haywood wrote: > > Our search instance needs to be able to search for a query as a > substring of a term... For example, hex (as *hex*). I looked on the > Lucene board and saw that there was a simple change to make to support > this in the JAVA code, but the JAVA token syntax seems to have vanished > into a helper class in the port. > > Has anyone enables *abc* queries in their system? Any pointers, types, > code snippets? > > Thank you, > Nathan Haywood > Senior Software Engineer > CorMine, LLC > ------=_Part_16437_2375855.1152785876163--