You don't mention what version of Alfresco you are using, but it looks like you are using Solr.
If you just created the document, the recommendation is to keep the reference to it, so you don't have to search for it again.
However, sometimes it is not possible to have the document reference. For example, client1 is not aware that client2 just created a document. If you are using Alfresco version 4.2 or later, you can probably enable Transactional Metadata Queries (TMQ), which allows you to perform searches against the database, so there is no Solr latency. Please review the whole section, because you need to comply with four conditions to use TMQ:
- Enable the TMQ patch, so the nodes properties tables get indexed in the database.
- Enable searches using the database, whenever possible (TRANSACTION_IF_POSSIBLE).
- Make sure that you use the correct query language (CMIS, AFTS, db-lucene, etc.)
- Your query must be supported by TMQ.