lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Spencer (Commented) (JIRA)" <>
Subject [jira] [Commented] (SOLR-3185) PatternReplaceCharFilterFactory can't replace with ampersands in index
Date Fri, 02 Mar 2012 02:01:00 GMT


Mike Spencer commented on SOLR-3185:

Sorry, had improper formatting before. Due to how the XML configuration needs to deal with
ampersands I have to use the &amp;amp; code instead of the character. It reads it fine
but writes it literally instead of outputting the ampersand character.

> PatternReplaceCharFilterFactory can't replace with ampersands in index
> ----------------------------------------------------------------------
>                 Key: SOLR-3185
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis
>    Affects Versions: 3.5
>            Reporter: Mike Spencer
>            Priority: Minor
>              Labels: PatternReplaceCharFilter, regex
> 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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message