Closed SjoerdV closed 2 years ago
Closing as the web parts cannot control what the API return or not. You should replicate the bug and file a support ticket with Microsoft.
Just found a workaround. I forgot to mention that the result webparts were also having a default value set for the searchbox connection which was set to "*" (no quotes) and the solution lies here in.
{searchTerms} AND Path:<URL to the DocumentLibrary>*
Path:<URL to the DocumentLibrary>*
, so just repeat the entire query without the {searchTerms} AND
part. This will miraculously make the HitHighlightedSummary value be populated.So it's probably an API issue indeed, but perhaps someone can use this. Don't use just a plain asterisk as a default value is my lesson here. If someone disagrees I'd like to hear it though
As anyone update regarding this issue ? I can cheat using the workaround from @SjoerdV but it's not cumfortable.
And opening a ticket for every single bug in SharePoint would require hiring a full dedicated team
Just found a workaround. I forgot to mention that the result webparts were also having a default value set for the searchbox connection which was set to "*" (no quotes) and the solution lies here in.
- let's say the Query Template is equal to
{searchTerms} AND Path:<URL to the DocumentLibrary>*
- then set the Default value for the Results webpart connection with the Searchbox to
Path:<URL to the DocumentLibrary>*
, so just repeat the entire query without the{searchTerms} AND
part. This will miraculously make the HitHighlightedSummary value be populated.So it's probably an API issue indeed, but perhaps someone can use this. Don't use just a plain asterisk as a default value is my lesson here. If someone disagrees I'd like to hear it though
So this would work without the token {searchTerms}? I didn't try it yet, but this is my first thought.
As anyone update regarding this issue ? I can cheat using the workaround from @SjoerdV but it's not cumfortable.
And opening a ticket for every single bug in SharePoint would require hiring a full dedicated team
lol, there are SO MANY... including the documentation. What a gnarly web they weave.
Version used Ex: 4.4.1
Describe the bug Value for 'HitHighlightedSummary' (and thus the computed 'Summary' slot) is not populated when the Query Template starts with '{searchTerms} AND '
To Reproduce Steps to reproduce the behavior:
Prepare assets
Configure Page (Part 1)
{searchTerms} AND Path:<URL to the DocumentLibrary>*
Notice the Summary column is NOT filled, DEBUG view shows 'null' as a value
Configure Page (Part 2)
Path:<URL to the DocumentLibrary>*
Notice the Summary column is filled, DEBUG view shows some computed value
Expected behavior I would expect it not to matter whether or not any token or this specific token is used in the Query Template. It should always deliver a filled in Summary slot and thus a filled in 'HitHighlightedSummary' search result property
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.