Skip to content

Commit

Permalink
To many elements to index (#13868)
Browse files Browse the repository at this point in the history
* To many elements to index

I don't know why in the query `#__tags` is twice. Once as a `a` and second time as a `b`. For me it works perfectly when we remove `b`. I had a problem with this - for 1100 tags on my websites, Smart Search Indexer found more than 1233000 items to index.

* Mistake with query

I corrected a bug with calling the `#__tags` table in the query.
  • Loading branch information
tomekstach authored and Michael Babker committed May 24, 2018
1 parent cb775ed commit 56b89ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/finder/tags/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ protected function getListQuery($query = null)

// Join the #__users table
$query->select('u.name AS author')
->join('LEFT', '#__users AS u ON u.id = b.created_user_id')
->from('#__tags AS b');
->join('LEFT', '#__users AS u ON u.id = a.created_user_id');

// Exclude the ROOT item
$query->where($db->quoteName('a.id') . ' > 1');
Expand Down

0 comments on commit 56b89ce

Please sign in to comment.