Forum Discussion
Result search query for managed properties
(RefinableString1:{searchboxquery}) should be RefinableString1:({searchboxquery})
Uhhh if i try it with the (), i can't combine the words together. Without the () i can combine it but i have to start with the string and then the title.
ContentType:xxx (Title:Microsoft 777) OR RefinableString31:Microsoft 777 -ContentClass=urn:content-class:SPSPeople- Mikael SvensonNov 28, 2019Iron ContributorI think I understand now. You want to split the terms into being queried by different properties. Not doable without adding code to pick up and modify. If this is classic, it's doable/hackable, but in general no. And how do you know which terms should go where?
- MackdewackNov 29, 2019Copper Contributor
Mikael Svenson Thanks for your time, here is a little more context. I have a site collection with around 10K documentsets. Every documentset have serval tags, these are text/choice/lookup column.
With the query i would like that we can search for the refinablestring. For example i had a lookup column with serval suppliers like Google, Microsoft, etc. There is also an product choice column so i would like that we can search for Microsoft hardware.
I doubt if this is possible with OOTB search features. What is your experience? Maybe i have to look to an SPFX webpart?- Mikael SvensonNov 29, 2019Iron Contributor
Mackdewack remember that data isn columns are searchable by default, without using property queries. You can do OR queries as well if you want.
ContentType:xxx Title:ANY({searchboxquery}) OR RefinableString1:ANY({searchboxquery})If you searched for "test microsoft" you will get matches where title or refineablestring1 has one of these terms.
I have no idea what your end users will be querying, so hard to figure out the best solution.