webrecorder / browsertrix

Browsertrix is the hosted, high-fidelity, browser-based crawling service from Webrecorder designed to make web archiving easier and more accessible for all!
https://browsertrix.com
GNU Affero General Public License v3.0
145 stars 29 forks source link

[Feature]: Improve UX of prefix search or switch to fulltext search #1826

Open osintalex opened 1 month ago

osintalex commented 1 month ago

What change would you like to see?

I would like to know I'm using a prefix search rather than full text search or just use full text search.

Context

I noticed this when searching for a collection to auto add a crawl too. Suppose my collection is called "my cool collection". If I type "cool" into the search box, I expect to see my collection come up.

I don't see it come up since I assume the search is prefixed based as is the case here. I would rather it was full text based - i.e. it just did a case insensitive search for all collections with the word cool in them.

If for some reason it needs to stay prefix based, I would rather that was explicit in the UI - i.e. some placeholder text said "Search for collections beginning with...".

Happy to work on this if there is support.

Shrinks99 commented 1 month ago

Our search and filtering UX across the board is ripe for upgrades, perhaps the collection add search would be a good place to start! Unfortunately we're focused on some other things internally right now... If this is an area you'd be willing to contribute to I say go for it! I think the only reason it is prefix based is that was the quickest way to get this feature implemented initially. If it starts with what the user is typing, I would also give that suggestion a higher ranking.

As for "full text", I assume you're only referring to title text here and not description text?

osintalex commented 1 month ago

Cool! Will try and take a look soon.

Re full text, I mean just title text. By full text I mostly meant a full match search, like if I give a query 'hello' this searches for any occurrence of the string hello, i.e. not just prefix and matches substrings of 'hello' in longer words like 'helloworld'.