You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.
I noticed #66 and #93. Please consider fixing this by allowing partial import path searches and then just sort the results and show the most relevant ones at the top (i.e. the ones where the query matches the project name or user name).
import path without the domain (e.g. "FoundationDB/fdb-go/fdb")
the domain with a trailing slash (e.g. "github.com/")
Searching would then work like this:
Given a query %query%, first check if it matches the domain
If it matches the domain, check if query matches import path without the domain. If yes, add it to results
If it doesn't matches the domain, check if query matches complete import path. If yes, add it to results
Sample SQL query:
SELECT*FROM table
WHERE (domain LIKE %query%
AND partial_path LIKE %query%)
OR (domain NOT LIKE %query%
AND complete_path LIKE %query%)
Given the results, sorting would then do the rest and prioritise the results based on where they match and whatever else.
Of course, this would have to be optimised in terms of the database/index (e.g. the domains should be stored in a separate table and the query modified so that the domain is not checked for each entry).
The current version of Dash supports Go Docsets from godoc.org. @Kapeli can this ticket be closed? Or is it something we want godoc.org to support on the website too?
I noticed #66 and #93. Please consider fixing this by allowing partial import path searches and then just sort the results and show the most relevant ones at the top (i.e. the ones where the query matches the project name or user name).
This is somewhat related to #151.
The text was updated successfully, but these errors were encountered: