purescript / pursuit

Website for hosting and searching PureScript API documentation
https://pursuit.purescript.org/
Other
169 stars 47 forks source link

Rank search results #7

Closed paf31 closed 9 years ago

paf31 commented 10 years ago

Searching for flip doesn't even show flip because there are so many instances for the Flip type constructor and we only pick the top 20. We should sort the results based on relevance.

alexbiehl commented 9 years ago

We faced the same issue in Hayoo. Take a look at https://github.com/hunt-framework/hayoo/blob/master/hayooIndexer/src/Hayoo/PackageRank.hs

It ranks a package by how many packages depend on it (transitively). You can use the ranks to boost types and functions. It is self-contained and could serve as a starting point for pursuit.

hdgarrood commented 9 years ago

Oh, awesome - thank you!

hdgarrood commented 9 years ago

Resolved now that we switched to using Hoogle for searches.