SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Looking at the following query, you'd expect it to return rows that had 'pdf' in either of the two columns.

However, if 'pdf' exists in 'FileSiteTitle' and 'FileSiteComments' is null, the row is not returned.

SELECT FileSiteTitle, FileSiteComments, Path 
FROM portal..scope() 
WHERE "SCOPE" = 'All Sites' 
AND SiteTitle = '45611' 
AND ListContentType = 'FileSiteFields' 
AND ( FileSiteTitle LIKE '%pdf%' OR FileSiteComments LIKE '%pdf%' ) 

I know this is only mimicing SQL query, but it should try better no?

I tried FileSiteComments IS NULL OR FileSiteComments LIKE '%pdf%' but that just throws a COM Exception, even though the is null predicate is documented here

'FileSiteComments' is a "Multiple lines of text" field if that helps.

Any workaround?

share|improve this question

A tool you can use to easy build and resolve issues with Search Queries is the SharePoint Search Service Tool ( Hope it helps!

share|improve this answer
already using it – BobTodd May 26 '11 at 8:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.