-
Notifications
You must be signed in to change notification settings - Fork 13
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
Empty ocrHighlighting snippets (n:1) #173
Labels
bug
Something isn't working
Comments
|
Sure, we are using the 0.6.0 version with Solr 8.8 if that helps. Solr log
Alto files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have indexed multiple files per document (n:1) and the number of snippets for a document that should be 24 returns empty.
Request 24:
curl --location --request GET 'http://localhost:8983/solr/ocr/select?defType=edismax&hl.snippets=24&hl.weightMatches=true&hl=on&fl=id,ocr_text&qf=ocr_text&hl.ocr.fl=ocr_text&q=ocr_text:gallega%20AND%20id:es-scbg_bblg_18950101'
Response 24:
The thing is that if I reduce the number of snippets to 2 I get 2 snippets in the response.
Request 2:
curl --location --request GET 'http://localhost:8983/solr/ocr/select?defType=edismax&hl.snippets=2&hl.weightMatches=true&hl=on&fl=id,ocr_text&qf=ocr_text&hl.ocr.fl=ocr_text&q=ocr_text:gallega%20AND%20id:es-scbg_bblg_18950101'
Response 2:
The empty snippets starts at 9, until then everything seems to work fine.
Request 9:
curl --location --request GET 'http://localhost:8983/solr/ocr/select?defType=edismax&hl.snippets=9&hl.weightMatches=true&hl=on&fl=id,ocr_text&qf=ocr_text&hl.ocr.fl=ocr_text&q=ocr_text:gallega%20AND%20id:es-scbg_bblg_18950101'
Response 9:
I tried to sort the ocr_text so the pages are in order, but the results are not the same (goes up to 18 instead of 9) but similar, so the order matters.
Thanks!
The text was updated successfully, but these errors were encountered: