Return-Path: X-Original-To: apmail-incubator-lucy-user-archive@www.apache.org Delivered-To: apmail-incubator-lucy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A87A397C7 for ; Mon, 14 Nov 2011 18:46:14 +0000 (UTC) Received: (qmail 49657 invoked by uid 500); 14 Nov 2011 18:46:14 -0000 Delivered-To: apmail-incubator-lucy-user-archive@incubator.apache.org Received: (qmail 49624 invoked by uid 500); 14 Nov 2011 18:46:14 -0000 Mailing-List: contact lucy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-user@incubator.apache.org Delivered-To: mailing list lucy-user@incubator.apache.org Received: (qmail 49616 invoked by uid 99); 14 Nov 2011 18:46:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 18:46:14 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.227.17.10] (HELO moutng.kundenserver.de) (212.227.17.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 18:46:05 +0000 Received: from [192.168.1.39] (dslb-092-075-140-244.pools.arcor-ip.net [92.75.140.244]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0McyCA-1R8uMM3m6c-00ITx4; Mon, 14 Nov 2011 19:45:44 +0100 Message-ID: <4EC161D0.1060103@aevum.de> Date: Mon, 14 Nov 2011 19:45:36 +0100 From: Nick Wellnhofer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: lucy-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:7HLaTb6iBltisU2+34C1MgXeIGRwmRBsB2R6qMY+AiW 8eKWeAd3qAOjlKUq53NV0ax2VjZUTLMXdPHLKptorJsWFpcD5O JbKa7r5AQDtZHQceGJJwWVKUUSVuk5BAJ0KRROhxbu5NHqEzar c6Ak8BlLDrbYeBeJRmr55+kGYHits/AqBwrnQPke16ivm2cxod y427Remo8JwDCQk1ry6kVPbLLVmIBlvRlLngVsMZmtwfZB75YW CyRtl4Lo9sLjjo2gtv7SDDD+oy9LgGsMo2fHOnKuf15sZaLcvJ XTJSwyS9903Edd1mV6mshxOAA4zx0f2R1u+/h1+vfRXKu3FVA= = X-Virus-Checked: Checked by ClamAV on apache.org Subject: [lucy-user] Custom analyzers I'm trying to write my own analyzer class that strips accents and does some other transformations. I had a look at Father Chrysostomos' KSx::Analysis::StripAccents and tried to get something similar to run with Lucy 0.2.2. With the following two changes I could make it work: - The 'transform' method can't reuse the inversion argument but must return a new inversion. - The analyzer needs an 'equals' method if you want to load your schema from an index. Are there any other caveats? Is there any documentation on how to write your own analyzer classes? If anyone is interested in a LucyX::Analysis::StripAccents module, I could put something up on CPAN. Nick