From 2a655cda6b7ade5bb1aebbc2c2fac9f5bc2d92cd Mon Sep 17 00:00:00 2001 From: Gabriel Smoljar Date: Wed, 29 Nov 2023 12:07:44 +0100 Subject: [PATCH] Fix typo SPSiteURL managed property --- docs/usage/search-results/data-sources/sharepoint-search.md | 2 +- docs/v3/search-parts/search-results.md | 2 +- search-parts/src/layouts/resultTypes/default_cards.html | 2 +- search-parts/src/layouts/results/cards/CardsLayout.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/usage/search-results/data-sources/sharepoint-search.md b/docs/usage/search-results/data-sources/sharepoint-search.md index fe3586078..576baa5aa 100644 --- a/docs/usage/search-results/data-sources/sharepoint-search.md +++ b/docs/usage/search-results/data-sources/sharepoint-search.md @@ -9,7 +9,7 @@ The _'SharePoint Search'_ data source retrieve items from the SharePoint search | **Query text** | The input query text to pass to the search engine. This setting is not configurable directly in the data source options. To enable it, go to the third configuration page of the Web Part and select either a static or dynamic value (Ex: from a connected search box Web Part). See [the connection documentation](../../search-results/connections/index.md) for more information on how to configure this option. This value can be then used in the **Query template** using the `{searchTerms}` token. Also this value can be a [Keyword Query Language expression (KQL)](https://docs.microsoft.com/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference). | None. | **Query template** | The search query template to use. It allows you to use dynamic tokens according to the context or specify conditions that should always apply to the query. | `{searchTerms}` | **Result source ID** | Can be either a built-in result source ID listed in the dropdown, or a custom result source that you specify. Type the `GUID` of the result source, or the `SCOPE` and `NAME`, separated by `\|` (pipe character). For this to take effect, you must press _'Enter'_ to save the value. Valid scopes are `SPSiteSubscription`, `SPSite`, `SPWeb`. Examples: | LocalSharePointResults -| **Selected properties** | The SharePoint managed properties to retrieve from the results. They can be used with the same name in layouts and slots afterwards.

To add other managed properties to the list, clear out the dropdown list field and manually type or paste the name of your managed property and press ENTER. This will add it to the list of selected properties in the query. Pasting a comma separated list of property names also work. You can validate the property is working by using the [Debug](../layouts/#debug) layout. If a list of properties is not shown, enter manually.| +| **Selected properties** | The SharePoint managed properties to retrieve from the results. They can be used with the same name in layouts and slots afterwards.

To add other managed properties to the list, clear out the dropdown list field and manually type or paste the name of your managed property and press ENTER. This will add it to the list of selected properties in the query. Pasting a comma separated list of property names also work. You can validate the property is working by using the [Debug](../layouts/#debug) layout. If a list of properties is not shown, enter manually.| | **Sort settings** | Configure the sort settings of the data source. Properties listed in the dropdown are all static properties marked as _'Sortable'_ in the [SharePoint search schema](https://docs.microsoft.com/sharepoint/technical-reference/). However, it does not list all possible _RefinableXXX_ or aliases fields. To use them, you must enter the value manually and press 'Enter' to validate. For a particular field, you can define if it should be used for initial sort (i.e. when the results are loaded for the first time) or be only available for users in the sort control (i.e. after the results are loaded). **The sort control does not consider default sort fields (i.e. select them by default) and you can only sort on a single field at a time according the fields you defined**. If no user sort fields are defined in the configuration, the sort control won't be displayed. | None. | **Refinement filters** | The initial refinement filters to apply to the query. Filters has to be written using FQL ([Fast Query Language](https://docs.microsoft.com/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference)) (e.g. `FileType:equals("docx")`). They will be applied every time to the current search query regardless selected filters from connected Web Parts. Note: for string expressions, use `"` instead of `'`. | None. | **Language of the search request** | The language to use for the search request. By default the search request will be made using the current user interface language. This parameter is mainly used to process diacritics, plurals, etc. correctly according to the language. | Current UI language. diff --git a/docs/v3/search-parts/search-results.md b/docs/v3/search-parts/search-results.md index a9d2dc9b5..4e0cc8c21 100644 --- a/docs/v3/search-parts/search-results.md +++ b/docs/v3/search-parts/search-results.md @@ -25,7 +25,7 @@ Connect to a search refiners Web Part | If enable, select the search refiners We Connect to a search verticals Web Part | If enable, select the search verticals Web Part to connect to. Enable Query Rules | Enable the query rules if applies. Turn this options 'on' to display your SharePoint Promoted results (links only) and make result blocks available to custom renderers. Include OneDrive results | Include OneDrive results if applicable. Turn this option 'on' to make users' personal OneDrive results available to custom renderers. Read more [here](https://docs.microsoft.com/en-us/sharepoint/support/search/private-onedrive-results-not-included). -Selected properties | The search managed properties to retrieve. You can select them from a predefined list or add them as free text if not listed. Then, these properties are available in your Handlebars template with the syntax (`item.property_name` or `property_name` inside the `{{#each}}` loop). The Web Part needs the following managed properties to get it work (`"Title,Path,Filename,SiteLogo,PreviewUrl,PictureThumbnailURL,ServerRedirectedPreviewURL,ServerRedirectedURL,HitHighlightedSummary,FileType,ServerRedirectedEmbedURL,ParentLink,owstaxidmetadataalltagsinfo,SPSiteUrl,SiteTitle,IsContainer,IsListItem,HtmlFileType,SiteId,WebId,UniqueID,OriginalPath,FileExtension,NormSiteID,NormListID,NormUniqueID,Created,contentclass,DefaultEncodingURL,Author,AuthorOWSUSER"`). **It you remove them, they will be re-added automatically on the next page refresh**. +Selected properties | The search managed properties to retrieve. You can select them from a predefined list or add them as free text if not listed. Then, these properties are available in your Handlebars template with the syntax (`item.property_name` or `property_name` inside the `{{#each}}` loop). The Web Part needs the following managed properties to get it work (`"Title,Path,Filename,SiteLogo,PreviewUrl,PictureThumbnailURL,ServerRedirectedPreviewURL,ServerRedirectedURL,HitHighlightedSummary,FileType,ServerRedirectedEmbedURL,ParentLink,owstaxidmetadataalltagsinfo,SPSiteURL,SiteTitle,IsContainer,IsListItem,HtmlFileType,SiteId,WebId,UniqueID,OriginalPath,FileExtension,NormSiteID,NormListID,NormUniqueID,Created,contentclass,DefaultEncodingURL,Author,AuthorOWSUSER"`). **It you remove them, they will be re-added automatically on the next page refresh**. Refinement filters | The default refinement filters to apply to the query. Unlike URL `filters` params, these won't select the default values in the Search Filters WP if connected. Enable taxonomy values localization for refiners and results | If set, the Web Part will try to translate the taxonomy term IDs to their corresponding label according to the curent UI language. Refer to the [Taxonomy values dynamic translation](#) section of this page. Language of search request | The language to use for the search request. By default the search request will be made using the current UI language. diff --git a/search-parts/src/layouts/resultTypes/default_cards.html b/search-parts/src/layouts/resultTypes/default_cards.html index 816e50196..bf9ee558d 100644 --- a/search-parts/src/layouts/resultTypes/default_cards.html +++ b/search-parts/src/layouts/resultTypes/default_cards.html @@ -2,7 +2,7 @@ /* Insert your CSS here */ - diff --git a/search-parts/src/layouts/results/cards/CardsLayout.ts b/search-parts/src/layouts/results/cards/CardsLayout.ts index cdaf10185..6004bee98 100644 --- a/search-parts/src/layouts/results/cards/CardsLayout.ts +++ b/search-parts/src/layouts/results/cards/CardsLayout.ts @@ -55,7 +55,7 @@ export class CardsLayout extends BaseLayout { this.properties.documentCardFields = this.properties.documentCardFields ? this.properties.documentCardFields : [ { name: strings.Layouts.Cards.Fields.Title, field: 'title', value: '{{slot item @root.slots.Title}}', useHandlebarsExpr: true, supportHtml: false }, - { name: strings.Layouts.Cards.Fields.Location, field: 'location', value: `{{SiteTitle}}`, useHandlebarsExpr: true, supportHtml: true }, + { name: strings.Layouts.Cards.Fields.Location, field: 'location', value: `{{SiteTitle}}`, useHandlebarsExpr: true, supportHtml: true }, { name: strings.Layouts.Cards.Fields.Tags, field: 'tags', value: `\n\n{{#if (slot item @root.slots.Tags)}}\n\t
\n\t\t\n\t\t
\n\t\t\t{{#each (split (slot item @root.slots.Tags) ",") as |tag| }}\n\t\t\t\t{{trim tag}}\n\t\t\t{{/each}}\n\t\t
\n\t
\n{{/if}}`, useHandlebarsExpr: true, supportHtml: true }, { name: strings.Layouts.Cards.Fields.PreviewImage, field: 'previewImage', value: "{{slot item @root.slots.PreviewImageUrl}}", useHandlebarsExpr: true, supportHtml: false }, { name: strings.Layouts.Cards.Fields.PreviewUrl, field: 'previewUrl' , value: "{{slot item @root.slots.PreviewUrl}}", useHandlebarsExpr: true, supportHtml: false },