[ 
https://issues.apache.org/jira/browse/LUCENE-3415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097898#comment-13097898
 ] 

Robert Muir commented on LUCENE-3415:
-------------------------------------

The index size is increasing because you are storing both fields, this has 
nothing to do with how the analysis is done.

I don't think we should modify every tokenfilter to optionally inject things 
instead of changing terms: or create a hack with KeywordAttribute.

Instead if the problem is the Highlighter, why not propose a modification to 
the highlighter so it can highlight field A with field B's stored value?

> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to