Write Results
Write success and immediate search visibility are separate concerns.
- Use
refresh=wait_forwhen a single-document write must be visible to a following search. - For update/delete by query, use
refresh=true, notwait_for. - The connection option
indexRefresh=trueappendsrefresh=trueto applicable writes; explicit request options take precedence.
UPDATE/DELETE requests without refresh and with indexRefresh disabled return Statement.SUCCESS_NO_INFO: success without a definite count. With an explicit refresh option, single-document counts use result, and by-query requests use updated/deleted.
refresh=false also enables count extraction but does not ensure immediate search visibility.