On 01.10.2014 10:44, renaud gaudin wrote:
Full text search engine was not left out for performance reasons but for practical ones. Yes, we don't want people to generate the index on their phone. Except for tiny tiny zim files, it would be too much CPU, battery and time consuming. But we do want to add full text search to Android. It could work today but the search index is a (large) folder so it would be a pain to setup. As soon as we integrate both the ZIM file and the index in a single file, we'll enable full text search on the Android App.
To complete Renaud's comment, here is the dev strategy to get it done:
1 - Modify the libxapian code to make it able to pack the index in one file and open it with a filehandle & offset. Here is a small technical discussion about this: http://lists.xapian.org/pipermail/xapian-discuss/2013-November/009039.html
2 - Modify current solution to integrate the search index in a ZIM file.
3 - Introduce the libxapian (Kiwix fulltext search engine) to the binary lib (libkiwix). Here is the compilation script: https://sourceforge.net/p/kiwix/kiwix/ci/master/tree/android/build-android-w...
4 - Update the JNI interface ans the Android UI.
Like told by Charles, this is on in the 2015 Roamap: https://meta.wikimedia.org/wiki/Wikimedia_CH/2015_annual_plan#Offline_Dissem...
Emmanuel