DEV Community

Discussion on: Implementation of full text search on Android

 
node profile image
Chris Yang

There is a specific scene for us --- we are building a local search engine for the whole Android system not only for one app.
For Lucene which version should I use ? That's a question,and the only way to fix is testing and testing again. While for fts3/fts4 in my opinion the index and search API is not friendly to developer at least not better than Lucene.

Thread Thread
 
peaceoff profile image
David Azevedo

I haven't looked into versions that much, but I'd go with the latest stable.
Yeah, fts3 and fts4 are the most basic, Lucene as a lot and I mean a lot of features. As your work is directly on android and not just an app, I guess you should go for Lucene given that is the more complex option. For an app, I think it depends on the purpose obviously.
FTS keeps the code more native and lightweight while still giving good results. Lucene as much more features which could be interesting like ranked search and such. but at the same time, it requires more disk space due to redundancy.