Search fields in the game are bad

Heya!

So, the various search fields in this game are poorly coded.

Examples of these fields: the search field in your inventory, your stash, and the perk search field in the Trading Post filter.

What’s bad about them? Any words separated by space will be interpreted as ‘or’. This wouldn’t be a problem if no item/perk in the game had any spaces in them. But they do.

Example of undesired outcomes:
If you want to find Sliver of Adamant in your stash, instead of getting one result when searching for it, you can get maybe 100, because it’s searching for any item with ‘Sliver’, ‘Of’ or ‘Adamant’ in it. Just search for ‘Adamant’, you say? That’ll generate multiple hits as well.

If you’re searching for the perk Keen Speed, you get 9 results instead of one.

I think very rarely, if ever, would you want your search fields to function like this. I certainly don’t want it.

Conclusion: make the search fields only match with the full string inputted. I imagine these are all using RegEx, and so it shouldn’t be a difficult problem to solve.

Just code it with a little more thought, thanks!

Ernst of Ashby

3 Likes

Adding information into a search field should narrow the search, not widen it.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.