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

trying to query on multiple contenttype where one content type contains field XYClosed(Yes/No) and the other one does not contain it. So I created a scope and start writing fixed query. Returned results for two CTs look like this (inside individual results)

1 : <XYClosed></XYClosed>
2 : <XYClosed>True</XYClosed>

So what I am trying to achieve is include results where:

  • if the element is filled then take only if it is not equal to true -> -XYClosed:True
  • if the element is empty than take it to the results -> ???

Can you help me how to achieve the 2nd rule and also somehow to combine these rules with OR?

Thanks, Ivan

share|improve this question

Not sure if I totally understand what you're trying to achieve. But I think you are trying to specifically write a query for nullable. So here goes...Trying adding a parameter of :


This should retrieve where the values are not set.

share|improve this answer
This does not work. – Ivan Apr 8 '13 at 13:27

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.