Forum Discussion
Modern Pages - Highlighted content not filtering search results for pages in other site collections
Hi John_Sanders, any chance you can turn off near duplicate trimming in the highlight web part is well? Either change the default behavior or give us an option.
The near duplicate trimming in SP search is just not a good thing- and seems to ignore Title all together for modern pages at least. Create multiple articles as modern pages, give them unique titles but write the same content in all, and only one will roll up.
Again, thanks to Elsa Naumann for bringing this to my attention :)
From reading your comment "The near duplicate trimming in SP search is just not a good thing- and seems to ignore Title all together for modern pages at least. Create multiple articles as modern pages, give them unique titles but write the same content in all, and only one will roll up." I think you're saying that searching directing on the site trims all the other pages with different titles and identical content inside (and it also removed them in HC)?
So you're asking for a new "Expert Settings" area (potentially), where users that know what they're doing could off-check "Near duplicate trimming"? Since I'm guessing normal folks wouldn't even think to off-check that as an option. Is that right?
- Mikael SvensonFeb 22, 2017Steel Contributor
The better option would be for the web part not to trim on default. If people want to trim, that could be a future expert setting. In my opinion the default is wrong (as it is in old wp's as well, and it's one of the most common fixes for "I don't find my item in search result", as it's been incorrectly trimmed away.
My wish is that you now have a chance to do the right thing and change the default behaviour as it's wrong. And if you do, I will do praise post to your honor :D
My old post on the issue: http://www.techmikael.com/2013/12/duplicate-trimming-in-sharepoint-2013.html
MarcDAnderson's more recent post on the matter: http://sympmarc.com/2017/01/09/sharepoint-online-search-isnt-displaying-what-i-expect-part-1-trimmed-duplicates/
- Mikael SvensonNov 20, 2017Steel Contributor
John_Sanders I noticed the web part now has a property in the backing JSON named advancedQueryText which seems to be the query template. Are there plans to expose this in the web part property panel? If so, it would be an awesome pre-xmas gift :)
Wrote about my investigations at http://www.techmikael.com/2017/11/modifying-query-template-for.html
- John_SandersNov 28, 2017Microsoft
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 SvensonNov 28, 2017Steel ContributorAwesome 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 ;)