Skip to content

Feature/1160 search exact match#1843

Merged
chandlerprall merged 12 commits intoelastic:masterfrom
chandlerprall:feature/1160-search-exact-match
Apr 19, 2019
Merged

Feature/1160 search exact match#1843
chandlerprall merged 12 commits intoelastic:masterfrom
chandlerprall:feature/1160-search-exact-match

Conversation

@chandlerprall
Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall commented Apr 16, 2019

Summary

closes #1160, closes #1294, and closes #1855

  • Provide a new exact-match operator, =, which compliments the existing : partial match operator
  • Allow empty phrases: ""

Together, these allow searching explicitly for empty tags: tag=""

Created as a draft as I have not written tests yet, wanted to make sure the changes make sense before creating tests & docs.

Also accidentally included the fix for #1855 in this. Thanks to @thompsongl for catching that!

Checklist

- [ ] This was checked in mobile
- [ ] This was checked in IE11
- [ ] This was checked in dark mode
- [ ] Any props added have proper autodocs

  • Documentation examples were added
  • A changelog entry exists and is marked appropriately
  • This was checked for breaking changes and labeled appropriately
  • Jest tests were updated or added to match the most common scenarios
    - [ ] This was checked against keyboard-only and screenreader scenarios
    - [ ] This required updates to Framer X components

Copy link
Copy Markdown
Contributor

@bevacqua bevacqua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

Copy link
Copy Markdown
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me. Looks ready for tests and docs

@chandlerprall
Copy link
Copy Markdown
Contributor Author

Added tests & documentation, no longer a draft, re-requesting reviews.

@chandlerprall chandlerprall marked this pull request as ready for review April 18, 2019 19:49
@chandlerprall chandlerprall requested review from bevacqua and thompsongl and removed request for thompsongl April 18, 2019 19:49
Copy link
Copy Markdown
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Confirmed locally that exact matching and empty phrasing work as I'd expect.

@chandlerprall chandlerprall merged commit 7a60c9c into elastic:master Apr 19, 2019
@chandlerprall chandlerprall deleted the feature/1160-search-exact-match branch April 19, 2019 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EuiSearchBar doesn't support forward slashes when query prop is a string Search Bar: filter on empty fields Exact match operator for EuiSearchBar

3 participants