Set Maximum Number of Threads

Sep 2, 2009 at 3:25 PM

I've created a protocol handler that accesses a web service to get document data. The problem is that the protocol handler is overwheling the web service with requests.

Is there some way that I can set, for this protocol handler, the maximum number of threads to use or documents to index at once?

Many thanks!

Sep 15, 2009 at 9:43 AM

OK, well let's say that I only want to index a single document at a time.

Would I run into any trouble if I just wrapped the code that calls the web service in EnsureContent in a lock statement? E.g.


  // Do stuff here


Sep 29, 2009 at 7:11 PM

There is a crawl rule you could apply so it will only run with 1 thread.

Downsite is that this is applied for the address, not a specific contentsource. f.e. mossph:// and http:// are threated the same.