hunt-framework / hayoo

Hackage search engine
56 stars 9 forks source link

ranking for query "map" #18

Closed sebastian-philipp closed 10 years ago

sebastian-philipp commented 10 years ago

"just searcing for 'map' doesn't show the map function from the Prelude?"

http://hayoo2.fh-wedel.de/?query=map

sebastian-philipp commented 10 years ago

The first result has a score of 5.175, but Prelude.map just has a score of 3

$ curl 'http://localhost:3000/search/map/0/70' | jq '.["msg"]["result"][]["score"]' | nl   
     1  5.175
     2  3.825
     3  3.4500003
     4  3.3750002
     5  3.375
     6  3.3
     7  3.3
     8  3.225
...snip...
    52  3.225
    53  3.15
...snip...
    57  3.15
    58  3.075
 ...snip...
    63  3.075
    64  3
...snip...
UweSchmidt commented 10 years ago

Looks like the document weight for the prelude functions is too small. Perhaps we could boost this manually (or by a hunt query).

sebastian-philipp commented 10 years ago

fixed