Skip to content
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

Upgrade to Lucene 9.8.0 #2226

Merged
merged 4 commits into from
Oct 24, 2023
Merged

Upgrade to Lucene 9.8.0 #2226

merged 4 commits into from
Oct 24, 2023

Conversation

tteofili
Copy link
Collaborator

Upgrade Anserini to use Apache Lucene 9.8.0.

@tteofili tteofili marked this pull request as ready for review October 24, 2023 09:21
@tteofili tteofili linked an issue Oct 24, 2023 that may be closed by this pull request
@lintool
Copy link
Member

lintool commented Oct 24, 2023

Let's go ahead and merge! (And I'll run all our regressions from scratch anyway...)

@tteofili tteofili merged commit 3d95180 into castorini:master Oct 24, 2023
1 check passed
@@ -78,7 +78,7 @@ public static void main(String[] args) throws Exception {

out.println("internal_docid\texternal_docid\tdoc_length\tunique_term_count\tlossy_doc_length\tlossy_unique_term_count");
for (int i = 0; i < numDocs; i++) {
Terms terms = reader.getTermVector(i, Constants.CONTENTS);
Terms terms = reader.termVectors().get(i, Constants.CONTENTS);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally you'd fetch the reader.termVectors() object only once, before the loop, and then reuse it in the loop. (And similarly to other places that rely on stored fields and term vectors.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, good point!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will have another PR fix that in different places (and perhaps storedFields() too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Lucene 9.8.0
3 participants