开发者

Adding Item to SharePoint Search index manually

I am looking for a way to add a document to Search Index using API, as and when document gets added to docume开发者_StackOverflow社区nt library.

I can add eventhandler and write a code to call API. I need to know if API supports such interface. Any sample will be really helpful.

Thanks.


I think that SharePoint (2007 and 2010) have passive indexing, meaning it is out of your control beyond scheduling the indexing service to run at a certain frequency. That being the case, there are occasions when your search cache will be out of sync, such as when you first delete an item. However, I believe you can programmatically prime the index service.

It is also possible to have SharePoint non-SharePoint content, such as a UNC path, via the Central Admin.


As other mentioned it isn't quite possible to do what you want. However you can decrease the latency between when you add content and when it gets indexed. The process looks like this:

  1. Create a new Search Content Source that includes your data that needs to be rapidly searched
  2. Add only sites that you care about rapid search to this content source
  3. Schedule this content source's incremental crawl to happen really often. Consider programmatically watching the crawl status so that you could restart the crawl after it has completed.
  4. Tune your search databases I/O and its indexes so that search crawling happens as fast as possible.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜