To build an MDEX Engine query and execute it, you use the three core classes of the Presentation API. Code examples in this topic show you how to build and execute a query.
The code to build and execute a query would look similar to the following:
Example 108. Java Example
//Create an ENEConnection ENEConnection nec = new HttpENEConnection(eneHost, enePort); //Create a query from the browser request query string ENEQuery nequery = new UrlENEQuery(request.getQueryString(), "UTF-8"); //Execute the MDEX Engine query ENEQueryResults results = nec.query(nequery); //Additional Presentation API calls to retrieve query results ...
Example 109. .NET Example
//Create an ENEConnection HttpENEConnection nec = new HttpENEConnection(eneHost, enePort); //Create a query from the browser request query string ENEQuery nequery = new UrlENEQuery(Request.QueryString.ToString(), "UTF-8"); //Execute the Navigation Engine query ENEQueryResults results = nec.Query(nequery); //Additional Presentation API calls to retrieve query results ...