Datasets:
term stringlengths 1 373 | termid int32 0 4.94M | df int64 1 33.2M | cf int64 1 160M |
|---|---|---|---|
0 | 0 | 727,193 | 1,343,919 |
00 | 1 | 169,598 | 276,122 |
000 | 2 | 997,719 | 1,494,697 |
0000 | 3 | 2,900 | 4,242 |
00000 | 4 | 382 | 469 |
000000 | 5 | 479 | 1,175 |
0000000 | 6 | 55 | 65 |
00000000 | 7 | 85 | 131 |
000000000 | 8 | 13 | 13 |
0000000000 | 9 | 10 | 15 |
00000000000 | 10 | 6 | 8 |
000000000000 | 11 | 5 | 5 |
0000000000000 | 12 | 4 | 5 |
000000000000000 | 13 | 7 | 8 |
0000000000000000 | 14 | 6 | 7 |
00000000000000000000000 | 15 | 3 | 3 |
000000000000000000000000000000 | 16 | 2 | 2 |
000000000000000000000000000000000 | 17 | 1 | 1 |
00000000000000000000000000000000000000 | 18 | 1 | 1 |
000000000000000000000000000000000001616 | 19 | 1 | 1 |
000000000000000000000000000000000052 | 20 | 1 | 1 |
000000000000000000000000000000910938356 | 21 | 1 | 1 |
0000000000000000000000000001 | 22 | 1 | 1 |
0000000000000000000000000009109 | 23 | 1 | 1 |
0000000000000000000000000009109382 | 24 | 2 | 2 |
00000000000000000000000000166 | 25 | 2 | 2 |
0000000000000000000004891 | 26 | 1 | 1 |
0000000000000000000042 | 27 | 1 | 1 |
00000000000000000001 | 28 | 1 | 1 |
0000000000000000001 | 29 | 3 | 3 |
000000000000000001 | 31 | 1 | 1 |
000000000000000013 | 31 | 1 | 1 |
0000000000000000928 | 32 | 1 | 1 |
00000000000000011 | 33 | 2 | 2 |
000000000000001 | 34 | 2 | 2 |
0000000000000010 | 35 | 1 | 1 |
0000000000000011 | 35 | 1 | 1 |
0000000000000012 | 36 | 1 | 1 |
00000000000001 | 37 | 2 | 2 |
0000000000000268 | 38 | 1 | 1 |
0000000000000426 | 38 | 1 | 1 |
000000000000046 | 39 | 1 | 1 |
00000000000005 | 40 | 1 | 1 |
0000000000001 | 41 | 2 | 2 |
00000000000011 | 42 | 3 | 5 |
0000000000001201 | 43 | 1 | 1 |
0000000000008 | 44 | 1 | 2 |
000000000001 | 45 | 10 | 10 |
0000000000018 | 46 | 1 | 1 |
0000000000018190 | 47 | 1 | 2 |
0000000000025 | 48 | 1 | 1 |
0000000000028 | 49 | 1 | 1 |
0000000000033357 | 50 | 1 | 1 |
0000000000045 | 51 | 2 | 2 |
000000000008591084 | 52 | 2 | 2 |
00000000001 | 53 | 1 | 2 |
000000000010 | 54 | 1 | 1 |
00000000003 | 55 | 3 | 5 |
000000000046 | 57 | 7 | 8 |
0000000000545 | 59 | 2 | 2 |
00000000006 | 60 | 1 | 1 |
0000000000667 | 61 | 5 | 6 |
0000000001 | 63 | 22 | 25 |
0000000001183 | 65 | 1 | 1 |
0000000002 | 66 | 2 | 2 |
000000000306 | 68 | 2 | 5 |
0000000006 | 69 | 1 | 1 |
0000000006230 | 70 | 1 | 1 |
00000000063 | 71 | 1 | 1 |
00000000070 | 72 | 1 | 1 |
000000000930201004 | 73 | 1 | 1 |
000000001 | 74 | 43 | 46 |
0000000010 | 75 | 2 | 3 |
000000001161 | 76 | 1 | 1 |
0000000012345 | 77 | 1 | 2 |
00000000125 | 78 | 2 | 2 |
00000000147641 | 80 | 1 | 2 |
0000000018 | 81 | 1 | 1 |
000000001946 | 82 | 1 | 1 |
000000001986 | 83 | 2 | 4 |
000000001988 | 83 | 2 | 4 |
000000002 | 84 | 5 | 6 |
000000002003 | 85 | 1 | 1 |
000000002009 | 85 | 1 | 1 |
000000002010 | 85 | 1 | 1 |
000000002012 | 86 | 1 | 1 |
000000002013 | 87 | 1 | 1 |
000000002016 | 87 | 1 | 1 |
000000002017 | 88 | 1 | 1 |
0000000022 | 89 | 1 | 3 |
0000000026 | 90 | 1 | 1 |
0000000029 | 91 | 1 | 1 |
000000003 | 92 | 1 | 1 |
000000003335640952 | 93 | 1 | 1 |
0000000034 | 94 | 1 | 1 |
0000000035 | 94 | 1 | 1 |
0000000039 | 94 | 1 | 1 |
000000004 | 95 | 1 | 1 |
000000004744 | 96 | 2 | 2 |
0000000048 | 97 | 1 | 1 |
Inverted Indexes for Information Retrieval Experiments
This dataset contains inverted indexes for four IR test collections: TREC CAsT v1, ClueWeb09-B, ClueWeb12-B, and GOV2.
Representation
The indexes follow the "OldDog" schema by Mühleisen et al., by representing the index with three tables (dict, docs and postings). The easiest way to use the data is to load it in a relational database (like DuckDB) and perform retrieval through SQL. See the "Quickstart" section below.
The indexes are stemmed using the Porter stemmer, and stopwords have not been removed.
Each table is stored using one or more Parquet files, with the following schemas:
dict
| Column | Type | Description |
|---|---|---|
term |
string | A stemmed term that appears in the collection |
termid |
int | A numeric identifier for each term, used in the postings table |
df |
int | The term's document frequency, i.e. the number of documents that contain this term |
cf |
int | The term's collection frequency, i.e. the total number of occurrences of this term |
docs
| Column | Type | Description |
|---|---|---|
docid |
int | A numeric identifier for each document, used in the postings table |
collection_docid |
string | The canonical identifier for each document (e.g. its TREC ID) |
length |
int | The document's length |
postings
| Column | Type | Description |
|---|---|---|
termid |
int | A term from the dictionary |
docid |
int | A document in which the term occurs |
tf |
int | The term frequency, i.e. the number of times the term appears in the document |
Quickstart
The easiest way to run IR experiments with this collection is to load the data into DuckDB and perform retrieval through SQL.
Loading the index
First, download the index data for a collection:
CREATE TABLE dict AS FROM 'hf://datasets/informagus/olddog-indexes/{collection}/dict.parquet';
CREATE TABLE docs AS SELECT * RENAME (collection_docid AS name) FROM 'hf://datasets/informagus/olddog-indexes/{collection}/docs.parquet';
CREATE TABLE postings AS FROM 'hf://datasets/informagus/olddog-indexes/{collection}/postings/*.parquet';
Then, compute the statistics for the stats table:
CREATE TABLE stats AS SELECT count(*) AS num_docs, avg(length) AS avgdl FROM docs;
Create the stopwords table with the stopword list you want to use. For instance, to use the stopword list also used by DuckDB's FTS extension, issue:
CREATE TABLE stopwords AS FROM read_csv('https://raw.githubusercontent.com/igorbrigadir/stopwords/refs/heads/master/en/smart.txt', header=0) t(sw);
The stopword list can also be empty:
CREATE TABLE stopwords(sw VARCHAR);
Retrieval
We use some SQL macros to simplify retrieval:
CREATE MACRO tokenize(query) AS (
string_split_regex(regexp_replace(lower(strip_accents(query::STRING)), '[0-9!@#$%^&*()_+={{}}\[\]:;<>,.?~\\/\|''"`-]+', ' ', 'g'), '\s+')
);
CREATE MACRO get_termids(query) AS TABLE (
WITH tokens AS (
SELECT unnest(tokenize(query)) AS token
),
stemmed AS (
SELECT stem(token, 'porter') AS term
FROM tokens
WHERE token NOT IN (FROM stopwords)
),
qtfs AS (
SELECT term, COUNT(*) AS qtf
FROM stemmed
GROUP BY term
)
SELECT termid, qtf
FROM qtfs
JOIN dict USING (term)
);
CREATE MACRO score_bm25(query, k1 := 0.9, b := 0.4) AS TABLE (
SELECT
docid,
first(name) AS name,
sum(
qtf *
log(
((SELECT num_docs FROM stats) - df + 0.5) / (df + 0.5)
) * (tf * (k1 + 1)) / (
tf + k1 * (1 - b + b * length / (SELECT avgdl FROM stats))
)
) AS score
FROM postings
JOIN dict USING (termid)
JOIN docs USING (docid)
JOIN get_termids(query) USING (termid)
GROUP BY docid
);
CREATE MACRO search_bm25(query, k := 1000, k1 := 0.9, b := 0.4) AS TABLE (
SELECT *, row_number() OVER (ORDER BY score DESC) AS rank
FROM score_bm25(query, k1 := k1, b := b)
ORDER BY score DESC
LIMIT k
);
A BM25 query can then simply be issued by using:
FROM search_bm25('this is a test query');
Selective Search
The indexes shared in this dataset have been used for experiments with selective search architectures. For more information on how run such experiments, refer to our code repositories on selective search for first-stage retrieval (where we use the ClueWeb and GOV2 indexes) and for session search (where we use the CAsT collection).
References
If you use our indexes for the ClueWeb or GOV2 collections, please cite the following paper:
@inproceedings{hendriksen_selective_2025,
title = {Selective Search as a First-Stage Retriever},
booktitle = {Experimental IR Meets Multilinguality, Multimodality, and Interaction: 16th International Conference of the {CLEF} Association, {CLEF} 2025, Madrid, Spain, September 9–12, 2025, Proceedings},
author = {Gijs Hendriksen and Djoerd Hiemstra and Arjen P. de Vries},
pages = {17--33},
year = 2025,
doi = {10.1007/978-3-032-04354-2_2}
}
If you use the TREC CAsT index, use the following reference:
@inproceedings{hendriksen_efficient_2025,
title = {Efficient Session Retrieval Using Topical Index Shards},
booktitle = {Advances in Information Retrieval: 47th European Conference on Information Retrieval, {ECIR} 2025, Lucca, Italy, April 6–10, 2025, Proceedings, Part {II}},
author = {Gijs Hendriksen and Djoerd Hiemstra and Arjen P. de Vries},
pages = {38--54},
year = 2025,
doi = {10.1007/978-3-031-88711-6_3}
}
- Downloads last month
- 47