Delete from Text Index

Deletes a document from the index.

The Delete from Text Index API removes content from a text index that you have created and indexed content into. You specify the document reference of the document that you want to delete, and the API removes it from the text index. After you delete a document, it is not available for use in other APIs such as Query Text Index.

Quick Start

Haven OnDemand finds the documents to delete by using the index reference value, which is stored in the reference field of each document. You can set the reference manually when you add documents by using the Add to Text Index API. If you do not manually specify a reference, Haven OnDemand adds one automatically. When you use the Query Text Index API, the response includes the reference for each result document.

Note: The index reference refers only to the reference fields in text indexes. It is not the same as the references obtained from object storing APIs such as the Store Object API.

You pass the document reference in the index_reference parameter. You must also provide the name of the text index that the document is contained in.

Haven OnDemand uses cookies to enhance and improve the experience it provides. By continuing to use this site or pressing Continue,
we will assume that you accept receiving all cookies. If you would like to change which cookies are set, you can change your settings.