Skip to main content
Participant
Apr 8, 2021 3:18 PM UTC
Answered

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?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    BKBK
    BKBKCorrect answer
    Community Expert
    Apr 10, 2021 3:17 PM UTC

    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
    Apr 10, 2021 3:17 PM UTC

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

     

     

     

     

     

    Translate