I am using the TopNavMenu provided by navigation.ui, everything else displays except for the filter bar as seen below.
I have referred to the kibana examples - "third_party_maps_source_example" and "search_examples"
- https://github.com/elastic/kibana/blob/e98abd0fb5896b573de7ab811534d134d15d7cb9/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#L486
- https://github.com/elastic/kibana/blob/v8.8.1/examples/search_examples/public/search_sessions/app.tsx#L277
The code I have used is below
<TopNavMenu appName={PLUGIN_ID}
showSearchBar={true}
useDefaultBehaviors={true}
indexPatterns={dataView ? [dataView][0][0] : undefined}
showFilterBar={true}
unifiedSearch={getUnifiedSearchPublicPlugin()}
/>