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 regular highlighting in case no hl field can be determined (fixes #396) #404

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

jbaiter
Copy link
Member

@jbaiter jbaiter commented Mar 4, 2024

Looks like there's a bug in Solr where when no highlighting field can be determined (from hl.fl or the df defined for the query parser), the set of highlight fields will contain a single null value that triggers an exception down the line, causing the highlight component to fail and the response to return with a 400 error code.

The workaround is to simply set the hl.fl paremter for the regular highlighter explicitly, and excluding the null value there.

…396)

Looks like there's a bug in Solr where when no highlighting field can be
determined (from `hl.fl` or the `df` defined for the query parser), the
set of highlight fields will contain a single `null` value that triggers
an exception down the line, causing the highlight component to fail and
the response to return with a 400 error code.

The workaround is to simply set the `hl.fl` paremter for the regular
highlighter explicitly, and excluding the `null` value there.
@jbaiter jbaiter merged commit 3f4934c into main Mar 5, 2024
6 checks passed
@jbaiter jbaiter deleted the regularhlfix branch March 5, 2024 08:34
jbaiter added a commit that referenced this pull request Apr 25, 2024
**Changed:**
- Missing files no longer fail the complete search request, instead the OCR
  highlighting for the document is skipped
- Add support for Solr 9.5
- Updated documentation with warning for Solr 9 users to disable security sandboxing
  when using pointers to external files

**Fixed:**
- Regular highlighting in case no hl field can be determined works again (#404)
- Passage building across more than two concatenated files works now (#422)
@jbaiter jbaiter mentioned this pull request Apr 25, 2024
jbaiter added a commit that referenced this pull request Apr 25, 2024
**Changed:**
- Missing files no longer fail the complete search request, instead the OCR
  highlighting for the document is skipped
- Add support for Solr 9.5
- Updated documentation with warning for Solr 9 users to disable security sandboxing
  when using pointers to external files

**Fixed:**
- Regular highlighting in case no hl field can be determined works again (#404)
- Passage building across more than two concatenated files works now (#422)
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.

2 participants