Skip to content

Commit bac34ee

Browse files
committed
bumping query limits
1 parent dcca6f3 commit bac34ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Distribution/Server/Features/Search/PkgSearch.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ defaultSearchRankParameters =
7979
paramFieldWeights,
8080
paramFeatureWeights,
8181
paramFeatureFunctions,
82-
paramResultsetSoftLimit = 200,
83-
paramResultsetHardLimit = 400
82+
paramResultsetSoftLimit = 400,
83+
paramResultsetHardLimit = 800
8484
}
8585
where
8686
paramK1 :: Float
@@ -146,15 +146,15 @@ main = do
146146
print ("search engine invariant", invariant searchengine)
147147
148148
-- print [ avgFieldLength ctx s | s <- [minBound..maxBound] ]
149-
149+
150150
-- print $ take 100 $ sortBy (flip compare) $ map Set.size $ Map.elems (termMap searchindex)
151151
-- T.putStr $ T.unlines $ Map.keys (termMap searchindex)
152152
-- let SearchEngine{searchIndex=SearchIndex{termMap, termIdMap, docKeyMap, docIdMap}} = searchengine
153153
-- print (Map.size termMap, IntMap.size termIdMap, Map.size docKeyMap, IntMap.size docIdMap)
154154
155155
let loop = do
156156
putStr "search term> "
157-
hFlush stdout
157+
hFlush stdout
158158
t <- getLine
159159
unless (null t) $ do
160160
let terms = stems English

0 commit comments

Comments
 (0)