How to remove data from an index when indexing a view? RRS feed

  • Question

  • I index the view from my database. When I add an entry to the table, an entry is also added to the view. Index indexes new data. But when I delete this entry from the table in the index, it remains. How to set up a soft delete?
    I read the documentation and it says it is necessary to add a field. Should I add it myself?
    Monday, April 22, 2019 2:44 PM

All replies

  • Hi Andrew,

    Delete removes the specified document from the index. Note that any field you specify in a delete operation, other than the key field, will be ignored. If you want to remove an individual field from a document, use merge instead and simply set the field explicitly to null. You can learn more here.

    Hope that helps. Let us know if you have additional questions.

    Monday, April 22, 2019 9:19 PM
  • @andrew_andrew i am facing the same issue.

    i have followed the doc 

    Wednesday, May 15, 2019 12:01 PM