开发者

When to use which search technique in Sharepoint development?

开发者 https://www.devze.com 2023-01-03 14:21 出处:网络
When I have to use KeywordSearchQuery, when should I use FullTextSearchQuery and when should I use Query in developing the search part in Visual Studio for a Sharepoint site?

When I have to use KeywordSearchQuery, when should I use FullTextSearchQuery and when should I use Query in developing the search part in Visual Studio for a Sharepoint site?

I want to search information from Cont开发者_JAVA技巧act list. If any keyword is put in the search box, I wan related information in our own specified format. Which technique should I use?


I think it depends on the situation. In your case, since you are searching a Contacts list, I would recommend using a regular CAML and SPQuery.

In general:

  • One list, use a CAML query
  • Many lists, use search
0

精彩评论

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