Developer Forum »
Rebuilding the search index for a specific node, immediately
42 posts

Hi,

Is it possible to rebuild the search index for a particular node in an immediate and synchronous manner? I.e. I don't want to add it to the que, but to perform an immediate rebuild, and when the next statement executes, the index will have been rebuilt.

This incidentally coincides with UpdateChanges(). Ideally I would have to do it right after, and thus remove it from the que as well.

Is it possible? Does it implicate performance issues?

Thanks!

-Emil

120 posts

Hi, you can call WAFRuntime.Engine.Dao.DeQueIndexWorker(10) until it returns false. 

42 posts

Great! Thanks :) Is that function thread-safe?

120 posts

yes, it is threadsafe. Remember to call it after a call to updatechanges or just add it to items to qued directly: WAFRuntime.Engine.Dao.QueIndexContents(content.Key)

42 posts

Thanks again :)

1