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

Update _impact_searcher.py to use renamed java functions. #1619

Merged
merged 1 commit into from
Sep 5, 2023

Commits on Sep 5, 2023

  1. Update _impact_searcher.py to use renamed java functions.

    castorini/anserini@e475cc4 renames `document/documentByField` functions to `doc/doc_by_field`. This cl changes the function calls in _impact_searcher.py to match the new names to fix the following error:
    ````
    File ".../lib/python3.10/site-packages/pyserini/search/lucene/_impact_searcher.py", line 248, in doc
        lucene_document = self.object.document(docid)
    AttributeError: 'io.anserini.search.SimpleImpactSearcher' object has no attribute 'document'
    ```
    sahel-sh committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    1f18973 View commit details
    Browse the repository at this point in the history