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

Robert Muir commented on LUCENE-5620:
-------------------------------------

I don't understand the "larger index" stuff. Its an inverted index. I think 
this is a common source of confusion and unfortunately results in these things 
polluting the codebase.

I think the option added in LUCENE-5437 should be removed. 

If we *REALLY* must have a preserveOriginal option, then we should add a 
PreserveOriginalSnapshot/Restore filters that take care of this "around" any 
arbitrary filters. Then all existing preserveOriginal options can be eradicated.

This way such stuff does not infect basic things like lowercasefilter, which 
should only be doing lowercasing.

> LowerCaseFilter.preserveOriginal
> --------------------------------
>
>                 Key: LUCENE-5620
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5620
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Mike Sokolov
>         Attachments: LUCENE-5620.patch
>
>
> Following closely the model of LUCENE-5437 (which worked on 
> ASCIIFoldingFilter), this patch adds the ability to preserve the original 
> token to LowerCaseFilter.  This is useful if you want an all-lowercase search 
> term to match without regard to case, while search terms with uppercase 
> letters match in a case-sensitive manner. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to