Markus
Sophomore
Just Getting Started
Member Likes (0)
Hi!
Is there any way to reindex existed posts/pages/custom post types? I need a global search now and will try the global search plugin in combination with post-indexer.
Thanks!
Markus

Responses (10)
Support Kangaroo (joined March 2011) Likes (0)
Greetings Markus,
I do not think it can be done though if I were personally going to try to do it, after doing an entire backup of my WordPress installation I would export all of my posts etc., wipe them from the database, and then import them while Post Indexer was activated. Hopefully I would get the desired results, but from what I have read in the past here on WPMU Dev not likely.
However, I certainly do not know everything, so I will go ahead and see if I can get the lead developer of the Post Indexer plugin in here to offer his invaluable advice to whether or not this can be done.
Also maybe a feature request to have an option to re-index all posts would be in order, we will see by the developers response.
Though this may take longer then a normal ticket, I will try to get him in here asap.
Thank you for being a WPMU Dev Member!
Cheers, Joe
Member (joined January 2012) Likes (0)
I may have a solution...will post once I can test it...had to create an MU site...
Member (joined January 2012) Likes (0)
I worked on this for 4 hours...and eventually conceded. I genuinely think it's possible, but requires far more time than I have.
Here are the ideas if someone wants to run with it
1. With php & mysql directly - I have a good part of this working, but so many queries are still needed.
2. Each site admin is forced to run something when they login - like one of these:
- loop through all posts and auto saves them, which forces the post indexer to run
- use a subset of code from #1
@joe - through this I came up with a new plugin idea - force site admins to take some action before they can get to the admin screen (greybox or the like). I posted it in uservoice...
Support Kangaroo (joined March 2011) Likes (0)
Greetings Markus and Rob,
I think unfortunately we will find the same kind of answer Rob gave from the lead developer though I will certainly not put words into his mouth or more accurately fingertips ..... lol
@Rob no doubt! there are many things to make this a great plugin.
Cheers, Joe
Support Kangaroo (joined March 2011) Likes (0)
Greetings Markus,
Just touching base with you to let you know we have not forgotten about you nor the issue.
Hopefully the lead developer will make it in here soon to clarify or perhaps confirm my statement that it cannot be done.
Cheers, Joe
Support Kangaroo (joined March 2011) Likes (0)
Greetings Markus,
Just checking in with you to let you know we have not forgotten about you nor the issue.
Hopefully the lead developer will make it in here soon to clarify or perhaps confirm my statement that it cannot be done.
Cheers, Joe
Support Kangaroo (joined March 2011) Likes (0)
Greetings Markus,
Still being persistent on getting the lead developer of Post Indexer in here with his insight and advice or confirmation that it cannot be done without great pain as Rob had mentioned.
Cheers, Joe
Member (joined June 2012) Likes (0)
Is there any update on this? Indexing past posts is a necessity.
Looking at the wp-site-posts schema, i would think it possible to just write a script which iterates over every post and compiles an entry into this table?
Are there caveats that I am missing?
Member (joined June 2012) Likes (0)
could I not iterate over all posts and just call wp_update_post() for each one?
Support Chimp (joined March 2010) Likes (0)
The largest issue is for big sites and indexing all the content but as mentioned you could look to loop through that content gradually.
It has been discussed internally and Barry mentioned about doing it with an ajax loader.
No further details can be confirmed at this time though, sorry. I wish I could, I have a few larger sites myself which could do with this.
As this is still kinda a feature request I'll move it over to the appropriate forums for now.
Take care.
Become a member