-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Iterative searcher #166
Comments
@automactic What is the problem you want to fix? |
There is no problem. @mgautierfr talked about updating the searcher to an iterator. I am also trying to do some modifications of my searching async system. I just want to time those two things together. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
To me, now, we clearly need that. |
Could you elaborate why we need it? To me, |
@automactic The iterator is a C++ standard pattern to do this kind of operation and I want to use it as far as possible in place of custom API. But this is not the key point we are going to change (even if this is still open to discussion):
I hope to somehow document with Matthieu the approach we want to follow this week as a GSoC student will work on that during the summer. |
@kelson42 We already have a search_iterator implementation in libzim here that is based on the |
@maneeshpm I will let @mgautierfr further answer |
Definitively not :) It was this way a long time ago (before we had a xapian database).
Yes. See #430 |
Thanks @mgautierfr! It makes sense now. I agree with your comment on the linked issue. The distinction between libzim and kiwix-lib needs to be clear. This issue gets fixed once we drop the wrappers(or even without dropping them) and adapt the existing kiwix-lib to implement libzim directly. |
@automactic @maneeshpm https://github.com/kiwix/kiwix-tools/issues/97#issuecomment-814111663 gives a good insight in how should be the new searcher architecture. |
Somehow similar to #146 |
@maneeshpm Might be the riht moment to work on this, or do we have unmet dependences for this ticket? |
@kelson42 I feel like this will automatically come as a by-product of dropping the wrappers. When we drop the wrappers, we will shift to using libzim types, and the return type of a search in libzim is an iterator(via |
@maneeshpm Good to me. |
@kelson42 With the merge of #536 we now have exposed As far as this issue is concerned, I would call this fixed. We can close this if you and @mgautierfr agree. |
I remember @mgautierfr told me he is planning on replace
getNext
styled searcher with an iterator. Do we have plan on if and when this will be finished? Thanks!The text was updated successfully, but these errors were encountered: