patch applied (hackage-server): "Integrate new package search feature" and 2 others
devnull at community.haskell.org
devnull at community.haskell.org
Fri Jul 5 21:59:46 CEST 2013
Fri Jul 5 20:10:24 BST 2013 Duncan Coutts <duncan at well-typed.com>
* Integrate new package search feature
Ignore-this: 8948d663270a60cb7a032dd114b25c41
Old search did just substring search in the package name and the
description and did no ranking of results.
New search is keyword based (rather than substring). It looks in the
package name (and components thereof), package sysnopsis and
description. It uses a proper search ranking function (BM25F) and the
results seem reasonable but needs fine tuning. Could later be extended
to cover module names and to include package popularity.
M ./Distribution/Server/Features.hs -4 +4
M ./Distribution/Server/Features/Html.hs -40 +72
R ./Distribution/Server/Features/NameSearch.hs
A ./Distribution/Server/Features/Search/
A ./Distribution/Server/Features/Search.hs
A ./Distribution/Server/Features/Search/BM25F.hs
A ./Distribution/Server/Features/Search/DocIdSet.hs
A ./Distribution/Server/Features/Search/DocTermIds.hs
A ./Distribution/Server/Features/Search/ExtractDescriptionTerms.hs
A ./Distribution/Server/Features/Search/ExtractNameTerms.hs
A ./Distribution/Server/Features/Search/PkgSearch.hs
A ./Distribution/Server/Features/Search/SearchEngine.hs
A ./Distribution/Server/Features/Search/SearchIndex.hs
A ./Distribution/Server/Features/Search/TermBag.hs
M ./Distribution/Server/Framework/MemSize.hs -4 +20
A ./datafiles/templates/Search/
A ./datafiles/templates/Search/opensearch.xml.st
M ./datafiles/templates/hackageCssTheme.st +1
M ./datafiles/templates/index.html.st -2 +2
M ./hackage-server.cabal -6 +9
Fri Jul 5 20:22:59 BST 2013 Duncan Coutts <duncan at well-typed.com>
* Allow latest version of safecopy
Ignore-this: 9e9c52113f223ce8b04de1efa2f323f8
M ./hackage-server.cabal -1 +1
Fri Jul 5 20:59:01 BST 2013 Duncan Coutts <duncan at well-typed.com>
* Experiment with putting the search in the main navigation bar
Ignore-this: 47f192287a2b3f6b3e5dbde79ce9dca5
M ./Distribution/Server/Pages/Template.hs -16 +17
M ./datafiles/static/hackage.css -1 +25
M ./datafiles/templates/hackagePageHeader.st -6 +7
More information about the cabal-devel
mailing list