speced / respec-web-services

ReSpec's website and RESTful APIs
https://respec.org/
16 stars 11 forks source link

Weighted trie #209

Open marcoscaceres opened 3 years ago

marcoscaceres commented 3 years ago

We should look at using a weighted trie for the searches based on most commonly searched for...

As a bonus, we could show the most popular searches :) .... or the "term of the day" of the day 😹

marcoscaceres commented 3 years ago

A more serious use case... I was trying to find all instances of "* task source", but the drop down was kinda unhelpful... there should be a way to just say, "show me everything that matches this! I don't care about exact match."

sidvishnoi commented 2 years ago

I was trying to find all instances of "* task source", but the drop down was kinda unhelpful... there should be a way to just say, "show me everything that matches this! I don't care about exact match."

Have you tried using https://respec.org/xref/filter/? It's meant for such advanced usage. Running following query will get you what you need:

term.endsWith(" task source")
marcoscaceres commented 2 years ago

That’s overkill. I just want to look up stuff to see the type quickly(ie, be in and out in 5 seconds), not write queries.