1

Is it possible to search multiple content types with KeywordQuery?

ContentTypeName: Content Type A AND ContentTypeName: Content Type B
1
  • Also, if you use ContentTypeId you can retrieve parent and children. Commented Apr 5, 2016 at 11:28

1 Answer 1

2

Yes it is. Use the following query:

{{searchterms} (ContentType:A) AND (ContentType:B)}

I would personally use SPContentType:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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