Search index update for custom feature

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/19/2010 6:54:55 AM
Gravatar
Total Posts 9

Search index update for custom feature

Hi,

I'm building a custom feature which I need to index. In the MyFeatureIndexBuilderProvider I'm calling IndexItem(object....) method without using ThreadPool.QueueUserWorkItem(new WaitCallback(IndexItem), sender). If I try to use the threading I never get anything in the mp_IndexingQueue.

The index gets created and I can see it in the mp_IndexingQueue table. However it stays there until I do some other action like add a post in a forum which I believe fires some update thread which goes through this mp_IndexingQueue and creates indexes. Is there a method I can use to process this mp_IndexingQueue?

Could anyone point me the right direction? (I read the documentation on making feature searchable but due to using LINQ I had to change it a bit). When I rebuild the whole index all is fine.

Thanks,

Peter

4/19/2010 12:15:23 PM
Gravatar
Total Posts 18439

Re: Search index update for custom feature

After you get rows into the mp_IndexingQueue table you can call 

SiteUtils.QueueIndexing();

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.