Loading TOC...

MarkLogic Server 11.0 Product Documentation
cts.deregister

cts.deregister(
   id as (Number|String)
) as null

Summary

Deregister a registered query, explicitly releasing the associated resources.

Parameters
id A registered query identifier.

Example

const q = cts.jsonPropertyWordQuery("my-property", "hello");
const reg = cts.register(q);
cts.deregister(reg);

// this registers and then deregisters a query, returning empty

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.