Skip to content

'Visualize Result' Solr9 bug #449

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

Closed
thomasegense opened this issue Mar 27, 2024 · 0 comments · Fixed by #467
Closed

'Visualize Result' Solr9 bug #449

thomasegense opened this issue Mar 27, 2024 · 0 comments · Fixed by #467
Assignees
Labels

Comments

@thomasegense
Copy link
Contributor

thomasegense commented Mar 27, 2024

A dirty quick fix has been implemented in the v.5.1.0 release for this bug.

When clicking the "Visualize Result" for a given search the parsing of JSON will fail in java code because Solr9 sends this attribute twice:

"highlighting":{},
"highlighting":{}`

And this is not a legal JSON object. Solr7 did not send any highlighting attributes.
A quick fix for release 5.1.0 is that I just do some ugly string manipulation of the JSON. A better way would be to avoid having Solr9 even returning this attribute that makes no sense for json.facet request.

The hack is implemented in the class: DomainStatisticsForDomainParser

The JSON can be seen by using this curl against a solr9 and a solr7.
curl -s -d 'q=sports&rows=0&json.facet={domains:{type:terms,field:domain,limit:100 facet:{years:{type:range,field:crawl_year,start:2023,end:2024,gap:1}}}}' 'http://localhost:8983/solr/netarchivebuilder/select' > sports.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants