cwbooth5 / go2redirector

A mnemonic URL database and redirector - new and improved!
MIT License
11 stars 3 forks source link

improve search input bar by adding a search function at keyword "search/" #1

Open cwbooth5 opened 3 years ago

cwbooth5 commented 3 years ago

When the user has go2 as a custom search engine, but they don't know which lists or links they're looking for, they should be able to perform a search of what's in the link database right from the URL bar. so:

go2 search/tacos

That would enter a search keyword and a term of "tacos", doing a full text search on all fields in lists and links. We'd also have to develop a new result page for the results.

cwbooth5 commented 3 years ago

There's a use case for a system where there are a bunch of places you want to search:

And you want to continue to have go2 search/google/parameter

The problem here is if we still want to have go2 search/parameter, we need to change the behavior to be very special for this keyword.

If they enter go2 search/searchterm, we look for a tag on that list. If there, we treat it as an invalid search of whatever was tagged there (they left out the parameter).

If we don't have a tag for 'searchterm', we interpret that as an internal full-text search of the entire link database. That would include substring matches in:

cwbooth5 commented 1 year ago

It's easier just to have the front page search box be like a true search engine. It's less confusing.