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 E48D2200BA6 for ; Tue, 18 Oct 2016 18:46:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E32D0160AE5; Tue, 18 Oct 2016 16:46:05 +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 3482A160ACE for ; Tue, 18 Oct 2016 18:46:05 +0200 (CEST) Received: (qmail 66308 invoked by uid 500); 18 Oct 2016 16:46:03 -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 66292 invoked by uid 99); 18 Oct 2016 16:46:03 -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, 18 Oct 2016 16:46:03 +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 200691804FC for ; Tue, 18 Oct 2016 16:46:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.148 X-Spam-Level: *** X-Spam-Status: No, score=3.148 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id boAzt1m72H3x for ; Tue, 18 Oct 2016 16:46:01 +0000 (UTC) Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id BB14F5F647 for ; Tue, 18 Oct 2016 16:46:00 +0000 (UTC) Received: by mail-qk0-f172.google.com with SMTP id z190so301914548qkc.2 for ; Tue, 18 Oct 2016 09:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=RW7SpdYz7/q8aXmT2vHntOinb2zFYmk5DRjOn2NH0h0=; b=W3TMkYoimAuKVQlm+X6MsaZxh7v4DsGxSKqUB0bjsrg7jGlF6w2/PyDez87xjTtX8p 0OtVMvKIizLgunbKd+B9DwmHjVMrsdxTuoHGWnc25y5TJTb8i1CrcGLE1wF2j215qJd3 k/RPNgJnjo/n/O8flD39wY+o/tPUuWO8QwAvYy/TqZAMY+kPaLZPceN9mQxzrtFl/EiI dCsuXyL8cTNjX/mTv2XLqMg5ZCBAXYOJIB4Knjy4BQPvgrvtkc7y5zAM4GXJtkDkEdeK mXB53v5SX2CmFrp+H/vuFXHrRtAi5OenWHwuvFsXrjIGV8hbVBJyC0FyReDSEIKtnwHe KJLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=RW7SpdYz7/q8aXmT2vHntOinb2zFYmk5DRjOn2NH0h0=; b=G6CfTdCrbpJwDYnFB5HsUCEx1Te7yDvWjoxY7hdXzcj0bkOE/HsHAxpH4crbXDds0U rg2i7eCTwxD9Urcx0+MNC1BYiwFeUU5dRWIV/NZzQ/ZK4H2bIJx7k5etEIAqN/QIu/Hd +3g4L1rsehuuZNCoprmKntaAqykb6fCZS+X3Myl41mgGMX2DjODOiUHu3rsdpSHVYItS qFcj5Pg8Gwliv+l+Nl3cWginmRD7cUbr7tmzGAl1leF1bZqPsvcoK3qyJggyS5qJmW5t y8dJ326SsTHlXS/oeCE5RIzcXMSWRgMpxJklwGFq3qJDKLbW88fAMYG4qQB/sCHpx/Z0 NPhA== X-Gm-Message-State: AA6/9RnSRCsoa1+tUAyX/Hi1Lnr2YnYHsO2QRAtghf6zaYTSrDiEYC6kte200zEoN8eEMzzGBe/i2DakUj6bpw== X-Received: by 10.55.12.210 with SMTP id 201mr1410455qkm.292.1476809160123; Tue, 18 Oct 2016 09:46:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.22.180 with HTTP; Tue, 18 Oct 2016 09:45:19 -0700 (PDT) In-Reply-To: References: <002d01d223ce$32c2fb80$9848f280$@thetaphi.de> From: Kumaran Ramasubramanian Date: Tue, 18 Oct 2016 22:15:19 +0530 Message-ID: Subject: Re: How to add ASCIIFoldingFilter in ClassicAnalyzer To: "java-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=94eb2c062cc663ed3b053f266dc4 archived-at: Tue, 18 Oct 2016 16:46:06 -0000 --94eb2c062cc663ed3b053f266dc4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Adrien How to do this? Any Pointers? =E2=80=8B > If it is fine to add the ascii folding filter at the end of the analysis chain, then you could use AnalyzerWrapper. =E2=80=8B > =E2=80=8B- Kumaran R=E2=80=8B On Tue, Oct 11, 2016 at 9:59 PM, Kumaran Ramasubramanian wrote: > > > @Ahmet, Uwe: Thanks a lot for your suggestion. Already i have written > custom analyzer as you said. But just trying to avoid new component in my > search flow. > > @Adrien: how to add filter using AnalyzerWrapper. Any pointers? > > > > > > > > > > On Tue, Oct 11, 2016 at 8:16 PM, Uwe Schindler wrote: > >> I'd suggest to use CustomAnalyzer for defining your own analyzer. This >> allows to build your own analyzer with the components (tokenizers and >> filters) you like to have. >> >> Uwe >> >> ----- >> Uwe Schindler >> H.-H.-Meier-Allee 63, D-28213 Bremen >> http://www.thetaphi.de >> eMail: uwe@thetaphi.de >> >> > -----Original Message----- >> > From: Adrien Grand [mailto:jpountz@gmail.com] >> > Sent: Tuesday, October 11, 2016 4:37 PM >> > To: java-user@lucene.apache.org >> > Subject: Re: How to add ASCIIFoldingFilter in ClassicAnalyzer >> > >> > Hi Kumaran, >> > >> > If it is fine to add the ascii folding filter at the end of the analys= is >> > chain, then you could use AnalyzerWrapper. Otherwise, you need to >> create a >> > new analyzer that has the same analysis chain as ClassicAnalyzer, plus >> an >> > ASCIIFoldingFilter. >> > >> > Le mar. 11 oct. 2016 =C3=A0 16:22, Kumaran Ramasubramanian >> > >> > a =C3=A9crit : >> > >> > > 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 >> >> > --94eb2c062cc663ed3b053f266dc4--