Indicate the status of document synchronisation in $listSearchIndexes

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When creating an index and adding documents to it, it may be necessary to wait until all documents are indexed before running a query. This is particularly useful in scenarios where a temporary collection is created for immediate use (tests, jobs, etc.).

      The requirement would be to have the status of document synchronisation to the search index in $listSearchIndexes. Whether there are documents pending or not. This status should change each time the documents in the collection are modified, until they are up to date in the search index.

      This way, we can repeatedly query this status until the search index is in sync with the collection.

       

      There is a Python implementation, but it is unreliable if documents are deleted or modified. https://github.com/mongodb-labs/pymongo-search-utils/blob/main/pymongo_search_utils/index.py#L259-L298 

            Assignee:
            Unassigned
            Reporter:
            Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: