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

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

1 Answer

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 :

 XYClosed:""

This should retrieve where the values are not set.

share|improve this answer
1  
This does not work. –  Ivan Apr 8 '13 at 13:27
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.