Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions module/VuFind/src/VuFind/Search/Solr/Explanation.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,8 @@ public function performRequest($recordId)
$params->set('spellcheck', 'false');
$explainParams = new ParamBag([
'fl' => 'id,score',
'facet' => 'true',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the biggest problem -- there's a completely different facet API as part of the new JSON Request API, so we'd need to define what facets we want, etc. But I don't see facets being used within the Explain feature. So can we just remove it?

'debug' => 'true',
'indent' => 'true',
'param' => 'q',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no documentation on what this param element is supposed to do, and it seem to have no effect. There is a params element in the JSON Request API, but that's something entirely different. There's also a param element within the JSON Facet API's domain filters, but again that doesn't seem relevant here. And it seems to have no effect.

'echoParams' => 'all',
'explainOther' => 'id:"' . addcslashes($recordId, '"') . '"',
]);
Expand Down