Skip to content

[ES|QL] Make the search in the inline documentation more performant #192900

Open

Description

Describe the feature:

In the inline documentation component we search both in titles and descriptions https://github.com/elastic/kibana/blob/main/packages/kbn-language-documentation-popover/src/components/documentation_content.tsx#L73

In the description we convert the JSX to a string first. Instead of doing this in every key stroke, we could store the documentation as string only for the search purposes, ideally in the CI job that creates the documentation.

So we can introduce a new property descriptionAsString that is being used only for search and we keep the Markdowns for the rendering.

Note: Also let's make everything lowercase in order to avoid lowercasing in the loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Feature:ES|QLES|QL related features in KibanaTeam:ESQLES|QL related features in KibanaenhancementNew value added to drive a business result

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions