The add_to_replace function converts the index action that is run on a document from an add action to a replace action.
add_to_replace( doc )
| Argument | Description |
|---|---|
doc
|
(LuaDocument) The document that you want to index using a replace index action, and not an add index action. |
Boolean. Returns true if the conversion was successful.
|
|