Commit c1c10355 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-fts: Remove TRACKER_FTS_STOP_WORDS envvar

If we have to keep one for tests, let it be
TRACKER_LANGUAGE_STOP_WORDS_DIR, and point to a dummy location
in the fts tests.
parent a94b3ed2
......@@ -162,11 +162,7 @@ tracker_tokenizer_data_new (void)
p->enable_unaccent = tracker_fts_config_get_enable_unaccent (config);
p->ignore_numbers = tracker_fts_config_get_ignore_numbers (config);
p->max_words = tracker_fts_config_get_max_words_to_index (config);
/* disable stop words if TRACKER_FTS_STOP_WORDS is set to 0 - used by tests
* otherwise, get value from the conf file */
p->ignore_stop_words = (g_strcmp0 (g_getenv ("TRACKER_FTS_STOP_WORDS"), "0") == 0 ?
FALSE : tracker_fts_config_get_ignore_stop_words (config));
p->ignore_stop_words = tracker_fts_config_get_ignore_stop_words (config);
g_object_unref (config);
......
......@@ -185,7 +185,7 @@ main (int argc, char **argv)
datadir = g_build_filename (current_dir, "tracker", NULL);
g_free (current_dir);
g_setenv ("TRACKER_FTS_STOP_WORDS", "0", TRUE);
g_setenv ("TRACKER_LANGUAGE_STOP_WORDS_DIR", current_dir, TRUE);
/* add test cases */
for (i = 0; tests[i].test_name; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment