amoeba / treestats.net

Player tracking for Asheron's Call
https://treestats.net
MIT License
8 stars 3 forks source link

Let users search by things other than name #211

Open amoeba opened 2 years ago

amoeba commented 2 years ago

Harli mentioned wanting to be able to filter characters by level. I think it'd be easy enough to handle a special syntax like field:value (e.g., level:275) in the general search box.

amoeba commented 2 years ago

First version of this is in and it works okay. It doesn't support ranges for numeric fields like level, so you can't do level>200 or something, which'd be cool.

amoeba commented 2 years ago

@jkisor wrote up an alternative implementation that does things a bit different at https://github.com/amoeba/treestats.net/pull/212/commits/5b24febf3bef601e1314a05b49db3da44bee7a2f. I'll plan to have a look when/if I revisit search in the future.