Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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%' ) 
ORDER BY FileSiteTitle DESC

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
add comment

1 Answer

A tool you can use to easy build and resolve issues with Search Queries is the SharePoint Search Service Tool (http://sharepointsearchserv.codeplex.com/). Hope it helps!

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

Your Answer

 
discard

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.