简体   繁体   中英

SharePoint 2010 Search Query

I had written a custom search query for MOSS 2007 to get data where contenttype is post. However the same query is not returning any results in SharePoint 2010. Any inputs will be appreciated.

Please note that SharePoint search box is returning (parameter k in query string and also contenttype:post) appropriate results.

Thanks,

Did you get this issue resolved. I've got a similar issue

The following worked

SELECT TOP 3 title,path,author body FROM scope() WHERE (contenttype = 'post' ) AND CONTAINS(path,'siteurl')

This didn't work (even though it should work)

SELECT TOP 3 title,path,author body FROM scope() WHERE (contenttype = 'post' ) AND CONTAINS(path,'siteur*')

尝试:

SELECT TOP 3 title,path,author body FROM scope() WHERE (contenttype = "post" ) AND CONTAINS(path,"siteur*")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM