[
https://issues.apache.org/jira/browse/SOLR-3185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Spencer updated SOLR-3185:
-------------------------------
Description:
Using solr.PatternReplaceCharFilterFactory to replace 'A & B' (no quotes) with
'A&B' (no spaces) will result in 'A&B' being indexed. Query analysis
will give the expected result of 'A&B'. 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:
<charFilter class="solr.PatternReplaceCharFilterFactory"
pattern="(^\w)\s[&]\s(\w)"
replacement="$1&$2" />
was:
Using solr.PatternReplaceCharFilterFactory to replace 'A & B' (no quotes) with
'A&B' (no spaces) will result in 'A&B' being indexed. Query analysis will
give the expected result of 'A&B'. 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:
<charFilter class="solr.PatternReplaceCharFilterFactory"
pattern="(^\w)\s[&]\s(\w)"
replacement="$1&$2" />
> 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
>
> Using solr.PatternReplaceCharFilterFactory to replace 'A & B' (no quotes)
> with 'A&B' (no spaces) will result in 'A&amp;B' being indexed. Query
> analysis will give the expected result of 'A&B'. 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:
> <charFilter class="solr.PatternReplaceCharFilterFactory"
> pattern="(^\w)\s[&]\s(\w)"
> replacement="$1&$2" />
--
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: [email protected]
For additional commands, e-mail: [email protected]