Skip to main content

Programmatic API

Updates

executeUpdate accepts commands made up of an HTTP method, a path, and a request body, not relational INSERT / UPDATE / DELETE statements. See Data Writes for document IDs, update conditions, and examples.

Queries

Query with _search and Query DSL. JdbcTemplate reads beans, Maps, scalars, or lists from the driver's result columns. Pre-read settings affect field expansion; see Query Operations.

Stored Procedures and Functions

Use script_fields in _search to calculate values and read the results. SQL stored procedures, CallableStatement function callbacks, OUT-parameter records, and SQL table functions are not supported. See Script Calculations for examples.