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 A69D47071 for ; Tue, 6 Sep 2011 09:53:08 +0000 (UTC) Received: (qmail 22559 invoked by uid 500); 6 Sep 2011 09:53:06 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 20849 invoked by uid 500); 6 Sep 2011 09:52:56 -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 20803 invoked by uid 99); 6 Sep 2011 09:52:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 09:52:36 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Tue, 06 Sep 2011 09:52:33 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B9DB3821E8 for ; Tue, 6 Sep 2011 09:52:12 +0000 (UTC) Date: Tue, 6 Sep 2011 09:52:12 +0000 (UTC) From: "Simon Willnauer (JIRA)" To: dev@lucene.apache.org Message-ID: <1240206558.19753.1315302732758.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1159540028.19387.1315297570093.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3415) Snowball filter to include original word too 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 [ https://issues.apache.org/jira/browse/LUCENE-3415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097857#comment-13097857 ] Simon Willnauer commented on LUCENE-3415: ----------------------------------------- instead of modifying snowball filter you could write a filter that buffers the term and emits it twice. First you simply pass on the term and the second time you set KeywordAttribute#setKeyword(boolean) to true. This will force the stemmer to ignore this term an pass it along the tokenstream pipeline without modification. Would that solve your problem? I am not sure we should actually provide such a filter but others have more insight into this, robert? > Snowball filter to include original word too > -------------------------------------------- > > Key: LUCENE-3415 > URL: https://issues.apache.org/jira/browse/LUCENE-3415 > Project: Lucene - Java > Issue Type: Improvement > Components: modules/analysis > Affects Versions: 3.3 > Environment: All > Reporter: Manish > Labels: features > Fix For: 3.4, 4.0 > > > 1. Currently, snowball filter deletes the original word and adds the stemmed word to the index. So, if i want to do search with / without stemming, i have to keep 2 fields, one with stemming and one without it. > 2. Rather than doing this, if we have configurable item to preserve original, it would solve more business problem. > 3. Using single field, i can do search using stemming / without stemming by changing the query filters. > The same can also be done for phonetic filters too. -- 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