nexus-devs / NexusHub

📈 Warframe and WoW Classic Economy Analytics
https://nexushub.co
Other
92 stars 10 forks source link

Weighted quick search ordering #175

Open Kaptard opened 5 years ago

Kaptard commented 5 years ago

I'm submitting a...


Current behavior

Returns search results by closest match.


Expected behavior

Should return most popular items first.


Minimal reproduction of the problem

Seems trivial. People want the important stuff first, especially in a quick search, where they're not likely to look for obscure items.


Environment

Browser:

For development issues:

Additional Description

I'm suggesting a system where the last viewed item always gets pushed to the top. On average, that should result in what people want, and is probably the most dynamic option.

Nakroma commented 4 years ago

How do you imagine the dynamic system in the additional description? Having a big redis list with the top ~200 items inside?
My first thought for implementing that would be a simple searchRank inside the item database