You use the ENEQuery class, or its subclass UrlENEQuery, to create an MDEX Engine query.

You use the UrlENEQuery class to parse MDEX Engine-specific parameters from the browser request query string into MDEX Engine query parameters.

The code to accomplish this task looks like the following:

Java:

//Create a query from the browser request query string
 ENEQuery nequery = new UrlENEQuery(request.getQueryString(), "UTF-8");

The browser request query string resides in the HTTPServletRequest object from the javax.servlet.http package.

.NET:

//Create a query from the browser request query string
 ENEQuery nequery = new UrlENEQuery(Request.QueryString.ToString(), "UTF-8");

The UrlENEQuery class ignores non-MDEX Engine-specific parameters, so this class is still safe to use when additional application-specific parameters are needed (as long as they don’t conflict with the MDEX Engine URL parameter namespace).


Copyright © Legal Notices