You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the service registered on each of these varies in an important way, which is that the logic and parameters that are added to the request by the client-side search strategies (when calling search client-side via mount context) will not be added when calling search server-side via route context.
Specifically, the following client-side logic which sets preference will not properly be added when using the server-side APIs:
Currently, the search service exposes a similar API on the client (via
registerMountContext
) and on the server (viaregisterRouteHandlerContext
).However, the service registered on each of these varies in an important way, which is that the logic and parameters that are added to the request by the client-side search strategies (when calling
search
client-side via mount context) will not be added when callingsearch
server-side via route context.Specifically, the following client-side logic which sets
preference
will not properly be added when using the server-side APIs:kibana/src/plugins/data/public/search/es_search/es_search_strategy.ts
Lines 32 to 36 in 5d50141
We need to move this logic into the server-side search strategy so that the APIs exposed in both places will function equivalently.
This is prerequisite to allow expressions to run server side (#46906) since
esaggs
will rely on the search service.The text was updated successfully, but these errors were encountered: