Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 71722 invoked from network); 30 Apr 2009 11:10:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Apr 2009 11:10:32 -0000 Received: (qmail 61188 invoked by uid 500); 30 Apr 2009 11:10:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 61112 invoked by uid 500); 30 Apr 2009 11:10:29 -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 61102 invoked by uid 99); 30 Apr 2009 11:10:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Apr 2009 11:10:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ian.lea@gmail.com designates 209.85.218.179 as permitted sender) Received: from [209.85.218.179] (HELO mail-bw0-f179.google.com) (209.85.218.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Apr 2009 11:10:21 +0000 Received: by bwz27 with SMTP id 27so2034823bwz.5 for ; Thu, 30 Apr 2009 04:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=cv08QW/QEnuPl1nBfNogswXA+AUxEpWvXO5YjjcIfh8=; b=k4lBOseAi1lnBDqjUHdQ9i/9sgMHEtv62KjujdvlEKhBgHetGGVRRYe4sB3NfLx/mi oSuFiM09lKygnCPLpxJSawhYHNjr4bmXNQK6BlHH0Md+XibK0CWCZ70CBdK2H3yRpZEt njyGvlMQqjEtC92CzOT1JXti6EdTDM70TbLPM= 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:content-transfer-encoding; b=nStjscBM2SqzrEUMrZxkPH2PTy5HOLItpyPco3V2l9j6nfY4Io+YERxudif9/C0Oo2 KtVUH5KZWCBKF6sW8ahSbhhMJCLbEQPNfR6NhNHsP0Rlo/DES7Bg+1/bsriSExUx2TTS RexwoplFrXKbBHXXzNLFQBYITggaO88b5Rxow= MIME-Version: 1.0 Received: by 10.204.118.69 with SMTP id u5mr1342820bkq.77.1241089801199; Thu, 30 Apr 2009 04:10:01 -0700 (PDT) In-Reply-To: <23313810.post@talk.nabble.com> References: <23313810.post@talk.nabble.com> From: Ian Lea Date: Thu, 30 Apr 2009 12:09:41 +0100 Message-ID: <8c4e68610904300409u6852af5exc67cb29bcf3e15fc@mail.gmail.com> Subject: Re: Searching for partial matches To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi This is possible. There is an entry on wildcards in the FAQ. See also RegexQuery and search the mailing lists for ngrams. Depending on your setup and requirements you may need to be aware of the performance implications of wild card searching, particularly leading wildcards as will be required for the example you give. See the FAQ and javadocs for WildcardQuery. -- Ian. On Thu, Apr 30, 2009 at 11:46 AM, Huntsman84 wrote: > > Hello, > > > > I am new to Lucene, and I don't know if it is possible to obtain results > providing part of the keyword. > > > > For example, if I try to search "in", it should return all matches with > "string", "meaning", "trinity"... > > > > Am I expecting too much? > > > > Thank you so much! --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org