Restrict all search index commands from running on viewless timeseries collections

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We should not be able to run the any search index command on viewless timeseries collections, which includes createSearchIndex, updateSearchIndex, and dropSearchIndex. For viewful timeseries collections, we fail createSearchIndex when validating if the view definition can be inside a search index. We do not have this validation for viewless timeseries collections, and therefore when we try to create a search index for viewless timeseries collections we time out because the index cannot be made.

      The rest of the search index commands succeed and do nothing for viewful timeseries collections. However, we will change the behavior and make the commands fail on timeseries collections.

      The only exception is the listSearchIndex command. listSearchIndexes does not fail for timeseries collections because support for adding this was hard (see SERVER-109094). I think we should make the command match the aggregation stage, so listSearchIndexes command can return an empty list for timeseries collections.

            Assignee:
            Joe Shalabi
            Reporter:
            Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: