You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mike Spencer (Closed) (JIRA)" <ji...@apache.org> on 2012/03/02 16:43:57 UTC

[jira] [Closed] (SOLR-3185) PatternReplaceCharFilterFactory can't replace with ampersands in index

     [ https://issues.apache.org/jira/browse/SOLR-3185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Spencer closed SOLR-3185.
------------------------------

       Resolution: Not A Problem
    Fix Version/s: 3.5

Explored the chain more in depth, discovered the issue is not related to PatternReplaceCharFilterFactory at all.
                
> PatternReplaceCharFilterFactory can't replace with ampersands in index
> ----------------------------------------------------------------------
>
>                 Key: SOLR-3185
>                 URL: https://issues.apache.org/jira/browse/SOLR-3185
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis
>    Affects Versions: 3.5
>            Reporter: Mike Spencer
>            Priority: Minor
>              Labels: PatternReplaceCharFilter, regex
>             Fix For: 3.5
>
>
> Using solr.PatternReplaceCharFilterFactory to replace {noformat}A & B{noformat} with {noformat}A&B{noformat} will result in {noformat}A&amp;B{noformat} being indexed. Query analysis will give the expected result of {noformat}A&B{noformat}. I examined the index with both standalone Luke and the schema browser field and the index value is incorrect in both tools.
> This is the affected charFilter:
> {noformat}
> <charFilter class="solr.PatternReplaceCharFilterFactory"
>                     pattern="(^\w)\s[&amp;]\s(\w)"
>                     replacement="$1&amp;$2" />
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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