tldr-pages / tldr-python-client

:snake: Python command-line client for tldr pages 📚
https://pypi.org/project/tldr/
MIT License
599 stars 95 forks source link

Weigh search results according to where the keywords are found #182

Closed gotlougit closed 2 years ago

gotlougit commented 2 years ago

This is help improve search results. Right now if word is found in the title, it gets 5 points, if in the description it gets 3 points and if in the command description, it gets 1 point.

gotlougit commented 2 years ago

By giving even more weightage according to where the word was found, and also giving every match 1 point regardless, I was able to solve the issues that were cropping up with the search in previous commits.

gotlougit commented 2 years ago

Hello, I noticed you approved the PR but it wasn't merged, I'm not sure of any other steps to be taken right now but just adding a comment here about it.