As an extension of the Presentation API, the Endeca Analytics API provides a full, structured object-based programmatic interface (supported for Java and .NET APIs).
This standard object-level interface to Analytics queries is expected to be used in most production application settings. Like the ENEQuery interface, the Analytics API provides convenient methods for programmatic manipulation of the query, allowing the application to expose a broad set of GUI-level manipulators for analytical sub-queries.
Note
Code examples are provided in Java, but are easily converted into C# equivalents. All class names are equivalent. Accessor methods, method casing, and container/iterator (enumerator) syntax differ as appropriate for C# conventions. For details, see the Presentation and Logging API for .NET Reference (the HTML Help).
Example 1. Simple Analytics example
As a simple example, the following code snippet creates an empty Analytics query, and embeds it in a containing ENEQuery object:
ENEQuery query = new ENEQuery(); AnalyticsQuery analytics = new AnalyticsQuery(); query.setAnalyticsQuery(analytics);