SERVER-138466Backlog

Propagate isExpectedToExecuteQueries into the extension parse path

Expose the host's execution intent to the extension stage parse path, so an extension stage can tell a real execution request apart from analysis-only parsing. This lets the extension $listSearchIndexes counterpart skip the search management-endpoint availability [check|https://github.com/10gen/mongo/blob/6453da0686ca7ff56cae4c161c81b7bead5076e8/src/mongo/db/pipeline/search/document_source_list_search_indexes.cpp#L30-L41] for analysis-only parsing while still raising it before syntax validation

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
dino-extensions-api