The controller.jsp module is the entry point into the Guided Search application.

The controller file receives the browser request from the application server, formulates the query, and sends the query to the MDEX Engine.

The following code should be added to the controller.jsp file:

if (relTermsRootId >= 0 && usq.containsNavQuery()
   && request.getParameter("Ne") == null) {
      DimValIdList dvl = new DimValIdList();
      dvl.addDimValueId(relTermsRootId);
      usq.setNavExposedRefinements(dvl);
}

The code can be added after the ENEQuery object named usq is created.

The code first tests that three conditions are true:

If all three conditions are true, then the code performs three actions:

In step 3, the dimension ID of the Term Discovery dimension is given as the argument, which means that this dimension will be the parent of the refinements that should be returned with the query. The returned refinements will be the terms.


Copyright © Legal Notices