microsoft-search / pnp-modern-search

Home of PnP Modern Search solutions, helping you move from classic to modern SharePoint and beyond
https://microsoft-search.github.io/pnp-modern-search
Other
379 stars 338 forks source link

Promoted Results not displaying #892

Closed Pbear74 closed 3 years ago

Pbear74 commented 3 years ago

Remove the above section before submitting, and removal of the below template will result in the issue being closed.

Version used 4.0

Describe the bug The search results web part is not displaying promoted results, I have tried all the different styles but none show the promoted results. I checked the debug view and I can see the promoted results so the results are being returned just are just not being displayed.

We do use the custom display custom handlebars code however this code has not changed in the quite a while.

This was working a few days ago but now it has stopped. I have verified in the default SPO search that the promoted results do get returned and displayed properly.

To Reproduce Steps to reproduce the behavior:

  1. Created the query rule in SPO
  2. Go to page in SPO and enter the keyword from the query rule
  3. Search results do not display properly

Expected behavior After creating the query rule and running a search the results should display the promoted results with styling applied.

Screenshots

Desktop (please complete the following information): Edge chromium, chrome

Additional context

wobba commented 3 years ago

"This was working a few days ago but now it has stopped." so you did nothing and it stopped working? If so, it seems to be a data/api change. Would help if you share a sample template and a copy of the result JSON.

Pbear74 commented 3 years ago

Here is the template we are using:

<content id="template">
    <style>
       A.bnf-href { color: rgb(227, 82, 5); font-size: 16px !important; }
    </style>

    <div class="template_root">

        {{#if promotedResults}}
            {{#each promotedResults as |promotedResult|}}
               <p>
               <a class="bnf-href" href="{{Url}}">{{Title}}</a><br />
               {{Url}}
               </p>
            {{/each}}
        {{/if}}                

        {{#if @root.hasPrimaryOrSecondaryResults}}
        <div class="template_defaultCard">
            <div class="document-card-container">
                {{#each items as |item|}}
                <div class="document-card-item">
                    {{#> resultTypes item=item}}
                    {{!-- The block below will be used as default item template if no result types matched --}}
                    {{#eq item.contentclass 'STS_ListItem_851'}}
                    <span>No related news found</span>
                    {{else}}
                    <p>
                    <a class='bnf-href' href="{{getUrl item}}">{{Title}}</a><br />
                    {{Path}}<br />
                    </p>
                    <!--pnp-document-card data-item="{{JSONstringify item}}" data-fields-configuration="{{JSONstringify @root.documentCardFields}}" data-enable-preview="{{@root.enablePreview}}" data-show-file-icon="{{@root.showFileIcon}}" data-is-compact="{{@root.isCompact}}"></pnp-document-card-->                   

                    {{/eq}}
                    {{/resultTypes}}
                </div>
                {{/each}}
            </div>
        </div>
        {{#if @root.paging.showPaging}}
        <pnp-pagination data-total-items="{{@root.paging.totalItemsCount}}"
                        data-hide-first-last-pages="{{@root.paging.hideFirstLastPages}}"
                        data-hide-disabled="{{@root.paging.hideDisabled}}"
                        data-hide-navigation="{{@root.paging.hideNavigation}}"
                        data-range="{{@root.paging.pagingRange}}"
                        data-items-count-per-page="{{@root.paging.itemsCountPerPage}}"
                        data-current-page-number="{{@root.paging.currentPageNumber}}">
        </pnp-pagination>
        {{/if}}
        {{else}}
        {{#unless showBlank}}

        {{/unless}}
        {{/if}}
    </div>
</content>

<content id="placeholder">
    <div class="placeholder_root">
        <div class="template_defaultCard">
            {{#if showResultsCount}}
            <div class="template_resultCount">
                <span class="shimmer line" style="width: 20%"></span>
            </div>
            {{/if}}
            <div class="document-card-container">
                {{#times @root.paging.totalItemsCount}}
                <div class="document-card-item">
                    <pnp-document-card-shimmers data-is-compact="{{@root.isCompact}}"></pnp-document-card-shimmers>
                </div>
                {{/times}}
            </div>
        </div>
    </div>
</content>
Pbear74 commented 3 years ago

whoops, didn't mean to close it. here is the resulting json

{
  "data": {
    "totalItemsCount": 3,
    "items": [
      {
        "Rank": "27.1306438",
        "DocId": "328093682423103606",
        "Title": "All Services & Systems A-Z",
        "Path": "https://site.sharepoint.com/sites/site/SitePages/All-Services-&-Systems-A-Z.aspx",
        "DefaultEncodingURL": "https://site.sharepoint.com/sites/site/SitePages/All-Services-%26-Systems-A-Z.aspx",
        "FileType": "aspx",
        "HitHighlightedSummary": 
        "AuthorOWSUSER": 
        "owstaxidmetadataalltagsinfo": 
        "Created": "2020-08-26T20:17:18.0000000Z",
        "UniqueID": "{18124A91-99E1-06A73ADCFB9}",
        "NormSiteID": "54e2d60e--8b0e13b94234",
        "NormListID": "398ed43b--dba7d9e54048",
        "NormUniqueID": "18124a91--606a73adcfb9",
        "ContentTypeId": "0x0101009D1CB255DA76424F860D91F20E6C411800ADBA5EDF3828E04FBA4E2BA86ED4E81F",
        "UserName": null,
        "JobTitle": null,
        "WorkPhone": null,
        "SPSiteUrl": "https://site.sharepoint.com/sites/site",
        "SiteTitle": "Fetch",
        "CreatedBy": 
        "SiteId": "54e2d60e--8b0e13b94234",
        "WebId": "3ad7a023--118b481d9fff",
        "contentclass": "STS_ListItem_WebPageLibrary",
        "IsExternalContent": "false",
        "ListId": "398ed43b-4aee-4e7c-ad01-dba7d9e54048",
        "OriginalPath": "https://site.sharepoint.com/sites/site/SitePages/All-Services-&-Systems-A-Z.aspx",
        "ResultTypeIdList": null,
        "ResultTypeId": null,
        "RenderTemplateId": "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Default.js",
        "piSearchResultId": "ARIAǂdab14983-453f-4de4-8dae-3bcecfad4e71ǂa175dd1c-cc28-4b43-8922--453f-4de4-8dae-3bcecfad4e71.1000.3ǂNAM:934611945_1464_1033:0_1",
        "GeoLocationSource": "NAM",
        "PartitionId": "",
        "UrlZone": "0",
        "Culture": "en-US",
        "AutoPreviewUrl": "https://site.sharepoint.com/sites/site/SitePages/All-Services-%26-Systems-A-Z.aspx?web=1",
        "AutoPreviewImageUrl": "https://site.sharepoint.com/sites/site/_api/v2.1/sites//thumbnails/0/large/content?preferNoRedirect=true"
      },
      {
        "Rank": "26.8534927",
        "DocId": "328093684918966542",
        "Title": "Payroll",
        "Path": "https://site.sharepoint.com/sites/site/SitePages/Payroll.aspx",
        "DefaultEncodingURL": "https://site.sharepoint.com/sites/site/SitePages/Payroll.aspx",
        "FileType": "aspx",
        "HitHighlightedSummary": 
        "AuthorOWSUSER": 
        "owstaxidmetadataalltagsinfo": 
        "Created": "2020-10-06T03:36:12.0000000Z",
        "UniqueID": "{CD9944E4-50C372579C33}",
        "NormSiteID": "54e2d60e-db-8b0e13b94234",
        "NormListID": "398ed43b-a7d9e54048",
        "NormUniqueID": "cd994472579c33",
        "ContentTypeId": "28E04FBA4E2BA86ED4E81F",
        "UserName": null,
        "JobTitle": null,
        "WorkPhone": null,
        "SPSiteUrl": "https://site.sharepoint.com/sites/site",
        "SiteTitle": "Fetch",
        "CreatedBy": 
        "SiteId": "54e2d60e-8b0e13b94234",
        "WebId": "3ad7a023--118b481d9fff",
        "contentclass": "STS_ListItem_WebPageLibrary",
        "IsExternalContent": "false",
        "ListId": "398ed43b-ad01-dba7d9e54048",
        "OriginalPath": "https://site.sharepoint.com/sites/site/SitePages/Payroll.aspx",
        "ResultTypeIdList": null,
        "ResultTypeId": null,
        "RenderTemplateId": "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Default.js",
        "piSearchResultId": "ARIAǂdab14983-453f-4de4-8dae-3bcecfad4e71ǂa175dd1c-cc28-4b43-8922--453f-4de4-8dae-3bcecfad4e71.1000.4ǂNAM:934611945_1464_1033:1_1",
        "GeoLocationSource": "NAM",
        "PartitionId": "",
        "UrlZone": "0",
        "Culture": "en-US",
        "AutoPreviewUrl": "https://site.sharepoint.com/sites/site/SitePages/Payroll.aspx?web=1",
        "AutoPreviewImageUrl": "https://site.sharepoint.com/sites/site/_api/v2.1/sitails/0/large/content?preferNoRedirect=true"
      },
      {
        "Rank": "26.7554874",
        "DocId": "328093686921379932",
        "Title": "Technology & Systems",
        "Path": "https://site.sharepoint.com/sites/site/SitePages/Technology-and-systems.aspx",
        "DefaultEncodingURL": "https://site.sharepoint.com/sites/site/SitePages/Technology-and-systems.aspx",
        "FileType": "aspx",
        "HitHighlightedSummary": 
        "AuthorOWSUSER": 
        "owstaxidmetadataalltagsinfo": 
        "Created": "2020-12-27T22:31:37.0000000Z",
        "UniqueID": "{3ADD8978-F5F8E1466225}",
        "NormSiteID": "54e2d60e-ba7d9e54048",
        "NormUniqueID": "3add8978-271-f5f8e1466225",
        "ContentTypeId": "0x0101009D1C8E04FBA4E2BA86ED4E81F",
        "UserName": null,
        "JobTitle": null,
        "WorkPhone": null,
        "SPSiteUrl": "https://site.sharepoint.com/sites/site",
        "SiteTitle": "Fetch",
        "CreatedBy": 
        "SiteId": "54e2d60e-b-8b0e13b94234",
        "WebId": "3ad7a023-b52b-81d9fff",
        "contentclass": "STS_ListItem_WebPageLibrary",
        "IsExternalContent": "false",
        "ListId": "398ed43b-4ad9e54048",
        "OriginalPath": "https://site.sharepoint.com/sites/site/SitePages/Technology-and-systems.aspx",
        "ResultTypeIdList": null,
        "ResultTypeId": null,
        "RenderTemplateId": "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Default.js",
        "piSearchResultId": "ARIAǂdfad4e71ǂa175dd1-8dae-3bcecfad4e71.1000.5ǂNAM:934611945_1464_1033:2_1",
        "GeoLocationSource": "NAM",
        "PartitionId": "",
        "UrlZone": "0",
        "Culture": "en-US",
        "AutoPreviewUrl": "https://site.sharepoint.com/sites/site/SitePages/Tstems.aspx?web=1"
      }
    ],
    "filters": [],
    "queryModification": "bi Path:https://site.sharepoint.com/sites/site/sitepages isDocument=1 AND CategoryOWSCHCS:\"Portal Page\" Path:\"https://site.sharepoint.com/sites/site*\"",
    "secondaryResults": [],
    **"promotedResults"**: [
      {
        "title": "Login to Power BI",
        "url": "https://site/login/login.htm?fromURI=/home/office365/",
        "description": ""
      },
      {
        "title": "Power BI Resources",
        "url": "https://site.sharepoint.com/sites/site/sitepages/Search-Results.aspx?q=PBIRES&k=PBIRES",
        "description": ""
      }
    ]
  },
  "paging": {
    "currentPageNumber": 1
  },
  "theme": {
    "palette": {
      "themeDarker": "#ffb29a",
      "themeDark": "#e35205",
      "themeDarkAlt": "#e35206",
      "themePrimary": "#e35205",
      "themeSecondary": "#65686b",
      "themeTertiary": "#87d1e6",
      "themeLight": "#796722",
      "themeLighter": "#efe6f2",
      "themeLighterAlt": "#f3f2f3",
      "black": "#000000",
      "blackTranslucent40": "rgba(0,0,0,.4)",
      "neutralDark": "#e35204",
      "neutralPrimary": "#65686f",
      "neutralPrimaryAlt": "#9c000c",
      "neutralSecondary": "#656866",
      "neutralSecondaryAlt": "#8a8886",
      "neutralTertiary": "#ffcc01",
      "neutralTertiaryAlt": "#ffd9bf",
      "neutralQuaternary": "#016d28",
      "neutralQuaternaryAlt": "#f2f4f3",
      "neutralLight": "#fffff4",
      "neutralLighter": "#f3f4f3",
      "neutralLighterAlt": "#e8e7e5",
      "accent": "#82c31b",
      "white": "#ffffff",
      "whiteTranslucent40": "rgba(243, 243, 244, 0.40)",
      "yellowDark": "#d29200",
      "yellow": "#ffb900",
      "yellowLight": "#fff100",
      "orange": "#d83b01",
      "orangeLight": "#ea4300",
      "orangeLighter": "#ff8c00",
      "redDark": "#a4262c",
      "red": "#e81123",
      "magentaDark": "#5c005c",
      "magenta": "#b4009e",
      "magentaLight": "#e3008c",
      "purpleDark": "#32145a",
      "purple": "#5c2d91",
      "purpleLight": "#b4a0ff",
      "blueDark": "#002050",
      "blueMid": "#00188f",
      "blue": "#0078d4",
      "blueLight": "#00bcf2",
      "tealDark": "#004b50",
      "teal": "#008272",
      "tealLight": "#00b294",
      "greenDark": "#004b1c",
      "green": "#107c10",
      "greenLight": "#bad80a",
      "CommandLinksSecondary": "#e25205",
      "EmphasisHoverBorder": "#e35205",
      "TileBackgroundOverlay": "#e35202",
      "ContentAccent5": "#ed0033",
      "DialogBorder": "#82c31d",
      "HeaderAccentLines": "#ad4361",
      "ContentAccent4": "#767956",
      "PageBackground": "#f3f3f4",
      "FooterBackground": "#f3f3f8",
      "SuiteBarHoverBackground": "#994719",
      "TileText": "#f3f3f7",
      "ContentAccent2": "#00485b",
      "EmphasisHoverBackground": "#e35205",
      "TopBarBackground": "#f3f3f6",
      "EmphasisBackground": "#e35207",
      "NavigationHover": "#656869",
      "NavigationPressed": "#ffb29d",
      "themeAccent": "#e35206",
      "HeaderBackground": "#e35420",
      "Lines": "#ffcc05",
      "StrongLines": "#796721",
      "HeaderStrongLines": "#796720",
      "HeaderSubtleLines": "#ffd9bf",
      "DisabledLines": "#765a4c",
      "AccentLines": "#ad4361",
      "HeaderDisableText": "#ffcc03",
      "SuiteBarHoverText": "#fffffa",
      "ButtonGlyph": "#e35205",
      "ButtonDisabledBackground": "#136d81",
      "HeaderDisabledLines": "#765a4b",
      "SubtleLines": "#ffd9bf",
      "TopBarText": "#9aabb8",
      "SuiteBarDisabledText": "#765a49",
      "disabledBackground": "#cd9d7c",
      "TopBarPressedText": "#ffb29e",
      "StrongBodyText": "#e35305",
      "ContentAccent3": "#288054",
      "NavigationHoverBackground": "#e35220",
      "SelectionBackground": "#796722",
      "NavigationAccent": "#e35208",
      "SuiteBarBackground": "#e35206",
      "error": "#df1616",
      "ContentAccent6": "#682a7a",
      "ButtonGlyphActive": "#fffff6",
      "ButtonPressedBackground": "#e35105",
      "TopBarHoverText": "#fffff5",
      "ButtonText": "#fffff7",
      "ButtonDisabledBorder": "#fffffd",
      "SiteTitle": "#e45205",
      "HeaderText": "#e35105",
      "primaryBackground": "#fff7d7",
      "Hyperlinkfollowed": "#e35205",
      "themeAccentTranslucent10": "#e35204",
      "SuiteBarText": "#65686d",
      "CommandLinks": "#9aabb3",
      "ButtonBorder": "#82c31c",
      "EmphasisBorder": "#82c31f",
      "ContentAccent1": "#e35105",
      "bodyBackground": "#f3f3f2",
      "backgroundOverlay": "#f3f3f3",
      "HeaderNavigationPressedText": "#ffb29f",
      "RowAccent": "#e35209",
      "SubtleEmphasisCommandLinks": "#e35203",
      "HyperlinkActive": "#ffb29b",
      "NavigationSelectedBackground": "#e35221",
      "bodyText": "#593c00",
      "ButtonHoverBorder": "#82c31d",
      "CommandLinksHover": "#65686a",
      "Navigation": "#9aabb4",
      "SubtleEmphasisBackground": "#e8fffe",
      "ButtonGlyphDisabled": "#ffd9bf",
      "ButtonHoverBackground": "#fffff9",
      "HoverBackground": "#e35305",
      "HeaderNavigationText": "#9aabb7",
      "HeaderLines": "#ffcc06",
      "CommandLinksDisabled": "#ffcc02",
      "WebPartHeading": "#656867",
      "ButtonPressedBorder": "#82c31e",
      "EmphasisText": "#65686e",
      "AccentText": "#e35205",
      "HeaderNavigationSelectedText": "#fffffb",
      "CommandLinksPressed": "#ffb29c",
      "SubtleEmphasisText": "#9aabb5",
      "disabledText": "#52834c",
      "HeaderNavigationHoverText": "#fffffc",
      "ButtonBackground": "#136d80",
      "Hyperlink": "#656868",
      "HeaderDisabledBackground": "#136d82",
      "HeaderSiteTitle": "#e35220",
      "primaryText": "#72bd54",
      "ButtonDisabledText": "#ffcc04",
      "BackgroundOverlay": "rgba(255, 255, 255, 0.85)",
      "DisabledBackground": "#e8e7e5",
      "DisabledText": "#ffcc01",
      "BodyText": "#65686f",
      "ErrorText": "#df1616",
      "suiteBarBackground": "#e35206",
      "suiteBarText": "#65686d",
      "suiteBarDisabledText": "#765a49",
      "topBarBackground": "#f3f3f6",
      "topBarText": "#9aabb8",
      "topBarHoverText": "#fffff5",
      "dialogBorder": "#82c31d"
    },
    "effects": {
      "elevation4": "0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",
      "elevation8": "0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",
      "elevation16": "0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",
      "elevation64": "0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)",
      "roundedCorner2": "2px",
      "roundedCorner4": "4px",
      "roundedCorner6": "6px"
    },
    "fonts": {
      "tiny": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "10px",
        "fontWeight": 400
      },
      "xSmall": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "10px",
        "fontWeight": 400
      },
      "small": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "12px",
        "fontWeight": 400
      },
      "smallPlus": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "12px",
        "fontWeight": 400
      },
      "medium": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "14px",
        "fontWeight": 400
      },
      "mediumPlus": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "16px",
        "fontWeight": 400
      },
      "large": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "18px",
        "fontWeight": 400
      },
      "xLarge": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "20px",
        "fontWeight": 600
      },
      "xLargePlus": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "24px",
        "fontWeight": 600
      },
      "xxLarge": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "28px",
        "fontWeight": 600
      },
      "xxLargePlus": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "32px",
        "fontWeight": 600
      },
      "superLarge": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "42px",
        "fontWeight": 600
      },
      "mega": {
        "fontFamily": "'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",
        "MozOsxFontSmoothing": "grayscale",
        "WebkitFontSmoothing": "antialiased",
        "fontSize": "68px",
        "fontWeight": 600
      }
    },
    "spacing": {
      "s2": "4px",
      "s1": "8px",
      "m": "16px",
      "l1": "20px",
      "l2": "32px"
    },
    "isInverted": false,
    "disableGlobalClassNames": false,
    "semanticColors": {
      "bodyBackground": "#ffffff",
      "bodyFrameBackground": "#ffffff",
      "accentButtonText": "#ffffff",
      "buttonBackground": "#ffffff",
      "primaryButtonText": "#ffffff",
      "primaryButtonTextHovered": "#ffffff",
      "primaryButtonTextPressed": "#ffffff",
      "inputBackground": "#ffffff",
      "inputForegroundChecked": "#ffffff",
      "listBackground": "#ffffff",
      "menuBackground": "#ffffff",
      "cardStandoutBackground": "#ffffff",
      "bodyTextChecked": "#000000",
      "buttonTextCheckedHovered": "#000000",
      "link": "#e35205",
      "primaryButtonBackground": "#e35205",
      "inputBackgroundChecked": "#e35205",
      "inputIcon": "#e35205",
      "inputFocusBorderAlt": "#e35205",
      "menuIcon": "#e35205",
      "menuHeader": "#e35205",
      "accentButtonBackground": "#82c31b",
      "primaryButtonBackgroundPressed": "#e35205",
      "inputBackgroundCheckedHovered": "#e35205",
      "inputIconHovered": "#e35205",
      "linkHovered": "#ffb29a",
      "primaryButtonBackgroundHovered": "#e35206",
      "inputPlaceholderBackgroundChecked": "#efe6f2",
      "bodyBackgroundChecked": "#fffff4",
      "bodyFrameDivider": "#fffff4",
      "bodyDivider": "#fffff4",
      "variantBorder": "#fffff4",
      "buttonBackgroundCheckedHovered": "#fffff4",
      "buttonBackgroundPressed": "#fffff4",
      "listItemBackgroundChecked": "#fffff4",
      "listHeaderBackgroundPressed": "#fffff4",
      "menuItemBackgroundPressed": "#fffff4",
      "menuItemBackgroundChecked": "#fffff4",
      "bodyBackgroundHovered": "#f3f4f3",
      "buttonBackgroundHovered": "#f3f4f3",
      "buttonBackgroundDisabled": "#f3f4f3",
      "buttonBorderDisabled": "#f3f4f3",
      "primaryButtonBackgroundDisabled": "#f3f4f3",
      "disabledBackground": "#f3f4f3",
      "listItemBackgroundHovered": "#f3f4f3",
      "listHeaderBackgroundHovered": "#f3f4f3",
      "menuItemBackgroundHovered": "#f3f4f3",
      "primaryButtonTextDisabled": "#016d28",
      "disabledSubtext": "#016d28",
      "listItemBackgroundCheckedHovered": "#f2f4f3",
      "disabledBodyText": "#ffcc01",
      "variantBorderHovered": "#ffcc01",
      "buttonTextDisabled": "#ffcc01",
      "inputIconDisabled": "#ffcc01",
      "disabledText": "#ffcc01",
      "bodyText": "#65686f",
      "actionLink": "#65686f",
      "buttonText": "#65686f",
      "inputBorderHovered": "#65686f",
      "inputText": "#65686f",
      "listText": "#65686f",
      "menuItemText": "#65686f",
      "bodyStandoutBackground": "#e8e7e5",
      "defaultStateBackground": "#e8e7e5",
      "actionLinkHovered": "#e35204",
      "buttonTextHovered": "#e35204",
      "buttonTextChecked": "#e35204",
      "buttonTextPressed": "#e35204",
      "inputTextHovered": "#e35204",
      "menuItemTextHovered": "#e35204",
      "bodySubtext": "#656866",
      "focusBorder": "#656866",
      "inputBorder": "#656866",
      "smallInputBorder": "#656866",
      "inputPlaceholderText": "#656866",
      "buttonBorder": "#8a8886",
      "disabledBodySubtext": "#ffd9bf",
      "disabledBorder": "#ffd9bf",
      "buttonBackgroundChecked": "#ffd9bf",
      "menuDivider": "#ffd9bf",
      "cardShadow": "0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",
      "cardShadowHovered": "0 0 1px #ffcc01",
      "primaryButtonBorder": "transparent",
      "errorText": "#a4262c",
      "messageText": "#323130",
      "messageLink": "#005A9E",
      "messageLinkHovered": "#004578",
      "infoIcon": "#605e5c",
      "errorIcon": "#A80000",
      "blockingIcon": "#FDE7E9",
      "warningIcon": "#797775",
      "severeWarningIcon": "#D83B01",
      "successIcon": "#107C10",
      "infoBackground": "#f3f2f1",
      "errorBackground": "#FDE7E9",
      "blockingBackground": "#FDE7E9",
      "warningBackground": "#FFF4CE",
      "severeWarningBackground": "#FED9CC",
      "successBackground": "#DFF6DD",
      "warningHighlight": "#ffb900",
      "successText": "#107C10",
      "listTextColor": "#323130",
      "warningText": "#323130"
    }
  },
  "properties": {
    "selectedLayoutKey": "ResultsDebug",
    "resultTypes": [],
    "dataSourceProperties": {
      "queryTemplate": "{searchTerms} Path:https://site.sharepoint.com/sites/site/sitepages isDocument=1 AND CategoryOWSCHCS:\"Portal Page\"",
      "enableQueryRules": true,
      "enableLocalization": false,
      "includeOneDriveResults": false,
      "refinementFilters": "",
      "selectedProperties": [
        "Title",
        "Path",
        "DefaultEncodingURL",
        "FileType",
        "HitHighlightedSummary",
        "AuthorOWSUSER",
        "owstaxidmetadataalltagsinfo",
        "Created",
        "UniqueID",
        "NormSiteID",
        "NormListID",
        "NormUniqueID",
        "ContentTypeId",
        "UserName",
        "JobTitle",
        "WorkPhone",
        "SPSiteUrl",
        "SiteTitle",
        "CreatedBy"
      ],
      "resultSourceId": "67941e366",
      "sortList": []
    },
    "queryTextSource": 1,
    "layoutProperties": {},
    "showSelectedFilters": false,
    "showResultsCount": true,
    "showBlankIfNoResult": false,
    "useMicrosoftGraphToolkit": false,
    "extensibilityLibraryConfiguration": [
      {
        "name": "Default extensibility library",
        "enabled": true,
        "id": "dc4fbf99d015"
      }
    ],
    "useVerticals": false,
    "paging": {
      "itemsCountPerPage": 10,
      "pagingRange": 5,
      "showPaging": true,
      "hideDisabled": true,
      "hideFirstLastPages": false,
      "hideNavigation": false,
      "useNextLinks": false
    },
    "dataSourceKey": "SharePointSearch",
    "templateSlots": [
      {
        "slotName": "Title",
        "slotField": "Title"
      },
      {
        "slotName": "Path",
        "slotField": "DefaultEncodingURL"
      },
      {
        "slotName": "Summary",
        "slotField": "HitHighlightedSummary"
      },
      {
        "slotName": "FileType",
        "slotField": "FileType"
      },
      {
        "slotName": "PreviewImageUrl",
        "slotField": "AutoPreviewImageUrl"
      },
      {
        "slotName": "PreviewUrl",
        "slotField": "AutoPreviewUrl"
      },
      {
        "slotName": "Author",
        "slotField": "CreatedBy"
      },
      {
        "slotName": "Tags",
        "slotField": "owstaxidmetadataalltagsinfo"
      },
      {
        "slotName": "Date",
        "slotField": "Created"
      },
      {
        "slotName": "SiteId",
        "slotField": "NormSiteID"
      },
      {
        "slotName": "ListId",
        "slotField": "NormListID"
      },
      {
        "slotName": "ItemId",
        "slotField": "NormUniqueID"
      },
      {
        "slotName": "IsFolder",
        "slotField": "ContentTypeId"
      },
      {
        "slotName": "PersonQuery",
        "slotField": "UserName"
      },
      {
        "slotName": "UserDisplayName",
        "slotField": "Title"
      },
      {
        "slotName": "UserEmail",
        "slotField": "UserName"
      }
    ],
    "useInputQueryText": true,
    "queryText": {
      "__type": "DynamicProperty",
      "reference": {
        "_reference": "WebPart.544c1372-7e5a-49ec-8db6-812f76c375f2.b27f46d6-39b2-4daf-ab7e-0a9e4d32ce0a:pnpSearchBoxWebPart",
        "_sourceId": "WebPart.544c1372-7e5a-49ec-8db6-812f76c375f2.b27f46d6-39b2-4daf-ab7e-0a9e4d32ce0a",
        "_property": "pnpSearchBoxWebPart"
      }
    },
    "filtersData": {
      "__type": "DynamicProperty",
      "value": {}
    }
  },
  "filters": {
    "selectedFilters": [],
    "filtersConfiguration": []
  },
  "inputQueryText": "bi",
  "slots": {
    "Title": "Title",
    "Path": "DefaultEncodingURL",
    "Summary": "HitHighlightedSummary",
    "FileType": "FileType",
    "PreviewImageUrl": "AutoPreviewImageUrl",
    "PreviewUrl": "AutoPreviewUrl",
    "Author": "CreatedBy",
    "Tags": "owstaxidmetadataalltagsinfo",
    "Date": "Created",
    "SiteId": "NormSiteID",
    "ListId": "NormListID",
    "ItemId": "NormUniqueID",
    "IsFolder": "ContentTypeId",
    "PersonQuery": "UserName",
    "UserDisplayName": "Title",
    "UserEmail": "UserName"
  },
  "context": {
    "site": {
      "absoluteUrl": "https://site.sharepoint.com/sites/site",
      "cdnPrefix": "statica.akamai.odsp.cdn.office.net/bld",
      "classification": "",
      "correlationId": {
        "_guid": "a98fb79f-1deed2a6896d"
      },
      "id": {
        "_guid": "54e2d60e-8b0e13b94234"
      },
      "isNoScriptEnabled": true,
      "recycleBinItemCount": -1,
      "serverRelativeUrl": "/sites/site",
      "serverRequestPath": "/sites/site/SitePages/Search.aspx",
      "sitePagesEnabled": true,
      "sitePagesFeatureVersion": 10
    },
    "web": {
      "absoluteUrl": "https://site.sharepoint.com/sites/site",
      "id": {
        "_guid": "3ad7a023-b52b-4619-9cd9-118b481d9fff"
      },
      "isAppWeb": false,
      "language": 1033,
      "languageName": "en-US",
      "logoUrl": "https://site.sharepoint.com/sites/site/SiteAssets/Orange.png",
      "permissions": {
        "_value": {
          "High": 2147483647,
          "Low": 4294967295
        }
      },
      "timeZoneInfo": {
        "daylightDate": {
          "Year": 0,
          "Month": 3,
          "DayOfWeek": 0,
          "Day": 2,
          "Hour": 2,
          "Minute": 0,
          "Second": 0,
          "Milliseconds": 0
        },
        "daylightOffset": -60,
        "description": "(UTC-08:00) Pacific Time (US and Canada)",
        "id": 13,
        "offset": 480,
        "standardDate": {
          "Year": 0,
          "Month": 11,
          "DayOfWeek": 0,
          "Day": 1,
          "Hour": 2,
          "Minute": 0,
          "Second": 0,
          "Milliseconds": 0
        },
        "standardOffset": 0
      },
      "serverRelativeUrl": "/sites/site",
      "templateName": "68",
      "title": "Fetch",
      "description": ""
    },
    "list": {
      "id": {
        "_guid": "398ed43b-4aee-4e7c-ad01-dba7d9e54048"
      },
      "permissions": {
        "_value": {
          "High": 2147483647,
          "Low": 4294967295
        }
      },
      "serverRelativeUrl": "/sites/site/SitePages",
      "title": "Site Pages"
    },
    "user": {
      "displayName": 
      "email": 
      "isAnonymousGuestUser": false,
      "isExternalGuestUser": false,
      "loginName": 
      "preferUserTimeZone": false
    },
    "cultureInfo": {
      "currentCultureName": "en-US",
      "currentUICultureName": "en-US",
      "isRightToLeft": false
    },
    "listItem": {
      "id": 319,
      "uniqueId": "ac430f02-6170c16aa"
    }
  },
  "instanceId": "a4f6e346eb",
  "utils": {
    "defaultImage": "data:image/png;base64,///+5ubnw8PDa2tq+//++/+/+TMiVReViQa1HyHWKS+P3A0vHVfJI1Q7vt0bGVcXzFZvvxDqTuOi4uo3rnHPVU+/+nexw9kzX"
  }
}
wobba commented 3 years ago

Can you retest with v4.1?

Pbear74 commented 3 years ago

Hi Michael, I figured out the problem and it had nothing to do with the web part. 🤦‍♂️ It was my query text that was problem, sorry for the false alarm.