0 Replies Latest reply: Sep 6, 2012 3:19 PM by 882732 RSS

    SEARCH_TERMS, ACTION_CODE and SEARCH_TYPE from ENEQueryResults and ENEQuery

    882732
      Hello.

      In the Endeca Reference Application - in LogWriter.java (or logging_functions.jsp) these values are logged with the help of a HttpServletRequest request object:

      ACTION_CODE
      SEARCH_KEY
      SEARCH_TERMS
      SEARCH_MOD
      SORT_KEY

      Can these values be derived from ENEQueryResults and ENEQuery objects?

      (In our application we're using JSF so the query string associated requests isn't available and even if it were - we're using our own methods to build queries.)

      In other words - does anyone have some code that gets some of this data from these ENE objects?

      Um - I see that query.getNavRecordStructureExpr() returns the query - but for performance I want to avoid regex parsing.

      I'm especially interested in SEARCH_TERMS and ACTION_CODE.

      Thanks.