diff options
Diffstat (limited to 'modules/search')
-rw-r--r-- | modules/search/search.api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/search/search.api.php b/modules/search/search.api.php index 2912b30f7..5908c74cb 100644 --- a/modules/search/search.api.php +++ b/modules/search/search.api.php @@ -156,8 +156,8 @@ function hook_search_execute($keys = NULL) { // Insert special keywords. $query->setOption('type', 'n.type'); $query->setOption('language', 'n.language'); - if ($query->setOption('term', 'tn.nid')) { - $query->join('taxonomy_term_node', 'tn', 'n.vid = tn.vid'); + if ($query->setOption('term', 'ti.tid')) { + $query->join('taxonomy_index', 'ti', 'n.nid = ti.nid'); } // Only continue if the first pass query matches. if (!$query->executeFirstPass()) { |