Update $testVectorSearchOptimization extension to use new limit and sort optimizations

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Modify the $testVectorSearchOptimization extension so it (1) uses get_pipeline_bounds() to derive the effective limit from pipeline bounds and serializes this limit for explain, replacing legacy set_vector_search_limit_for_optimization behavior, and (2) implements a reorder rule that removes a redundant $sort on vectorSearchScore after the extension stage via the new RBR-based rewrite API, while keeping old optimization hooks active behind the new feature flag to validate parity.

            Assignee:
            Unassigned
            Reporter:
            Adithi Raghavan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: