-
Notifications
You must be signed in to change notification settings - Fork 82
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
Using LeafReader only for first segment #171
Comments
I don't use MultiDocumentBatch but did you try adding a writer.commit() after writer.forceMerge(1)? |
You are right. Now it works. So it is bug in LUWAK-1.5 that I use. |
This is interesting, because as I understand it, |
I can't publish my code, but I'll try to explain how I use LUWAK. I wrapped LUWAK into SOLR UpdateProcessor:
So when does the bug happen? When I build LUWAK DocumentBatch. I debugged this code and saw that DirectoryReader.open(directory).leaves().get(0).reader() got only 163 documents from batch and another docs of batch were in DirectoryReader.open(directory).leaves().get(1).reader(), i.e. writer.force(1) didn't merge segments. I don't know why you can't reproduce this in a test - maybe the issue is size of document? I have 3000 docs in batch, 5-15 KB each doc. P. S. The solution of mjustice3 is good for me. |
Hi,
I try to use LUWAK like UpdateProcessor in SOLR. I noticed that LUWAK matches X first documents only (for example, from DocumentBatch with 3000 docs it matched 163 docs only). I debugged LUWAK code, and noticed that the problem in the next code:
I changed this code to:
LeafReader reader = SlowCompositeReaderWrapper.wrap(DirectoryReader.open(directory))
and it works for all docs in batch (but very slowly)
Was someone faced with this problem? Maybe do you have another solution for this problem?
The text was updated successfully, but these errors were encountered: