Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 41382 invoked from network); 26 Mar 2009 05:53:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Mar 2009 05:53:50 -0000 Received: (qmail 26946 invoked by uid 500); 26 Mar 2009 05:53:49 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 26869 invoked by uid 500); 26 Mar 2009 05:53:49 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 26859 invoked by uid 99); 26 Mar 2009 05:53:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 05:53:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.dunning@gmail.com designates 209.85.217.164 as permitted sender) Received: from [209.85.217.164] (HELO mail-gx0-f164.google.com) (209.85.217.164) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 05:53:41 +0000 Received: by gxk8 with SMTP id 8so925873gxk.5 for ; Wed, 25 Mar 2009 22:53:20 -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:date :received:message-id:subject:from:to:content-type; bh=dYZIgHLjdLHtnU5VL2yI4GWTAN50JfuzaGFEh7me7AA=; b=JIv53eIm2VxY2pxNHbZwQCKLrWcQ6Oq5yQN7rG6c4IzCgcDoRRdKk/17YtgSAUKXa3 SG9Z/ncS8RPicIbASn99Oig5Lb8aQRHg0zNrr97Ovjb2dftWUc6Y2aEXdSx+m46Fojyy 8v3kqwquJjSTX3KZFFiUxgQ2i8trrqt/ezilQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Lb9WwtQzn0Lq0DLw+FMiPk4DHdnVeRCni4SynzNTs1NjdVOVqqLyTDxVP7719jIbkD gD4pq99KtbMsSGgbOo63YIaCQSvczmY0TtnCjAN1lymHoVMgjsUJFE7Gw1ZT7jo6ntV+ fS2UOGb8/A9HDVFpu+8wpnFxqDr90cpjkdIxA= MIME-Version: 1.0 In-Reply-To: <7d94dcde0903252001g6b39f9fr739800c238f9f5ed@mail.gmail.com> References: <7d94dcde0903252001g6b39f9fr739800c238f9f5ed@mail.gmail.com> Date: Wed, 25 Mar 2009 22:53:05 -0700 Received: by 10.150.152.17 with SMTP id z17mr1045063ybd.172.1238046800242; Wed, 25 Mar 2009 22:53:20 -0700 (PDT) Message-ID: Subject: Re: question about reserved words in lucene From: Ted Dunning To: general@lucene.apache.org Content-Type: multipart/alternative; boundary=000e0cd47e1ebe684b0465ff3bb7 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd47e1ebe684b0465ff3bb7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Adapt the tokenizer in the analyzer you use to handle specially cases like this. You will probably have to change the syntax for required words. 2009/3/25 =E7=8E=8B=E5=B7=8D=E5=B7=8D > I designed a campus ftp search engine. As some special words like + - are > reserved lucene words. When user enters a keyword "c++", the result will = be > all about "c" not "c++". > Could anybody tell me how can i fix this problem? > > -- > =E7=8E=8B=E5=B7=8D=E5=B7=8D(Weiwei Wang) > Department of Computer Science > Gulou Campus of Nanjing University > Nanjing, P.R.China, 210093 > > Mobile: 86-13913310569 > MSN: ww.wang.cs@gmail.com > Homepage: http://cs.nju.edu.cn/rl/weiweiwang > --=20 Ted Dunning, CTO DeepDyve 111 West Evelyn Ave. Ste. 202 Sunnyvale, CA 94086 www.deepdyve.com 408-773-0110 ext. 738 858-414-0013 (m) 408-773-0220 (fax) --000e0cd47e1ebe684b0465ff3bb7--