Skip to content

Commit

Permalink
Make Field Name Filter Case Insensitive
Browse files Browse the repository at this point in the history
Signed-off-by: Suchit Sahoo <[email protected]>
  • Loading branch information
LDrago27 committed May 9, 2024
1 parent 7d9b3cd commit b7f4e36
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export function isFieldFiltered(
field.type === '_source' ||
field.scripted ||
fieldCounts[field.name] > 0;
const matchName = !filterState.name || field.name.indexOf(filterState.name) !== -1;
const matchName =
!filterState.name || field.name.toLowerCase().indexOf(filterState.name.toLowerCase()) !== -1; // case insensitive matching name

return matchFilter && isAggregatable && isSearchable && scriptedOrMissing && matchName;
}

0 comments on commit b7f4e36

Please sign in to comment.