openzim / python-libzim

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

Should we inform about index presence? #40

Closed rgaudin closed 4 years ago

rgaudin commented 4 years ago

Would it be interesting to add props to reader.File to inform user about the presence or not of xapian indexes?

I doubt users would be looking for X/fulltext/xapian and X/title/xapian by themselves…

mgautierfr commented 4 years ago

The general idea is to use tags for that. Anyway, if we add a method, we must add it on libzim side (and just wrap it here).

rgaudin commented 4 years ago

Well the problem with tags is that those are optional and just informative. I can set _ftindex:true and that doesn't ensures that there is an index or not.

But I get that it should not be placed here and go to libzim. As it's more of a convenience than a real need, I won't open a request on libzim.