Refresh index after indexing doc

Ensures that the document is available in search requests as soon as
it's indexed.