- Issue created by @kaunaj
- 🇦🇹Austria drunken monkey Vienna, Austria
I didn’t see this in time and created a duplicate issue for this in the SearchStax module ( 🐛 Spellcheck not working Active ), sorry. The problem is that (if the user has selected that option) we want SearchStax to handle the spellcheck functionality and therefore remove the Spellcheck component from the Solarium query. However, Solarium apparently checks for that when parsing the response so we then don’t get the Spellcheck component in the response object even though there is a
spellcheck
key in the response JSON.I expect that that was a deliberate decision when writing the Solarium library so this is likely not gonna change. Therefore I thought the simplest solution would be to “trick” Solarium by re-adding the Spellcheck component after the search request was sent but before the response is actually parsed (
\Solarium\Core\Query\Result\QueryType::parseResponse()
).
But if we could have a solution in Solarium or the Solr module that would of course be even better, it’s a bit hack-y this way.