I'm quite new to KQL , however it appears to be the best way to do what i want which is I'm using the Highlighted Content webpart and wish to display documents from another site which are tagged with one or more managed metadata columns.

For example, on Site A i wish to display documents from Site B which are tagged with Term set (Office) = Term (London).

What would the query be? Currently mine is the following however it's not working:


1 Answer 1


You need to use the managed property in the KQL section. For example, I have a metadata column named Metadata, and the managed property name for the corresponding crawled property is owstaxIdMetadata.

enter image description here

So the KQL I use to display the documents filled with term "Sales & Marketing" is (Double quotes can be omitted):

ContentType:Document owstaxIdMetadata:"94710101-4b23-408f-8c6b-f3ae0443cb45"


ContentType:Document owstaxIdMetadata:Sales & Marketing

And in your scenario it should be:


Your Answer

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

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