Domanda

I have a .db sqlite file that I can import form sdcard. How can I add FTS support? I must recreate all table? Please give some tips.

È stato utile?

Soluzione

Yes, you need to create any FTS tables for the data you want to search. For example, if you have a Customer table and a Products table, you would need to create both a CustomerFTS table and a Products FTS table.

After those tables are created, you then have to insert the data you wish to search into those tables. You can either look at the example of FTS support in http://blog.andresteingress.com/2011/09/30/android-quick-tip-using-sqlite-fts-tables/

or from the Android Developer site http://developer.android.com/training/search/search.html Where they show how to create a table and populate it with data.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top