Add messaging for character minimum in global search disclosure

In scope of this issue we need to figure out what would be the correct Empty state message for the global search and add it

so entering 3&more chars performs the ElasticSearch

This 3 char minimum requirement is the case for ElasticSearch or Basic search, correct (if ElasticSearch/Advanced Search isn't enabled on instance)? It doesn't seem like it only applies to one in testing this locally.

That said, I think the reason I was confused is because I have noticed a bug in the current implementation on production (topbar version). If I only type 1 or 2 characters, I can't search. However, after typing a couple characters, I can delete some and then perform a search with less than 3 characters. Seems as though it's preventing these searches just based on an entered amount of keystrokes, not how many characters are within the field. See screen capture below for what I mean.

Screen capture

Kapture_2023-03-15_at_18.02.26

The implementation in the modal though seems to be functioning as desired if we are limiting based on 3 characters, as I can't replicate what I described above.


If the above is true, and we are indeed limiting all searches until at least 3 characters are in the search field, then I think adding some help messaging disclosing this to the user makes sense. I'm thinking something like the below copy, styled like shown here in Figma (also below). After 3 characters exist this would disappear and be replaced with the scope options (if there are any).

Expand to see design

Screenshot_2023-03-15_at_6.42.16_PM

Enter at least 3 characters to submit a search.

I think it would be good to have techwriting weigh in on this though. @sselhorn do you have any thoughts on copy disclosing to users that they must enter a certain amount of characters before they can execute a search?