Exclude "in-progress" documents in search

Hi, Is there a way to mark a document "in-process" or to set it as "non-visible" to the search? Our requirement is do some post-processing after the document is indexed, however we don't want those document to appear in search results till the processing is complete.

We can do this by creating a field inside the document to maintain the status and applying a filter while querying. But wanted to check if ES itself provides any such feature at a higher level that we can utilize?

Elasticsearch has no concept of this. Your best option would be to create your own field and then filter on that.

@warkolm Thanks for clarifying. Does updating a boolean field re-index the entire document? Is there a way to optimize that?

Yes it does, no there's not.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.