Skip to content

[EuiHighlight] Highlight separated words #5798

@pickypg

Description

@pickypg

When using tools like App Search to highlight, it will highlight across words as most searches will do. For instance, searching for

Beats output

would highlight the title as shown:

Beats redis output

However, EuiHighlight only works on case insensitive matches of the entire phrase. Using the EuiHighlight example text:

The quick brown fox jumped over the lazy dog

fox dog fails to highlight anything:

image

fox jumped works

image

fox works (as does fox with a space before/after, with the space unexpectedly highlighted)

image

dog works

image

Metadata

Metadata

Assignees

Labels

low hanging fruitAn issue, often a bug, that is lower effort and clearly ought to be fixed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions