bumblebee icon indicating copy to clipboard operation
bumblebee copied to clipboard

Add Alternative Query Suggestion In No Results Message

Open thostetler opened this issue 6 years ago • 5 comments

When no results are found for a non-fielded query where all the characters are uppercase, we should provide an alternative query to try that is lowercase.

@aaccomazzi are there other cases when this message should show?

thostetler avatar Nov 29 '19 18:11 thostetler

@aaccomazzi @thostetler - User group suggested this for an institution search that returns no results (e.g. Harvard - did you mean Harvard U). Maybe an instutution search that is 1 word could suggest - did you mean "blah U" or "blah Coll" ?

csgrant00 avatar Nov 29 '19 18:11 csgrant00

In the case of the uppercase query, it's easy for the application to detect and provide a suggestion. For the institution query, it's much harder, because I think a suggestion is only useful if it steers the user towards something which produces results. So I think that here we'd need autocomplete.

aaccomazzi avatar Dec 02 '19 02:12 aaccomazzi

@aaccomazzi @csgrant00 how do you guys feel about this? image

thostetler avatar Dec 04 '19 18:12 thostetler

Hi Tim, I like it, but why not put it as the first option in the bullet list:

  • Try an alternate query: helio cmr mutation

and we would only do this when the input is all uppercase.

aaccomazzi avatar Dec 04 '19 22:12 aaccomazzi

We have seen cases where the user enters the query from the classic form with the title in all caps and we end up with a query that looks like this:

title:(FOO BAR XXX)

In which case no warning is issued (presumably because the field title makes the entire string be mixed case). Can we catch these cases as well with a regexp?

aaccomazzi avatar May 26 '20 17:05 aaccomazzi