Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 32929 invoked from network); 13 Apr 2010 05:41:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Apr 2010 05:41:52 -0000 Received: (qmail 4729 invoked by uid 500); 13 Apr 2010 05:41:50 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 4537 invoked by uid 500); 13 Apr 2010 05:41:49 -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 4529 invoked by uid 99); 13 Apr 2010 05:41:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 05:41:49 +0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of serera@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 05:41:43 +0000 Received: by fg-out-1718.google.com with SMTP id d23so2810201fga.5 for ; Mon, 12 Apr 2010 22:41:22 -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 :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FE2PWKwQM+F+Ny9qPvWweUL7xvPTdshUu1RDVZD/T+0=; b=DUr0whDrQpllpw+s09Nehrh9zuv8UMDpKlf57lQywh9fvrjfht5YqRIJvrAdv9iRZX JQFjAnXQwTDgl0owpWYVE7JjLVbzFLPa82ACuk7Y8M02pS/LIhNtagIGIvq48ZjJtBi8 /EQYLtWEs6A3gqIswU2mbOFuPLNpMxTlyNIuE= 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:content-transfer-encoding; b=WM3yf5TTc15xwJzRBh8kte0HHG4R+bFPJpKCtmUm+i7Fg+ujjdpQmlfFXiFx6gg20F CWijXsWUA6tmipdb4UJNjIPVQyXaWZVo/LQHTqjqv8s8VWz3NbHUQLXgNak9MPdZ5Hyj /OAP1foJgyAtvqeu1fQ4vf6jA0V+mcOmC8750= MIME-Version: 1.0 Received: by 10.103.121.2 with HTTP; Mon, 12 Apr 2010 22:41:22 -0700 (PDT) In-Reply-To: <4BC38D03.9020202@jobdiva.com> References: <4BC38D03.9020202@jobdiva.com> Date: Tue, 13 Apr 2010 08:41:22 +0300 Received: by 10.102.170.16 with SMTP id s16mr2732621mue.16.1271137282566; Mon, 12 Apr 2010 22:41:22 -0700 (PDT) Message-ID: Subject: Re: WhitespaceAnalyzer and version From: Shai Erera To: "java-user@lucene.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi WhitespaceAnalyzer definitely has a Version dependent ctor. What Lucene version do you use? You van use LUCENE_CURRENT but be aware that of a certain Analyzer's behavior has changed in a way that affects your app, you'll need to reindex your data. Usually an Analyzer (or any other Version-aware object) documents the differences between the versions. Some classes take Version as a placeholder for future changes, while not doing anything special w/ them st the moment. It is best, I think, if you stick w/ a specific version (like LUCENE_30) and change that before you plan to reindex your data. Otherwise, if you always reindex your stuff when upgrading Lucene, then LUCENE_CURRENT is probably good. Note also that some changes between versions may result on you updating your users (manual) about what to expext from searches. Hope this helps, Shai On Tuesday, April 13, 2010, Siraj Haider wrote: > We are in the process of removing the deprecated api from our code to mov= e to version. =A0One of the deprecation is, the queryparser now expects a v= ersion parameter in the constructor. =A0I also have read somewhere that we = should pass the same version to analyzer when indexing as wel as when searc= hing. =A0We use WhitespaceAnalyzer and I am unable to find a constructor wi= th a version in it. > > Another thing is, do we need to re-index if we want to supply Version.LUC= ENE_CURRENT as the version? what are other implications? > > thanks > -siraj > > --------------------------------------------------------------------- > 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