LuceneSearcher + multiprocessing problem #1766
Replies: 2 comments 3 replies
-
Instead of trying to parallelize querying in Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hi! First, thanks for answering Actually, this solution would not work for our use case. Using multithreading is a thing in the framework we were using, and we had no way to change it. Anyway, we solved the problem by reworking our whole approach and we don't have that problem anymore. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm using LuceneSearcher in a multiprocessing setting, but it is not working as I expected. I crafted the following script to showcase the problem that I have:
When running this, it gives a bunch of errors like this:
jnius.JavaException: JVM exception occurred: org/apache/lucene/store/Lock java.lang.NoClassDefFoundError
And every time that I run it, the class name changes without any apparent pattern. I don't know if I'm misunderstanding something, and this is normal behaviour, or the problem is on pyserini's side.
thanks
Beta Was this translation helpful? Give feedback.
All reactions