Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 82069 invoked from network); 30 Oct 2009 14:35:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Oct 2009 14:35:19 -0000 Received: (qmail 79708 invoked by uid 500); 30 Oct 2009 14:35:18 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 79605 invoked by uid 500); 30 Oct 2009 14:35:16 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 79597 invoked by uid 99); 30 Oct 2009 14:35:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 14:35:16 +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 (nike.apache.org: domain of rcmuir@gmail.com designates 209.85.216.187 as permitted sender) Received: from [209.85.216.187] (HELO mail-px0-f187.google.com) (209.85.216.187) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 14:35:06 +0000 Received: by pxi17 with SMTP id 17so1914769pxi.21 for ; Fri, 30 Oct 2009 07:34:45 -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; bh=JebuMsrBJirzU/c8CwAoDfC296YzMGZkA1L0b3wQmfk=; b=JVHgMMfDuhlQNQgTwsFBBjrfT/uW3UyfdDhSCMtI03pyIXeohe1C2Ae9vnFoY5Yhpo 66ycHmDv2MwiUrQwAWO44oimaelt7y3DkB58tV/KOBAaWSQlj8v748UflRxAjfi12E41 WGsAi0uJ3PF6YHsOOGVWc06StFOsN/cS/US4Q= 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; b=owfXiV92j9ZWmZldyukSxS3h16we5zt/dhqt/JmaQsv+9DQbWYlUIUaWa328clLSy9 PmQ/bYw8cmo93J/ZZsNanEv2PqMdPIZLRt5Hxnd4gDVPHkJKZfUMweYVXRpjJz9y7wIt /u33LVD5c3yTBeycS5Xyka6K40yKPdHV92PT0= MIME-Version: 1.0 Received: by 10.115.38.39 with SMTP id q39mr1308434waj.27.1256913283125; Fri, 30 Oct 2009 07:34:43 -0700 (PDT) In-Reply-To: <9ac0c6aa0910300731n1b820798y90a45aaaa9ecdcda@mail.gmail.com> References: <20091030124511.7DE0A238888A@eris.apache.org> <8f0ad1f30910300547q7c269010ycebde0b6560cc8c1@mail.gmail.com> <9ac0c6aa0910300731n1b820798y90a45aaaa9ecdcda@mail.gmail.com> From: Robert Muir Date: Fri, 30 Oct 2009 10:34:23 -0400 Message-ID: <8f0ad1f30910300734x2601624bo6f1281a0e436af37@mail.gmail.com> Subject: Re: svn commit: r831284 - /lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLowerCaseFilter.java To: java-dev@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e64c2684c11224047727ed8a X-Virus-Checked: Checked by ClamAV on apache.org --0016e64c2684c11224047727ed8a Content-Type: text/plain; charset=UTF-8 yeah should i change it for now to be safe? On Fri, Oct 30, 2009 at 10:31 AM, Michael McCandless < lucene@mikemccandless.com> wrote: > You mean to state that it won't be removed until 4.0? > > Mike > > On Fri, Oct 30, 2009 at 8:47 AM, Robert Muir wrote: > > thanks! > > > > by the way, depending on back compat policy we can change that javadoc > > accordingly? > > (not sure how it applies to contrib anyway, but whatever you think is > best) > > > > On Fri, Oct 30, 2009 at 8:45 AM, wrote: > >> > >> Author: mikemccand > >> Date: Fri Oct 30 12:45:11 2009 > >> New Revision: 831284 > >> > >> URL: http://svn.apache.org/viewvc?rev=831284&view=rev > >> Log: > >> LUCENE-2002: restore RussianLowerCaseFilter > >> > >> Added: > >> > >> > lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLowerCaseFilter.java > >> (with props) > >> > >> Added: > >> > lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLowerCaseFilter.java > >> URL: > >> > http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLowerCaseFilter.java?rev=831284&view=auto > >> > >> > ============================================================================== > >> --- > >> > lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLowerCaseFilter.java > >> (added) > >> +++ > >> > lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLowerCaseFilter.java > >> Fri Oct 30 12:45:11 2009 > >> @@ -0,0 +1,56 @@ > >> +package org.apache.lucene.analysis.ru; > >> + > >> +/** > >> + * Licensed to the Apache Software Foundation (ASF) under one or more > >> + * contributor license agreements. See the NOTICE file distributed > with > >> + * this work for additional information regarding copyright ownership. > >> + * The ASF licenses this file to You under the Apache License, Version > >> 2.0 > >> + * (the "License"); you may not use this file except in compliance with > >> + * the License. You may obtain a copy of the License at > >> + * > >> + * http://www.apache.org/licenses/LICENSE-2.0 > >> + * > >> + * Unless required by applicable law or agreed to in writing, software > >> + * distributed under the License is distributed on an "AS IS" BASIS, > >> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > >> implied. > >> + * See the License for the specific language governing permissions and > >> + * limitations under the License. > >> + */ > >> + > >> +import java.io.IOException; > >> + > >> +import org.apache.lucene.analysis.LowerCaseFilter; // for javadoc > >> +import org.apache.lucene.analysis.TokenFilter; > >> +import org.apache.lucene.analysis.TokenStream; > >> +import org.apache.lucene.analysis.tokenattributes.TermAttribute; > >> + > >> +/** > >> + * Normalizes token text to lower case. > >> + * @deprecated Use {@link LowerCaseFilter} instead, which has the same > >> + * functionality. This filter will be removed in Lucene 3.1 > >> + */ > >> +public final class RussianLowerCaseFilter extends TokenFilter > >> +{ > >> + private TermAttribute termAtt; > >> + > >> + public RussianLowerCaseFilter(TokenStream in) > >> + { > >> + super(in); > >> + termAtt = addAttribute(TermAttribute.class); > >> + } > >> + > >> + public final boolean incrementToken() throws IOException > >> + { > >> + if (input.incrementToken()) { > >> + char[] chArray = termAtt.termBuffer(); > >> + int chLen = termAtt.termLength(); > >> + for (int i = 0; i < chLen; i++) > >> + { > >> + chArray[i] = Character.toLowerCase(chArray[i]); > >> + } > >> + return true; > >> + } else { > >> + return false; > >> + } > >> + } > >> +} > >> > >> Propchange: > >> > lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianLowerCaseFilter.java > >> > >> > ------------------------------------------------------------------------------ > >> svn:eol-style = native > >> > >> > > > > > > > > -- > > Robert Muir > > rcmuir@gmail.com > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > > -- Robert Muir rcmuir@gmail.com --0016e64c2684c11224047727ed8a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable yeah should i change it for now to be safe?

On Fri, Oct 30, 2009 at 10:31 AM, Michael McCandless &= lt;lucene@mikemccandless.com> wrote:
You mean to state= that it won't be removed until 4.0?

Mike

On Fri, Oct 30, 2009 at 8:47 AM, Robert Muir <
rcmuir@gmail.com> wrote:
> thanks!
>
> by the way, depending on back compat policy we can change that javadoc=
> accordingly?
> (not sure how it applies to contrib anyway, but whatever you think is = best)
>
> On Fri, Oct 30, 2009 at 8:45 AM, <mikemccand@apache.org> wrote:
>>
>> Author: mikemccand
>> Date: Fri Oct 30 12:45:11 2009
>> New Revision: 831284
>>
>> URL: http://svn.apache.org/viewvc?rev=3D831284&vie= w=3Drev
>> Log:
>> LUCENE-2002: restore RussianLowerCaseFilter
>>
>> Added:
>>
>> =C2=A0lucene/java/trunk/contrib/analyzers/common/src/java/org/apac= he/lucene/analysis/ru/RussianLowerCaseFilter.java
>> =C2=A0 (with props)
>>
>> Added:
>> lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/luc= ene/analysis/ru/RussianLowerCaseFilter.java
>> URL:
>> http://svn.apache.= org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/l= ucene/analysis/ru/RussianLowerCaseFilter.java?rev=3D831284&view=3Dauto<= /a>
>>
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
>> ---
>> lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/luc= ene/analysis/ru/RussianLowerCaseFilter.java
>> (added)
>> +++
>> lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/luc= ene/analysis/ru/RussianLowerCaseFilter.java
>> Fri Oct 30 12:45:11 2009
>> @@ -0,0 +1,56 @@
>> +package
org.apache.lucene.analysis.ru;
>> +
>> +/**
>> + * Licensed to the Apache Software Foundation (ASF) under one or = more
>> + * contributor license agreements. =C2=A0See the NOTICE file dist= ributed with
>> + * this work for additional information regarding copyright owner= ship.
>> + * The ASF licenses this file to You under the Apache License, Ve= rsion
>> 2.0
>> + * (the "License"); you may not use this file except in= compliance with
>> + * the License. =C2=A0You may obtain a copy of the License at
>> + *
>> + * =C2=A0 =C2=A0 http://www.apache.org/licenses/LICENSE-2.0
>> + *
>> + * Unless required by applicable law or agreed to in writing, sof= tware
>> + * distributed under the License is distributed on an "AS IS= " BASIS,
>> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express o= r
>> implied.
>> + * See the License for the specific language governing permission= s and
>> + * limitations under the License.
>> + */
>> +
>> +import java.io.IOException;
>> +
>> +import org.apache.lucene.analysis.LowerCaseFilter; // for javadoc=
>> +import org.apache.lucene.analysis.TokenFilter;
>> +import org.apache.lucene.analysis.TokenStream;
>> +import org.apache.lucene.analysis.tokenattributes.TermAttribute;<= br> >> +
>> +/**
>> + * Normalizes token text to lower case.
>> + * @deprecated Use {@link LowerCaseFilter} instead, which has the= same
>> + * =C2=A0functionality. This filter will be removed in Lucene 3.1=
>> + */
>> +public final class RussianLowerCaseFilter extends TokenFilter
>> +{
>> + =C2=A0 =C2=A0private TermAttribute termAtt;
>> +
>> + =C2=A0 =C2=A0public RussianLowerCaseFilter(TokenStream in)
>> + =C2=A0 =C2=A0{
>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0super(in);
>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0termAtt =3D addAttribute(TermAttribut= e.class);
>> + =C2=A0 =C2=A0}
>> +
>> + =C2=A0 =C2=A0public final boolean incrementToken() throws IOExce= ption
>> + =C2=A0 =C2=A0{
>> + =C2=A0 =C2=A0 =C2=A0if (input.incrementToken()) {
>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0char[] chArray =3D termAtt.termBuffer= ();
>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0int chLen =3D termAtt.termLength(); >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0for (int i =3D 0; i < chLen; i++)<= br> >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0{
>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0chArray[i] =3D Character.toLow= erCase(chArray[i]);
>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0}
>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0return true;
>> + =C2=A0 =C2=A0 =C2=A0} else {
>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0return false;
>> + =C2=A0 =C2=A0 =C2=A0}
>> + =C2=A0 =C2=A0}
>> +}
>>
>> Propchange:
>> lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/luc= ene/analysis/ru/RussianLowerCaseFilter.java
>>
>> ------------------------------------------------------------------= ------------
>> =C2=A0 =C2=A0svn:eol-style =3D native
>>
>>
>
>
>
> --
> Robert Muir
> rcmuir@gmail.com
>

---------------------------------------------------------------= ------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org




--
Robert Muir
rcmuir@gmail.com
--0016e64c2684c11224047727ed8a--