The programmatic interface

As an extension of the Endeca API, the Endeca Analytics API provides a full, structured object-based programmatic interface (currently supported for Java and .NET/C# 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 transliterated into C# equivalents. All class names are equivalent. Accessor methods, method casing, and container/iterator (enumerator) syntax differ as appropriate for C# conventions. See the C# API Guide for full syntactic details.

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);