By using members from the ENEQuery class, you can set the number of bulk-format records to be returned by the MDEX Engine.
// Java example: usq.setNavNumBulkERecs(MAX_BULK_ERECS_AVAILABLE); // .NET example: usq.NavNumBulkERecs = MAX_BULK_ERECS_AVAILABLE;
Note that all of the above calls are also available in the UrlENEQuery class.
The following examples set the maximum number of bulk-format records to 5,000 for a navigation query.
// Set MDEX Engine connection ENEConnection nec = new HttpENEConnection(eneHost,enePort); // Create a query ENEQuery usq = new UrlENEQuery(request.getQueryString(), "UTF-8"); // Specify the maximum number of records to be returned usq.setNavNumBulkERecs(5000); // Make the query to the MDEX Engine ENEQueryResults qr = nec.query(usq);
// Set Navigation Engine connection HttpENEConnection nec = new HttpENEConnection(ENEHost, ENEPort); // Create a query String queryString = Request.Url.Query.Substring(1); ENEQuery usq = new UrlENEQuery(queryString, "UTF-8"); // Specify the maximum number of records to be returned usq.NavNumBulkERecs = 5000; // Make the request to the Navigation Engine ENEQueryResults qr = nec.Query(usq);