1

Within my search results web part in SharePoint, I went into the web part properties, and opened up Query Builder. The following query works awesome in Query Builder...

{SearchBoxQuery} MyDocTagsOWSTEXT:chart

..as it finds all items in my document library that has "chart" text associated to the MyDocTags column. So how can I make this live? What left do I need to do, to always have {SearchBoxQuery} filter results based on MyDocTagsOWSTEXT???

My SharePoint search box and search results web parts are both on the same publishing page.

I feel like I am so close! :)

1 Answer 1

1

Use below code when you build your query in search results web part,

MyDocTagsOWSTEXT:{SearchBoxQuery}
1
  • Dude you are the man!!!!! Outside of breaking a display template a part and modifying more custom settings, query builder is such an awesome way to keep the UI running as is, and simply managing all the search processing through a single web part for custom results! I love it!
    – klewis
    Jan 26, 2016 at 19:05

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.