Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
e2136de
Add parameter specifying the number of runs per query in `queries.cpp`
gustingonzalez Nov 17, 2025
2d02ff4
Rename `num_reruns` by `corrective_rerun_count` in `queries.cpp`
gustingonzalez Nov 17, 2025
6df7c3c
Report individual run times instead of mean in `--extract` mode
gustingonzalez Nov 18, 2025
28bb5b7
Add `--safe` flag support in `--extract` mode
gustingonzalez Nov 18, 2025
9137d12
Modify `--extract` mode to measure each query independently per run
gustingonzalez Nov 18, 2025
972f0d6
Modify `--extract` mode to print query stats without aggregation
gustingonzalez Nov 18, 2025
b1673f3
Modify `--extract` mode to print query stats aggregating by min
gustingonzalez Nov 18, 2025
78baedf
Modify `--extract` mode to print query stats aggregating by mean
gustingonzalez Nov 18, 2025
1d4a48b
Modify `--extract` mode to print query stats aggregating by median
gustingonzalez Nov 18, 2025
46ac265
Modify `--extract` mode to print query stats aggregating by max
gustingonzalez Nov 18, 2025
67a45ea
Improve variable naming
gustingonzalez Nov 18, 2025
b60c5aa
Extend `stats_line()` to write in a configurable output
gustingonzalez Nov 18, 2025
3c332b7
Use `std::cerr` to print query stats
gustingonzalez Nov 18, 2025
7cf768d
Implement aggregation adding the `--aggregate-by` option
gustingonzalez Nov 19, 2025
042f4c2
Add `--summary-only` to just print summary, ommiting per-query results
gustingonzalez Nov 19, 2025
dad7d29
Remove `--extract` option and `op_perftest()` function
gustingonzalez Nov 19, 2025
8813f94
Modify the default number of runs from 2 to 3
gustingonzalez Nov 19, 2025
d3c85af
Format `queries.cpp`
gustingonzalez Nov 19, 2025
0b01c9b
Remove unnecessary `map` import
gustingonzalez Nov 19, 2025
3832bdd
Format `queries.cpp`
gustingonzalez Nov 19, 2025
decb5f8
Remove `--aggregate-by` option, printing all by default
gustingonzalez Dec 26, 2025
852c619
Remove `--summary-only` option
gustingonzalez Dec 26, 2025
5077c67
Add `--output` option, for query timing data
gustingonzalez Dec 26, 2025
a709b67
Improve JSON output and logs
gustingonzalez Dec 26, 2025
da11b00
Use `std::logic_error` instead of just `return` in `to_string`
gustingonzalez Dec 26, 2025
b866216
Add support for specifying multiple output files (one per specified q…
gustingonzalez Dec 26, 2025
9ef2849
Add clarification for query type (algorithm) parameter
gustingonzalez Dec 26, 2025
5c0fceb
Modify query timing output to use a single file with 'algorithm' column
gustingonzalez Dec 27, 2025
5b14aec
Update JSON output and use `nlohmann/json.hpp` library
gustingonzalez Dec 27, 2025
4a58455
Format `queries.cpp`
gustingonzalez Dec 27, 2025
5c702fd
Add license comment
gustingonzalez Jan 2, 2026
c347fb3
Reorder `<nlohmann/json.hpp>` include directive
gustingonzalez Jan 2, 2026
2722a47
Refactor query loop using `enumerate`
gustingonzalez Jan 2, 2026
a9028dc
Refactor query times structs
gustingonzalez Jan 5, 2026
aa0bced
Change query timing output to 'long' format
gustingonzalez Jan 5, 2026
17780d6
Refactor query timing logic into structs
gustingonzalez Jan 5, 2026
0ff184a
Move `to_string` in `AggregationType`
gustingonzalez Jan 5, 2026
9983722
Refactor output file handling
gustingonzalez Jan 6, 2026
c5825f4
Format `queries.cpp` and `app.cpp`
gustingonzalez Jan 6, 2026
f357034
Make `AggregationType` constructor explicit
gustingonzalez Jan 6, 2026
40a3f10
Modify algorithm validation to perform it before execution
gustingonzalez Jan 7, 2026
a5d33da
Add license comment in `app.cpp` and `app.hpp`
gustingonzalez Jan 7, 2026
a41dc7d
Modify 'boost' includes to use quoted style in `app.cpp`
gustingonzalez Jan 8, 2026
3be83a9
Update `querying.md`
gustingonzalez Jan 8, 2026
7a2ae18
Format `querying.md`
gustingonzalez Jan 8, 2026
7e4c58f
Remove raw pointer for output file in `queries.cpp`
gustingonzalez Jan 15, 2026
5c6b44d
Refactor median computation
gustingonzalez Jan 15, 2026
ecae3d4
Refactor aggregation for type `None`
gustingonzalez Jan 15, 2026
b6fd578
Move sorting from `aggregate` to `summarize`
gustingonzalez Jan 15, 2026
a792f2f
Refactor `aggregate` by splitting logic
gustingonzalez Jan 15, 2026
cee923e
Modify algorithm parsing to use multiple `-a` options instead of colo…
gustingonzalez Jan 16, 2026
9b24e4f
Add validation for algorithms requiring WAND data
gustingonzalez Jan 16, 2026
200397b
Modify `evaluate_queries` to allow only one algorithm at a time
gustingonzalez Jan 16, 2026
ab79582
Update `queries.md` and `querying.md`
gustingonzalez Jan 22, 2026
8f0dff6
Regenerate documentation
gustingonzalez Jan 27, 2026
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
109 changes: 53 additions & 56 deletions docs/book/404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE HTML>
<html lang="en" class="light sidebar-visible" dir="ltr">
<html lang="en" class="light" dir="ltr">
<head>
<!-- Book generated using mdBook -->
<meta charset="UTF-8">
Expand All @@ -8,7 +8,7 @@


<!-- Custom HTML head -->

<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff">
Expand All @@ -25,41 +25,26 @@
<link rel="stylesheet" href="fonts/fonts.css">

<!-- Highlight.js Stylesheets -->
<link rel="stylesheet" id="highlight-css" href="highlight.css">
<link rel="stylesheet" id="tomorrow-night-css" href="tomorrow-night.css">
<link rel="stylesheet" id="ayu-highlight-css" href="ayu-highlight.css">
<link rel="stylesheet" href="highlight.css">
<link rel="stylesheet" href="tomorrow-night.css">
<link rel="stylesheet" href="ayu-highlight.css">

<!-- Custom theme stylesheets -->


<!-- Provide site root and default themes to javascript -->
<script>
const path_to_root = "";
const default_light_theme = "light";
const default_dark_theme = "navy";
window.path_to_searchindex_js = "searchindex.js";
</script>
<!-- Start loading toc.js asap -->
<script src="toc.js"></script>
</head>
<body>
<div id="mdbook-help-container">
<div id="mdbook-help-popup">
<h2 class="mdbook-help-title">Keyboard shortcuts</h2>
<div>
<p>Press <kbd>←</kbd> or <kbd>→</kbd> to navigate between chapters</p>
<p>Press <kbd>S</kbd> or <kbd>/</kbd> to search in the book</p>
<p>Press <kbd>?</kbd> to show this help</p>
<p>Press <kbd>Esc</kbd> to hide this help</p>
</div>
</div>
</div>
<body class="sidebar-visible no-js">
<div id="body-container">
<!-- Provide site root to javascript -->
<script>
var path_to_root = "";
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light";
</script>

<!-- Work around some values being stored in localStorage wrapped in quotes -->
<script>
try {
let theme = localStorage.getItem('mdbook-theme');
let sidebar = localStorage.getItem('mdbook-sidebar');
var theme = localStorage.getItem('mdbook-theme');
var sidebar = localStorage.getItem('mdbook-sidebar');

if (theme.startsWith('"') && theme.endsWith('"')) {
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
Expand All @@ -73,51 +58,70 @@ <h2 class="mdbook-help-title">Keyboard shortcuts</h2>

<!-- Set the theme before any content is loaded, prevents flash -->
<script>
const default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? default_dark_theme : default_light_theme;
let theme;
var theme;
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
const html = document.documentElement;
var html = document.querySelector('html');
html.classList.remove('light')
html.classList.add(theme);
html.classList.add("js");
var body = document.querySelector('body');
body.classList.remove('no-js')
body.classList.add('js');
</script>

<input type="checkbox" id="sidebar-toggle-anchor" class="hidden">

<!-- Hide / unhide sidebar before it is displayed -->
<script>
let sidebar = null;
const sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
var body = document.querySelector('body');
var sidebar = null;
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
if (document.body.clientWidth >= 1080) {
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
sidebar = sidebar || 'visible';
} else {
sidebar = 'hidden';
sidebar_toggle.checked = false;
}
if (sidebar === 'visible') {
sidebar_toggle.checked = true;
} else {
html.classList.remove('sidebar-visible');
}
sidebar_toggle.checked = sidebar === 'visible';
body.classList.remove('sidebar-visible');
body.classList.add("sidebar-" + sidebar);
</script>

<nav id="sidebar" class="sidebar" aria-label="Table of contents">
<!-- populated by js -->
<mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox>
<noscript>
<iframe class="sidebar-iframe-outer" src="toc.html"></iframe>
</noscript>
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item expanded affix "><a href="introduction.html">Introduction</a></li><li class="chapter-item expanded affix "><li class="part-title">User Guide</li><li class="chapter-item expanded "><a href="guide/requirements.html"><strong aria-hidden="true">1.</strong> Requirements</a></li><li class="chapter-item expanded "><a href="guide/installation.html"><strong aria-hidden="true">2.</strong> Installation</a></li><li class="chapter-item expanded "><a href="guide/indexing-pipeline.html"><strong aria-hidden="true">3.</strong> Indexing Pipeline</a></li><li class="chapter-item expanded "><a href="guide/parsing.html"><strong aria-hidden="true">4.</strong> Parsing</a></li><li class="chapter-item expanded "><a href="guide/inverting.html"><strong aria-hidden="true">5.</strong> Inverting</a></li><li class="chapter-item expanded "><a href="guide/compressing.html"><strong aria-hidden="true">6.</strong> Compressing</a></li><li class="chapter-item expanded "><a href="guide/wand_data.html"><strong aria-hidden="true">7.</strong> "WAND" Data</a></li><li class="chapter-item expanded "><a href="guide/querying.html"><strong aria-hidden="true">8.</strong> Querying</a></li><li class="chapter-item expanded "><a href="guide/algorithms.html"><strong aria-hidden="true">9.</strong> Retrieval Algorithms</a></li><li class="chapter-item expanded "><a href="guide/reordering.html"><strong aria-hidden="true">10.</strong> Document Reordering</a></li><li class="chapter-item expanded "><a href="guide/sharding.html"><strong aria-hidden="true">11.</strong> Sharding</a></li><li class="chapter-item expanded "><a href="guide/threshold-estimation.html"><strong aria-hidden="true">12.</strong> Threshold Estimation</a></li><li class="chapter-item expanded affix "><li class="part-title">Tutorials</li><li class="chapter-item expanded "><a href="tutorial/robust04.html"><strong aria-hidden="true">13.</strong> Regression test for Robust04</a></li><li class="chapter-item expanded affix "><li class="part-title">CLI Reference</li><li class="chapter-item expanded "><a href="cli/compress_inverted_index.html"><strong aria-hidden="true">14.</strong> compress_inverted_index</a></li><li class="chapter-item expanded "><a href="cli/compute_intersection.html"><strong aria-hidden="true">15.</strong> compute_intersection</a></li><li class="chapter-item expanded "><a href="cli/count-postings.html"><strong aria-hidden="true">16.</strong> count-postings</a></li><li class="chapter-item expanded "><a href="cli/create_wand_data.html"><strong aria-hidden="true">17.</strong> create_wand_data</a></li><li class="chapter-item expanded "><a href="cli/evaluate_queries.html"><strong aria-hidden="true">18.</strong> evaluate_queries</a></li><li class="chapter-item expanded "><a href="cli/extract-maxscores.html"><strong aria-hidden="true">19.</strong> extract-maxscores</a></li><li class="chapter-item expanded "><a href="cli/extract_topics.html"><strong aria-hidden="true">20.</strong> extract_topics</a></li><li class="chapter-item expanded "><a href="cli/invert.html"><strong aria-hidden="true">21.</strong> invert</a></li><li class="chapter-item expanded "><a href="cli/kth_threshold.html"><strong aria-hidden="true">22.</strong> kth_threshold</a></li><li class="chapter-item expanded "><a href="cli/lexicon.html"><strong aria-hidden="true">23.</strong> lexicon</a></li><li class="chapter-item expanded "><a href="cli/map_queries.html"><strong aria-hidden="true">24.</strong> map_queries</a></li><li class="chapter-item expanded "><a href="cli/parse_collection.html"><strong aria-hidden="true">25.</strong> parse_collection</a></li><li class="chapter-item expanded "><a href="cli/partition_fwd_index.html"><strong aria-hidden="true">26.</strong> partition_fwd_index</a></li><li class="chapter-item expanded "><a href="cli/queries.html"><strong aria-hidden="true">27.</strong> queries</a></li><li class="chapter-item expanded "><a href="cli/read_collection.html"><strong aria-hidden="true">28.</strong> read_collection</a></li><li class="chapter-item expanded "><a href="cli/reorder-docids.html"><strong aria-hidden="true">29.</strong> reorder-docids</a></li><li class="chapter-item expanded "><a href="cli/sample_inverted_index.html"><strong aria-hidden="true">30.</strong> sample_inverted_index</a></li><li class="chapter-item expanded "><a href="cli/selective_queries.html"><strong aria-hidden="true">31.</strong> selective_queries</a></li><li class="chapter-item expanded "><a href="cli/shards.html"><strong aria-hidden="true">32.</strong> shards</a></li><li class="chapter-item expanded "><a href="cli/stem_queries.html"><strong aria-hidden="true">33.</strong> stem_queries</a></li><li class="chapter-item expanded "><a href="cli/taily-stats.html"><strong aria-hidden="true">34.</strong> taily-stats</a></li><li class="chapter-item expanded "><a href="cli/taily-thresholds.html"><strong aria-hidden="true">35.</strong> taily-thresholds</a></li><li class="chapter-item expanded "><a href="cli/thresholds.html"><strong aria-hidden="true">36.</strong> thresholds</a></li><li class="chapter-item expanded affix "><li class="part-title">Specifications</li><li class="chapter-item expanded "><a href="specs/lookup-table.html"><strong aria-hidden="true">37.</strong> Lookup Table</a></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
<div class="sidebar-resize-indicator"></div>
</div>
</nav>

<!-- Track and set sidebar scroll position -->
<script>
var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox');
sidebarScrollbox.addEventListener('click', function(e) {
if (e.target.tagName === 'A') {
sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop);
}
}, { passive: true });
var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
sessionStorage.removeItem('sidebar-scroll');
if (sidebarScrollTop) {
// preserve sidebar scroll position when navigating via links within sidebar
sidebarScrollbox.scrollTop = sidebarScrollTop;
} else {
// scroll sidebar to current active section when navigating via "next/previous chapter" buttons
var activeSection = document.querySelector('#sidebar .active');
if (activeSection) {
activeSection.scrollIntoView({ block: 'center' });
}
}
</script>

<div id="page-wrapper" class="page-wrapper">

<div class="page">
<div id="menu-bar-hover-placeholder"></div>
<div id="menu-bar-hover-placeholder"></div>
<div id="menu-bar" class="menu-bar sticky">
<div class="left-buttons">
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
Expand All @@ -127,14 +131,13 @@ <h2 class="mdbook-help-title">Keyboard shortcuts</h2>
<i class="fa fa-paint-brush"></i>
</button>
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
<li role="none"><button role="menuitem" class="theme" id="default_theme">Auto</button></li>
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
</ul>
<button id="search-toggle" class="icon-button" type="button" title="Search (`/`)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="/ s" aria-controls="searchbar">
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">
<i class="fa fa-search"></i>
</button>
</div>
Expand All @@ -151,12 +154,7 @@ <h1 class="menu-title">PISA Guide</h1>

<div id="search-wrapper" class="hidden">
<form id="searchbar-outer" class="searchbar-outer">
<div class="search-wrapper">
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
<div class="spinner-wrapper">
<i class="fa fa-spinner fa-spin"></i>
</div>
</div>
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
</form>
<div id="searchresults-outer" class="searchresults-outer hidden">
<div id="searchresults-header" class="searchresults-header"></div>
Expand Down Expand Up @@ -215,7 +213,6 @@ <h1 id="document-not-found-404"><a class="header" href="#document-not-found-404"
<!-- Custom JS scripts -->



</div>
</body>
</html>
Loading