Skip to main content
Participant
April 8, 2021
Answered

Using cfsearch, how to see the actual query sent to the Solr server

  • April 8, 2021
  • 1 reply
  • 147 views

Is it possible to see the actual query sent to the Solr server in a log? If yes, where is it located?

    This topic has been closed for replies.
    Correct answer BKBK

    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#">

     

     

     

     

     

    1 reply

    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    April 10, 2021

    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#">