Traktormaster opened a new pull request #1123: LUCENE-9093: Unified highlighter 
with word separator never gives context to the left
URL: https://github.com/apache/lucene-solr/pull/1123
 
 
   # Description
   
   This is an improved version of the patch submitted to the Jira issue about a 
week ago. A lot of information and discussion was posted on Jira. Here are my 
relevant comments:
   [Initial comment about possible 
solution](https://issues.apache.org/jira/browse/LUCENE-9093?focusedCommentId=16995738&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16995738)
   [Follow-up with more 
details](https://issues.apache.org/jira/browse/LUCENE-9093?focusedCommentId=16996736&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16996736)
   
   # Solution
   [Submitted patch and some notes on the 
implementation](https://issues.apache.org/jira/browse/LUCENE-9093?focusedCommentId=16998660&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16998660)
   
   This pull request is made so that the new parameter's default value is 
backward-compatible when merging to the 8.x and 7.x branches.
   @dsmiley suggested that for the 9.x (master) branch this should be changed 
in a second PR. In this 2nd phase I'll create another PR here with a 
`hl.fragalign` of `0.5` and updated docs. Regarding this 2nd PR I'd also 
suggest to change the default `hl.bs.type` to `WORD` as the new behavior will 
then be similar to the other highlighters' default behavior.
   
   # Tests
   All related tests were updated and extended with a few new assertions to 
check the changes. I wrote one more comment clarifying how the changes work 
with different BreakIterator types:
   [Clarification on how SENTENCE BI will 
behave](https://issues.apache.org/jira/browse/LUCENE-9093?focusedCommentId=17002548&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17002548)
   
   # Checklist
   
   Please review the following and check all that apply:
   
   - [x] I have reviewed the guidelines for [How to 
Contribute](https://wiki.apache.org/solr/HowToContribute) and my code conforms 
to the standards described there to the best of my ability.
   - [x] I have created a Jira issue and added the issue ID to my pull request 
title.
   - [x] I have given Solr maintainers 
[access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork)
 to contribute to my PR branch. (optional but recommended)
   - [x] I have developed this patch against the `master` branch.
   - [x] I have run `ant precommit` and the appropriate test suite.
   - [x] I have added tests for my changes.
   - [x] I have added documentation for the [Ref 
Guide](https://github.com/apache/lucene-solr/tree/master/solr/solr-ref-guide) 
(for Solr changes only).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to