My English skill is not good. So please try to understand what I say. Thank you !
I want to create a Android dictionary app but I'm not experienced on it. I did a research and there are 2 choices for creating database: Lucene and SQLite Full Text Search. So I made an app as some tutorials.I find that FTS use a Virtual Table to store database but the probblem is the app freeze when adding data to Virtual Table at the first time (from text file about 10000 line). The searching function also takes long time (about 10 seconds)
Then, I find some others tutorials about Lucene. Lucene create an indexed directory for searching but I do not know how fast it is (with large data). Anyone could give me some advices on my problem?
I have not used Lucene for FTS yet, but you can make a virtual table in SQLite. However, the downside of virtual table in SQLite is that the storage space almost doubles.
"I find that FTS use a Virtual Table to store database but the probblem is the app freeze when adding data to Virtual Table at the first time (from text file about 10000 line). The searching function also takes long time (about 10 seconds) " Alternatively, you can make a virtual table beforehand and just add the sqlite database to the assets folder.
I suggest you to use sqlite with fts4. Three strong reason
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With