How to define scope for specific content-type in KeywordQuery class
-
07-12-2019 - |
Question
I can get results with simple text queries but i need to limit the results for a specific content-type. What should i do?
Solution
you can create a scope in the Search Service Administration based on your content type or add it as a clause to the query i.e.
foo AND ContentType:"My Content Type Name"
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange