summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-01-07 12:20:42 +0100
committerJürg Billeter <j@bitron.ch>2010-01-07 12:20:42 +0100
commit7add0c2889a0aa5abe2b8838b9976ea3e687fee7 (patch)
tree21fe34f3031e52cb093e8cbf459687b3b47ea02b
parent137ee51087e22149b2cce8c03f4d6ca67dbda443 (diff)
downloadtracker-7add0c2889a0aa5abe2b8838b9976ea3e687fee7.tar.gz
libtracker-fts: Simplify virtual table creation
Specifying property columns is not necessary anymore.
-rw-r--r--src/libtracker-fts/tracker-fts.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/libtracker-fts/tracker-fts.c b/src/libtracker-fts/tracker-fts.c
index 7fac4ee71..f9d55eca6 100644
--- a/src/libtracker-fts/tracker-fts.c
+++ b/src/libtracker-fts/tracker-fts.c
@@ -7797,31 +7797,5 @@ tracker_fts_get_drop_fts_table_query (void)
gchar *
tracker_fts_get_create_fts_table_query (void)
{
- GString *sql;
- TrackerProperty **properties, *property;
- gboolean first;
- guint i, n_properties;
-
- sql = g_string_new ("CREATE VIRTUAL TABLE fulltext.fts USING trackerfts (");
-
- first = TRUE;
- properties = tracker_ontology_get_properties (&n_properties);
-
- for (i = 0; i < n_properties; i++) {
- property = properties[i];
-
- if (tracker_property_get_data_type (property) == TRACKER_PROPERTY_TYPE_STRING &&
- tracker_property_get_fulltext_indexed (property)) {
- if (first) {
- first = FALSE;
- } else {
- g_string_append (sql, ", ");
- }
- g_string_append_printf (sql, "\"%s\"", tracker_property_get_name (property));
- }
- }
-
- g_string_append (sql, ")");
-
- return g_string_free (sql, FALSE);
+ return g_strdup ("CREATE VIRTUAL TABLE fulltext.fts USING trackerfts");
}