AMRIT SARKAR created SOLR-10152:
-----------------------------------
Summary: PostingsSolrHighlighter needs support for
CustomSeparatorBreakIterator (LUCENE-6485)
Key: SOLR-10152
URL: https://issues.apache.org/jira/browse/SOLR-10152
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Reporter: AMRIT SARKAR
Lucene 5.3 added a CustomSeparatorBreakIterator (see LUCENE-6485)
Patch is provided which incorporates CustomSeparatorBreakIterator in
PostingsSolrHighlighter.
- added a new request param option to specify which separator char to use.
*customSeparatorChar*.
- changed PostingsSolrHighlighter.getBreakIterator to check
HighlightParams.BS_TYPE first.
- if type=='CUSTOM', look for the new separator param, in getBreakIterator,
validate it's a single char, & skip locale parsing.
- 'WHOLE' option moved from parseBreakIterator to getBreakIterator, as it
doesn't depend on locale
Changes made in:
* HighlightParams.java
* PostingsSolrHighlighter.java
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]