xml - Best way to store and search large text data in android -


i developing constitution app android. want know best way store large text data. features want searchable , fast. if use sqlite3 how supposed create file , upload app, if use xml store it, searchable? speed matter.

1) sqlite can create fts (full text search) tables. it's table builtin index on every word. allows find data queries

select * chapter chapter match 'someword' 

or

select * chapter chapter match 'someword near/6 otherword' 

meaning 'where someword , otherword separated less 6 words'.

2) how include database in application, think have 2 options :

  • build database beforehand (e.g. using python, has builtin sqlite bindings) , include in application's assets.
  • include text file(s) assets , create database on first launch.

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -