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
kiwix-search should report about missing ft index #138
Comments
Yay, thank you. |
I'd like to resolve this issue. The code can be traced from kiwix-search.cpp to reader.cpp, that provides a method to check if a fulltext index exists within a .zim file. |
I don't think we have one but You can build one pretty easily with mwoffliner |
@arjun-369 Seems you are on the right path, check that all the requirements of the ticket are fullfilled and open a PR please |
In kiwix-search tool, we always the kiwix-lib's I've tried to change this #136 but you disagree about that (we probably had a discussion elsewhere to agree to drop it). |
I've missed read the @kelson42 comment. It was about the return code, not making the suggestion using the fallback. |
If a ZIM file is missing the ft index then kiwix-search should:
1
(or any not null error code)This should work with and without the
--suggestion
option. In case of--suggestion
, as we have a fallback solution (based on native ZIM title list), the returned value should be 0, the error message should be printed onSTDERR
as a warning.Requirement comes from #130 discussion
The text was updated successfully, but these errors were encountered: