[ https://issues.apache.org/jira/browse/LUCENE-5620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13982450#comment-13982450 ]
Ahmet Arslan commented on LUCENE-5620: -------------------------------------- After re-reading the description, it looks like you have a different use case. If I understand it correctly, if we have an example document {{General Motors}} query {{GENERAL MOTORS}} won't return that document. And you are OK with that. In other words following field type represents your use case. {code:xml} <fieldType name="text_preserve" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory" preserveOriginal="true"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.StandardTokenizerFactory"/> </analyzer> </fieldType> {code} However, I thought that *preserveOriginal* is intended to *boost* documents that contains original/raw/as-is search terms. > 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, 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org