Using cfsearch, how to see the actual query sent to the Solr server
Is it possible to see the actual query sent to the Solr server in a log? If yes, where is it located?
Is it possible to see the actual query sent to the Solr server in a log? If yes, where is it located?
The actual query is sent to the Solr server as part of an HTTP GET request. That is, as the query-string. You can see it in the Jetty logs. The default location of the logs is C:\ColdFusion2021\cfusion\jetty\logs (for ColdFusion 2021).
To see the Solr server's response to <cfsearch name="mySearch"> (as a query result-set), simply run:
<cfdump var="#mySearch#">
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.