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

I have a search query, in which I want certain a field to return results where its value is empty :

(contentclass:sts_listitem OR IsDocument:True) SPSiteUrl:http://sharepoint2013b:41000/sites/Catalog ListId:e56dfdd7-4f96-4fa5-b4d5-da75fd56aefd (wstaxidMetadataRegion:**EMPTY**) 

How do I do that? Could not see any option from : http://msdn.microsoft.com/en-us/library/ee558911.aspx

share|improve this question
    
Do you find any solution ? I search similar query like (StartDate>={Today} or StartDate:EMPTY) –  user2182475 Mar 18 '13 at 13:48
    
No, I just added a default value for my field(that cannot be any possible value for that field in real scenario) and checked with that. –  vikas mehta Mar 20 '13 at 5:15

1 Answer 1

The only option I found was to do a search as so:

NOT (MetadataProperty:"ABC" OR MetadataProperty:"DEF" OR MetadataProperty:"GHI") and send it Search Query JSON using window.location.href or entering it in the search box

http://MyServer/site/Searchpage.aspx?Default={"k":"NOT (MetadataProperty:\"ABC\" OR MetadataProperty:\"DEF\" OR MetadataProperty:\"GHI\")","r":[]}
share|improve this answer

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.