Forum Discussion
Mackdewack
Nov 26, 2019Copper Contributor
Result search query for managed properties
Hi all, I have build an search query for a search site with an refinement webpart. Here is my query: path:https://xxx.sharepoint.com/ {?Title:{searchboxquery}*} OR {?RefinableString1:{searchb...
Mikael Svenson
Nov 27, 2019Iron Contributor
Mackdewack first off you might end up with loose OR's in that statement when searchboxquery is empty. What you are looking for is adding () around the variable as I blogged about at https://www.techmikael.com/2019/08/search-nugget-grouping-property.html
Also, adding a *, will only wildcard enable the last term you input. An remember that adding * to a term, will remove it from getting rank points. Only individual terms are ranked, so relevance might drop when using wildcards.
Mackdewack
Nov 27, 2019Copper Contributor
Thnx for the response! So you think it's possible to combine the managed properties? Tomorrow I can try the new query.
- Mikael SvensonNov 27, 2019Iron ContributorYes, but you need to read up on KQL syntax a bit and how to best use the {?...} syntax 🙂