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
Suggester.js uses a POST-Request to send the query parameters,
but within the method process() of class SearchSuggest Sparameters = $request->getQueryParams() is allways empty.
I realised that for a POST-Request (different than for a GET-Request in SearchInDocument class) I
need getParsedBody() insted (my mistake in pull request #1088), but if I do so $parameters is still empty.
If I use a GET-Request within Suggester.js and getQueryParams() in process() (SearchSuggest class) everything is working fine.
Regardless of the fact that the usage of getQueryParams() is wrong in conjunction with a POST-Request,
why does getParsedBody() always deliver an empty string? Does only my test-environment bahave like this?
Reproduction
Enable Search Suggestions for at least one existing metadata field
Index/Reindex the documents
Open the search slot and try
Expected Behavior
Search suggestions should be shown
Screenshots and Examples
If applicable, add screenshots and/or provide examples to help explain your problem.
Environment
OS version: Windwos 10
RDBMS version: MySQL 5.7
Apache Solr version: Solr 8.11.4
TYPO3 version: 11.5.31
PHP version: 7.4
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Description
Suggester.js uses a POST-Request to send the query parameters,
but within the method process() of class SearchSuggest Sparameters = $request->getQueryParams() is allways empty.
I realised that for a POST-Request (different than for a GET-Request in SearchInDocument class) I
need getParsedBody() insted (my mistake in pull request #1088), but if I do so $parameters is still empty.
If I use a GET-Request within Suggester.js and getQueryParams() in process() (SearchSuggest class) everything is working fine.
Regardless of the fact that the usage of getQueryParams() is wrong in conjunction with a POST-Request,
why does getParsedBody() always deliver an empty string? Does only my test-environment bahave like this?
Reproduction
Expected Behavior
Search suggestions should be shown
Screenshots and Examples
If applicable, add screenshots and/or provide examples to help explain your problem.
Environment
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: