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

How to dump raw query that is sent #432

Closed
matchdav opened this issue Jun 17, 2016 · 1 comment
Closed

How to dump raw query that is sent #432

matchdav opened this issue Jun 17, 2016 · 1 comment

Comments

@matchdav
Copy link

It is unclear in the docs how to extract the params={q=stuff&bf=otherstuff...} string that is being sent when Solarium sends a query. I can see it in the Solr logs, but I would like to get at this within the API for all kinds of reasons. Halp!?

@basdenooijer
Copy link
Member

Check this example:
https://github.com/solariumphp/solarium/blob/master/examples/5.1-partial-usage.php

You probably need the $request->getUri() part.
If you need it for logging the best option is probably to create a simple plugin, see this example:
https://github.com/solariumphp/solarium/blob/master/examples/5.3.1-plugin-event-hooks.php

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

No branches or pull requests

2 participants