?

User tests: Successful: Unsuccessful:

avatar chrisdavenport
chrisdavenport
21 Mar 2014

At present, purging the index then re-indexing will result in the configuration of any search filters being lost. This is because the search filters link to the relevant taxonomies using taxonomy ids and these are inevitably changed during a purge/index cycle. This PR addresses the issue by adding a --purge argument to the CLI indexer which, unlike its UI equivalent, completes a full purge/index cycle while preserving the filter configurations.

This change is fully backwards-compatible as running it without the --purge argument results in exactly the same behaviour as before. Some minor code-style improvements on the original code have also been done.

This is a backport for Joomla 2.5 of PR #3346 for Joomla 3.x

avatar chrisdavenport chrisdavenport - open - 21 Mar 2014
avatar b2z
b2z - comment - 26 Jul 2014
/jtest/cli
$ php finder_indexer.php --purge
Smart Search INDEXER
============================

Starting Indexer
Setting up Finder plugins
Setup 157 items in 0.081 seconds.
 * Processed batch 1 in 27.179 seconds.
 * Processed batch 2 in 40.885 seconds.
 * Processed batch 3 in 43.108 seconds.
 * Processed batch 4 in 5.787 seconds.
Total Processing Time: 117.042 seconds.

Search filters are still set up the same as I left them.

@test successful on 2.5.24

avatar wilsonge
wilsonge - comment - 26 Jul 2014

@test all good. RTC.

avatar nicksavov nicksavov - change - 21 Aug 2014
Labels Removed: ?
avatar brianteeman brianteeman - change - 21 Aug 2014
Status New Ready to Commit
avatar brianteeman brianteeman - change - 1 Sep 2014
Labels Added: ?
avatar brianteeman brianteeman - change - 1 Sep 2014
Status Ready to Commit Pending
avatar brianteeman brianteeman - change - 2 Sep 2014
Category CLI
avatar phproberto phproberto - reference | 66b536c - 10 Oct 14
avatar phproberto
phproberto - comment - 10 Oct 2014

Fixed in 2.5.x branch 66b536c

Thanks!!

avatar phproberto phproberto - close - 10 Oct 2014
avatar phproberto phproberto - close - 10 Oct 2014
avatar phproberto phproberto - change - 10 Oct 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-10-10 12:30:02
avatar mbabker mbabker - change - 10 Oct 2014
Milestone Added:

Add a Comment

Login with GitHub to post a comment