Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF3994BB7 for ; Thu, 23 Jun 2011 21:01:12 +0000 (UTC) Received: (qmail 70064 invoked by uid 500); 23 Jun 2011 21:01:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 69994 invoked by uid 500); 23 Jun 2011 21:01:12 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 69910 invoked by uid 99); 23 Jun 2011 21:01:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 21:01:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 21:01:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1744042B6BC for ; Thu, 23 Jun 2011 21:00:49 +0000 (UTC) Date: Thu, 23 Jun 2011 21:00:49 +0000 (UTC) From: "Sujit Pal (JIRA)" To: dev@lucene.apache.org Message-ID: <1340810821.34520.1308862849092.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (LUCENE-3236) Make LowerCaseFilter and StopFilter keyword aware, similar to PorterStemFilter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Make LowerCaseFilter and StopFilter keyword aware, similar to PorterStemFilter ------------------------------------------------------------------------------ Key: LUCENE-3236 URL: https://issues.apache.org/jira/browse/LUCENE-3236 Project: Lucene - Java Issue Type: Improvement Components: modules/analysis Affects Versions: 4.0 Environment: N/A Reporter: Sujit Pal Priority: Minor Fix For: 4.0 PorterStemFilter has functionality to detect if a term has been marked as a "keyword" by the KeywordMarkerFilter (KeywordAttribute.isKeyword() == true), and if so, skip stemming. The suggestion is to have the same functionality in other filters where it is applicable. I think it may be particularly applicable to the LowerCaseFilter (ie if it is a keyword, don't mess with the case), and StopFilter (if it is a keyword, then don't filter it out even if it looks like a stop word). Backward compatibility is maintained (in both cases) by adding a new constructor which takes an additional boolean parameter ignoreKeyword. The current constructor will call this new constructor with ignoreKeyword = false. Patches are attached (for LowerCaseFilter and StopFilter). I have verified that the analysis JUnit tests run against the updated code, ie, backward compatibility is maintained. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org