Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 33521 invoked from network); 25 Aug 2008 07:46:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Aug 2008 07:46:15 -0000 Received: (qmail 56743 invoked by uid 500); 25 Aug 2008 07:46:08 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 56707 invoked by uid 500); 25 Aug 2008 07:46: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 56696 invoked by uid 99); 25 Aug 2008 07:46:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 00:46:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of karl.wettin@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 07:45:10 +0000 Received: by nf-out-0910.google.com with SMTP id g16so704487nfd.15 for ; Mon, 25 Aug 2008 00:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=oVjzQG75D8Y0Zsd4LvQa6GMS8DOmueWR7CqRSfNC5EY=; b=NtGFwF4usgXsPWajzJJJriSDGNZXz+FlQi5ZWBxhLIuunHszANoBB4PE2cpRmozW9z FBHwdI1zM6kKlnQU0Zq5PyaBK6q6vXhr8FslesKD2QzXtnB0YwxX2HFli8HjV2sCr9js kHtzDJZPQYRPmmEHineNNcX9mARU4rhhZjQyY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=DmUO6PM5lJ7Iv1El2tyQGbVcmG05EUGRW5ECV638F1I2eMMi4iIbZIQnAKIXoBuRWb g+f5RwqKkYiEBdNfPs4/H7v6A5U1g4YNA3KOaW5VM/V3V3fT/HWn1rBW3pjcb2JZAFn5 llp6iHHU7zPcU/4gHyQpfb04MCUMVeBpaDdto= Received: by 10.210.79.14 with SMTP id c14mr6190882ebb.139.1219650321819; Mon, 25 Aug 2008 00:45:21 -0700 (PDT) Received: from kodapan.lan ( [83.249.107.81]) by mx.google.com with ESMTPS id k10sm3568228nfh.25.2008.08.25.00.45.18 (version=SSLv3 cipher=RC4-MD5); Mon, 25 Aug 2008 00:45:19 -0700 (PDT) Message-Id: <0B1D6F01-1D2F-4832-9086-70AE7D73EB3F@gmail.com> From: Karl Wettin To: java-user@lucene.apache.org In-Reply-To: <5816fbdd0808250019o20a2443fn3cefb8a1cefa99fe@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: Standard Analyzer Date: Mon, 25 Aug 2008 09:45:12 +0200 References: <5816fbdd0808250019o20a2443fn3cefb8a1cefa99fe@mail.gmail.com> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org 25 aug 2008 kl. 09.19 skrev Kalani Ruwanpathirana: > Hi, > > I am using StandardAnalyzer when creating the Lucene index. It > indexes the > word "wo&rk" as it is but does not index the word "wo*rk" in that > manner. > Can I index such words (including * and ?) as it is? Otherwise I > have no way > to index and search for words like "wo*rk", you?, etc. Try an alternative analyzer, perhaps WhitespaceAnalyzer? (StandardAnalyzer will index wo&rk as a single term because it contains a rule to handle names such as AT&T.) You should probably also explain why you need to create an index like this. karl --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org