Log in

View Full Version : How can i update the search index w/o using adminCP?


Oreamnos
05-12-2006, 02:56 AM
i am going to make a script that will "post a new thread" when a user uses another function of my site, relatively unrelated to my forums.

i will be making an insert into db tables thread, post and updating user post count.

the only problem is updating the Search Index. how can i update the search index after i "manually" update the other db tables so that the post data will become searchable?

thanks
eric

Zachery
05-12-2006, 02:58 AM
If you use the insert post functions it should do it instantly, or you could use fulltext and then theres no problem whatsoever.

Oreamnos
05-12-2006, 03:00 AM
cool! what is the code for the insert post function? that sounds like exactly what i need!

actually what would be more useful is if there is an insert_thread function...

does anyone know if that exists and if so, what parameters it takes?

thanks
eric