You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
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:
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
The text was updated successfully, but these errors were encountered: