I've installed the module for d7 and can't figure out how to work with the module.

During the installation no taxonomy list is created for synomyns

How do I includes taxonomy synonyms to the search index?

Comments

jawi’s picture

changing the index status results with the following failure on cron.

Warning: Parameter 1 to searchsynonyms_node_update_index() expected to be a reference, value given in module_invoke_all() (regel 823 van~~~/public_html/includes/module.inc).

I'm using Display suite search. Can This be an issue?

/admin/structure/ds/list/search

STNyborg’s picture

Has anyone installed this module with success? If so could you please give a brief walk-through as to how you solved the implementation.

Regards,

Svend

ladybug_3777’s picture

I'm confused as well! I downloaded and enabled the module, but I don't see anywhere to input synonyms. I assumed it would create new field options when I "add term". I decided to look at the module to see if I could figure out what I'm missing and I realized the entire module is this:

function searchsynonyms_node_update_index(&$node) {
  $synonyms = array();
  foreach ($node->taxonomy as $term) {
    $synonyms = array_merge($synonyms, taxonomy_get_synonyms($term->tid));
  }
  if (count($synonyms)) {
    return '<strong>(' . implode(', ', $synonyms) . ')</strong>';
  }
}

So um yeah, I have no clue what's going on as it doesn't seem to do much. I saw someone referenced another similar module so I'm going to look into that.