Skip to content

Fix regular highlighting in case no hl field can be determined (fixes #396) - #404

Merged
jbaiter merged 1 commit into
mainfrom
regularhlfix
Mar 5, 2024
Merged

jbaiter merged 1 commit into
mainfrom
regularhlfix

Conversation

@jbaiter

@jbaiter jbaiter commented Mar 4, 2024

Copy link
Copy Markdown
Member

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
@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