massif-press / compcon

Digital character creator and player sheets for the LANCER TTRPG
https://compcon.app
GNU General Public License v3.0
279 stars 98 forks source link

[FEATURE] improve search #1086

Open Ash-oi opened 3 years ago

Ash-oi commented 3 years ago

Is your feature request related to a problem? Please describe. Search is based on title alone and is a direct string match meaning that searching "GMS" doesn't return any of the GMS weapons/frames and the like.

Describe the solution you'd like Implement simple fuzzy search using something like fuse.js with weighting on title and then description, as well as include more data from more sources than currently. would be nice if users could search rules and whatnot.

Describe alternatives you've considered the fuzzy search is just a nice to have, including more data in the results would be a good first step

Additional context I've written a PR for this but I've only started looking at the project today so I have no idea if it fits with the vision or whatever.

Harlekin13 commented 3 years ago

searching for tags at least would be great.

Ash-oi commented 3 years ago

I think a big problem with implementing this is that not all the compendium stuff is the same type, we'd probably need to unify everything into one type CompendiumEntry or something.

ksteeves commented 3 years ago

I think this issue should be of the highest priority. It would make running and playing lancer a lot more streamlined. It's really disappointing that the search for "overwatch" returns literally zero results in the compendium.

Shoes01 commented 3 years ago

As a new GM playing with new players, improving the search function would be very helpful.