-
Notifications
You must be signed in to change notification settings - Fork 395
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
Add ability to append to existing index #1451
Conversation
Hi! Is there no need to use that variable append=True? This way, append is False. My doubt is that if the index is being re-built or not. When I tried with append=True parameter, I got an error: File "/usr/local/lib/python3.10/dist-packages/pyserini/index/lucene/_indexer.py", line 66, in add_doc_raw |
When I followed your example, without passing Append, the number of terms decreased: root@6c6cd6ba0676:/app# python3 main.py |
Your first error stems from the fact that you're putting different things into the index - "cannot change field "contents" from index options=DOCS_AND_FREQS_AND_POSITIONS to inconsistent index options=DOCS_AND_FREQS"
Can you show us the entire execution trace? |
@lintool The add method you used looks like it is no longer supported : I tried to set the args parameter on the LuceneIndexer to Would you please suggest a solution? Thank in advance! |
Python bindings for castorini/anserini#2062
Requested feature: #1443
This now works:
@theyorubayesian btw,
-threads
is optional now, with a default.