openzim / python-libzim

Libzim binding for Python: read/write ZIM files in Python
https://pypi.org/project/libzim/
GNU General Public License v3.0
62 stars 20 forks source link

Cannot create a ZIM without an index #52

Closed rgaudin closed 4 years ago

rgaudin commented 4 years ago

At the moment, we cannot create a ZIM file without creating an index.

I'm not sure about the use cases for this (as we can opt-out individually on all articles) but it's an option in mwoffliner so I'm asking. libzim2 plans great improvements to indexes but I don't think it makes it mandatory.

@mgautierfr @kelson42 ?

kelson42 commented 4 years ago

We have two Xapian indexes titles+ft. There is missing clear way IMO to decide which one we want in the final ZIM.

rgaudin commented 4 years ago

Sorry for misleading you with that. zimwriterfs has the --withoutFTIndex option which clearly request not to produce a full-text index (uses zim::writer::setIndexing.

Actually, I was wrong in saying we can't, it's just that we default to eng should no language be passed but we can explicitly set it to "" and then the FT index is not created.

Closing this. Are we happy with this default? (I am).