Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Solr Highlighting #4937

Merged
merged 1 commit into from
Aug 9, 2018
Merged

Fix Solr Highlighting #4937

merged 1 commit into from
Aug 9, 2018

Conversation

matthew-a-dunlap
Copy link
Contributor

@matthew-a-dunlap matthew-a-dunlap commented Aug 8, 2018

Related Issues

Pull Request Checklist

  • Unit [tests][] completed
  • Integration [tests][]: None
  • Deployment requirements, [SQL updates][], [Solr updates][], etc.: None
  • [Documentation][docs] completed
  • Merged latest from "develop" [branch][] and resolved conflicts

@coveralls
Copy link

Coverage Status

Coverage remained the same at 15.391% when pulling bb5f6b7 on 4836-just-fix-highlighting into d77cb88 on develop.

<!-- Solved highlighting breaking after upgrade #4836. Applied to query analyzer below too:
https://stackoverflow.com/questions/26287321/solr-stemming-breaks-highlighting
Solution was to ensure original word is kept by stemmer -MAD 4.9.2 -->
<filter class="solr.KeywordRepeatFilterFactory" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing that was changed was adding this keyword repeater and then one that removes duplicates. This was done in two places. For some reason this is now needed with how we do highlighting

Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'm glad to see the solution ("Solution was to ensure original word is kept by stemmer") and the link to the answer on Stack Overflow.

@pdurbin pdurbin mentioned this pull request Aug 9, 2018
@kcondon kcondon merged commit b74f614 into develop Aug 9, 2018
@kcondon kcondon deleted the 4836-just-fix-highlighting branch August 9, 2018 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants