Lucene vs SQLite Full Text Search for Android Applications

My English skill is not very good. So please try to understand what I'm saying. Thank!

I want to create an application for Android apps, but I'm not sure about that. I did research, and there are two options for creating a database: Lucene full-text search and SQLite. Therefore, I made the application in the form of several tutorials. I believe that FTS uses a virtual table to store the database, but the problem is that the application freezes when adding data to the virtual table for the first time (from a text file about 10,000 lines). The search function also takes a lot of time (about 10 seconds)

Then I will find some more lessons about Lucene. Lucene creates an index directory for the search, but I don't know how fast it is (with big data). Can anyone give me some advice on my problem?

+4
source share
2 answers

I haven't used Lucene for FTS yet, but you can create a virtual table in SQLite. However, the drawback of SQLite's virtual table is that the storage space is almost doubled.

" , FTS , , ( 10000 ). ( 10 )" , sqlite .

+2

sqlite fts4.

  • sqlite - android os. android, .
  • , fts , .
  • , , , apk, . 10000 db 500 /data/data ​​li >
+1

Source: https://habr.com/ru/post/1534645/


All Articles