...
add pi_query_search to the list of overrided pageproviders.
Values listed in elasticsearch.override.pageproviders will give new alias names to ElasticSearchNxqlPageProvider and this provider will be returned by PageProviderService if one of the alias names will be provided in it.
pi_query_search is our custom page provider name which is used only in PiDocumentPaginatedQuery when it is called with elasticsearch=true flag. Now PiDocumentPaginatedQuery is called with elasticsearch=true flag only for fulltext searches (yellow search box and search window). In all other cases PiDocumentPaginatedQuery with elasticsearch=false or original DocumentPaginatedQuery is called.
...