Skip to content

bumping query limits #632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Distribution/Server/Features/Search/PkgSearch.hs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ defaultSearchRankParameters =
paramFieldWeights,
paramFeatureWeights,
paramFeatureFunctions,
paramResultsetSoftLimit = 200,
paramResultsetHardLimit = 400
paramResultsetSoftLimit = 400,
paramResultsetHardLimit = 800
}
where
paramK1 :: Float
Expand Down Expand Up @@ -146,15 +146,15 @@ main = do
print ("search engine invariant", invariant searchengine)

-- print [ avgFieldLength ctx s | s <- [minBound..maxBound] ]

-- print $ take 100 $ sortBy (flip compare) $ map Set.size $ Map.elems (termMap searchindex)
-- T.putStr $ T.unlines $ Map.keys (termMap searchindex)
-- let SearchEngine{searchIndex=SearchIndex{termMap, termIdMap, docKeyMap, docIdMap}} = searchengine
-- print (Map.size termMap, IntMap.size termIdMap, Map.size docKeyMap, IntMap.size docIdMap)

let loop = do
putStr "search term> "
hFlush stdout
hFlush stdout
t <- getLine
unless (null t) $ do
let terms = stems English
Expand Down