So the reason for that is we have an API that receives query parameters from the client and builds an Elasticsearch query. However, depending on the type of user (whether it's financial adviser or investor and etc.) we have to apply more conditions in order to restrict the search. Unfortunately we can't make any change to the structure of the index (i.e. adding extra columns) and that's because the index is not managed by us and our API has no information about the index except the column names that are configurable.So the reason for that is we have an API that r