0

Can we do a custom query on the Description column (Multiple lines of text) in Highlighted content?

Can we say:

(Path:"https://test.sharepoint.com/test)AND(filetype:docx)AND(Description:"This is test")
2
  • Is this SharePoint default "Description" column or you have created a custom column? Commented Jul 31, 2023 at 9:05
  • Hi @Harris, is below solution working for you? Commented Oct 11, 2023 at 13:41

1 Answer 1

0

I just did a test from my end and I was able to use the SharePoint default "Description" column in KQL query to filter the search results.

I have used below KQL query in the highlighted content web part:

Path:"https://contoso.sharepoint.com/sites/siteName/Shared Documents" AND filetype:docx AND Description:"This is test"

And I got the correct results from specific SharePoint document library mentioned in Path property like this:

enter image description here


Here are the documents/files in my SharePoint document library:

enter image description here

3
  • Thanks for your message. I have two Description columns; one came with Document set content type, and the other is a custom column. I am referring to the custom one with the AGRkMSDescription internal name. I have tried both display name and internal name and it didn't work.
    – Harris
    Commented Aug 1, 2023 at 0:04
  • For custom columns, you have to create the managed property > map it with crawled property and then use that new managed property name in your custom query. check: learn.microsoft.com/en-us/sharepoint/technical-reference/… and sharepoint.stackexchange.com/questions/292959/… Commented Aug 1, 2023 at 5:56
  • Hi Harris, any update on this thread? Please Upvote(^) and accept my below response as an Answer if it helped you in any way & it will help others with similar question in future to find the correct answer easily. It also removes this question from "Unanswered questions" list. Commented Nov 20, 2023 at 7:26

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.