Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5319A200B9F for ; Tue, 11 Oct 2016 16:37:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 519A8160AE6; Tue, 11 Oct 2016 14:37:29 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 97E16160AD2 for ; Tue, 11 Oct 2016 16:37:28 +0200 (CEST) Received: (qmail 25066 invoked by uid 500); 11 Oct 2016 14:37:27 -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 25049 invoked by uid 99); 11 Oct 2016 14:37:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2016 14:37:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8D77718062B for ; Tue, 11 Oct 2016 14:37:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.12 X-Spam-Level: X-Spam-Status: No, score=-3.12 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id sqO2apTfFAYY for ; Tue, 11 Oct 2016 14:37:25 +0000 (UTC) Received: from nm29-vm6.bullet.mail.ne1.yahoo.com (nm29-vm6.bullet.mail.ne1.yahoo.com [98.138.91.122]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2CADB5FB39 for ; Tue, 11 Oct 2016 14:37:25 +0000 (UTC) Received: from [98.138.226.176] by nm29.bullet.mail.ne1.yahoo.com with NNFMP; 11 Oct 2016 14:37:14 -0000 Received: from [98.138.87.9] by tm11.bullet.mail.ne1.yahoo.com with NNFMP; 11 Oct 2016 14:37:14 -0000 Received: from [127.0.0.1] by omp1009.mail.ne1.yahoo.com with NNFMP; 11 Oct 2016 14:37:14 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 167848.13650.bm@omp1009.mail.ne1.yahoo.com X-YMail-OSG: 8nMzXvYVM1lgizL8ZugEJufbQTjHYIZRTgLqbpsvm4IjOOrLMKOwPFlM7T4ZdaJ x4QZ6ndZRnnMtk77Q40TjiYxv86f9RNAcQFB0UfI2ooMtRm23048ci396lLI9EVZDJZv_MWkZSYa xiR2PtahZvFI73D6jQ8pNwFKYRjfSyp8ggTLpBnDjFmuvpLHYY4C5u8uOckwo.sNZK_4neZP307o 9l2DuDe29XY.k033NTMKEn4a3GqVmNykjr3Mep9b0utfijtADHPsIjuZmjnl_UxBN.DyovafGzAR xMjIhYgT6foYpLGjSXrTtPyGmHAlgKfHr7Vk.YAti6dAnv8M6r1JxI6D041sg77wx4af_9MnM2ez PWV11Msqz3iPQh9HNQulQk2LgPyfKmsIgBKOdvBK1ec53HQVJHJIGxuOsgu59pPCXEtYU7WVylaV mw1qBhSoIESPGmoUw5Z0ic2cebpeFPnuGLMYKu.pmZPDGpdStoCz_1lreOnMTM8a38oH3DZ52FdH bEytiHHAMqhTDBJOyfX5AY295btRBaiWJyfIhQQ-- Received: from jws100186.mail.ne1.yahoo.com by sendmailws132.mail.ne1.yahoo.com; Tue, 11 Oct 2016 14:37:13 +0000; 1476196633.731 Date: Tue, 11 Oct 2016 14:37:13 +0000 (UTC) From: Ahmet Arslan Reply-To: Ahmet Arslan To: "java-user@lucene.apache.org" , "kums.134@gmail.com" Message-ID: <1117652603.1928339.1476196633347@mail.yahoo.com> In-Reply-To: References: Subject: Re: How to add ASCIIFoldingFilter in ClassicAnalyzer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit archived-at: Tue, 11 Oct 2016 14:37:29 -0000 Hi Kumaran, Writing a custom analyzer is easier than it seems. Please see how I added kstem to classic analyzer: return CustomAnalyzer.builder() .withTokenizer("classic") .addTokenFilter("classic") .addTokenFilter("lowercase") .addTokenFilter("kstem") .build(); Ahmet On Tuesday, October 11, 2016 5:22 PM, Kumaran Ramasubramanian wrote: Hi All, Is there any way to add ASCIIFoldingFilter over ClassicAnalyzer without writing a new custom analyzer ? should i extend StopwordAnalyzerBase again? I know that ClassicAnalyzer is final. any special purpose for making it as final? Because, StandardAnalyzer was not final before ? public final class ClassicAnalyzer extends StopwordAnalyzerBase > -- Kumaran R --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org