Question

Is it possible to search multiple content types with KeywordQuery?

ContentTypeName: Content Type A AND ContentTypeName: Content Type B
Was it helpful?

Solution

Yes it is. Use the following query:

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

I would personally use SPContentType:

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top