Skip to content

Conversation

@maccabeelevine
Copy link
Member

For #4991 I am migrating all Solr parameters to use the Solr JSON Request API. I am not sure how to migrate these parameters used in the Explain feature, and they don't seem to have any effect on the output anyway, so hoping we can just remove them.

$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?

'facet' => 'true',
'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.

@maccabeelevine maccabeelevine marked this pull request as ready for review January 16, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant