Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Search suggestions not working #1095

Closed
frank-ulrich-weber opened this issue Nov 16, 2023 · 1 comment
Closed

[BUG] Search suggestions not working #1095

frank-ulrich-weber opened this issue Nov 16, 2023 · 1 comment
Assignees
Labels
🐛 bug A non-security related bug.

Comments

@frank-ulrich-weber
Copy link
Collaborator

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

  1. Enable Search Suggestions for at least one existing metadata field
  2. Index/Reindex the documents
  3. 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.

@sebastian-meyer sebastian-meyer added the 🐛 bug A non-security related bug. label Jan 30, 2024
@sebastian-meyer sebastian-meyer changed the title Search suggestions not working [BUG] Search suggestions not working Feb 14, 2024
@frank-ulrich-weber
Copy link
Collaborator Author

Fixed by #1289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug A non-security related bug.
Projects
None yet
Development

No branches or pull requests

2 participants