Skip to content

Commit

Permalink
Merge pull request #231 from OpenDevelopmentMekong/impl-230
Browse files Browse the repository at this point in the history
Fixes #230
  • Loading branch information
Alex Corbi authored Feb 23, 2018
2 parents efdbd55 + cd71fdf commit 47beffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions admin-scripts/reindex-wp-contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
foreach ( $posts as $post):
echo("Indexing post with ID: " . $post->ID ." and title:" . $post->post_title . " and type " . $post->post_type . nl2br("\n"));

// First delete the record previously indexed via its ID, if available
WP_Odm_Solr_WP_Manager()->delete_post($post->ID);

WP_Odm_Solr_WP_Manager()->index_post($post);

endforeach;

wp_reset_postdata();
Expand Down
2 changes: 1 addition & 1 deletion wp-odm_solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: wp-odm_solr
* Plugin URI: http://github.com/OpenDevelopmentMekong/wp-odm_solr
* Description: ODI Internal Wordpress plugin for indexing created/updated WP contents automatically into a solr index
* Version: 2.4.7
* Version: 2.4.8
* Author: Alex Corbi ([email protected])
* Author URI: http://www.lifeformapps.com
* License: GPLv3
Expand Down

0 comments on commit 47beffa

Please sign in to comment.