Forum Discussion
Elsa Naumann
Jan 03, 2017Brass Contributor
Modern Pages - Highlighted content not filtering search results for pages in other site collections
Hi all, I want to show pages from a different site collection using the highlighted content with a filter on Content includes the words to only show articles with specific content. This works jus...
John_Sanders
Microsoft
Some nice sleuthing there Mikael Svenson. We are working on a way that you can enter more advanced query terms in the property pane.
1) the UX is behind a flight at the moment as it's not yet ship ready (e.g. is it too confusing for non power users, need to craft an updated/linked help article, should we attempt to do validation in the long run, etc.).
2) It also immediately brings up the desire to do custom data mapping of custom property X to position Y in the card layouts (since you can now query and retrieve property custom property X).
We're working on it...
Mikael Svenson
Nov 28, 2017Steel Contributor
Awesome news and like the direction this is going. Validation is a hard nut, and I'm guessing it's not too important as we've never had that in any web part using KQL before.
In my mind you could have a collapsed Advanced web part setting, where you have to check off to use advanced, and then you are sort of at the point of the CSWP - your own KQL, or the UI - no mix and match. If you check to use advanced, the other controls should also be disabled - which I believe is possible with the current SPFx settings.
That way you could link to https://docs.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference and https://technet.microsoft.com/en-us/library/jj683123(v=office.16).aspx and be all set - more or less ;)
In my mind you could have a collapsed Advanced web part setting, where you have to check off to use advanced, and then you are sort of at the point of the CSWP - your own KQL, or the UI - no mix and match. If you check to use advanced, the other controls should also be disabled - which I believe is possible with the current SPFx settings.
That way you could link to https://docs.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference and https://technet.microsoft.com/en-us/library/jj683123(v=office.16).aspx and be all set - more or less ;)