From d2e2180a57042cf1cd902013b50714b5e7e323c1 Mon Sep 17 00:00:00 2001 From: Mikael Svenson Date: Sat, 26 Mar 2022 17:44:41 +0100 Subject: [PATCH 01/10] Refactor and support paging --- src/Commands/Search/GetSearchConfiguration.cs | 113 +++++++++++------- 1 file changed, 70 insertions(+), 43 deletions(-) diff --git a/src/Commands/Search/GetSearchConfiguration.cs b/src/Commands/Search/GetSearchConfiguration.cs index 34e986c66..db9f167d0 100644 --- a/src/Commands/Search/GetSearchConfiguration.cs +++ b/src/Commands/Search/GetSearchConfiguration.cs @@ -54,60 +54,73 @@ protected override void ExecuteCmdlet() { string output = string.Empty; - switch (Scope) + if (!PromotedResultsToBookmarkCSV.IsPresent) { - case SearchConfigurationScope.Web: - { - if (PromotedResultsToBookmarkCSV.IsPresent) - { - output = RestHelper.ExecuteGetRequest(ClientContext, "searchsetting/getpromotedresultqueryrules"); - } - else + switch (Scope) + { + case SearchConfigurationScope.Web: { + output = CurrentWeb.GetSearchConfiguration(); + + break; } - break; - } - case SearchConfigurationScope.Site: - { - if (PromotedResultsToBookmarkCSV.IsPresent) - { - output = RestHelper.ExecuteGetRequest(ClientContext, "searchsetting/getpromotedresultqueryrules?sitecollectionlevel=true"); - } - else + case SearchConfigurationScope.Site: { + output = ClientContext.Site.GetSearchConfiguration(); - } - break; - } - case SearchConfigurationScope.Subscription: - { - if (!ClientContext.Url.ToLower().Contains("-admin")) - { - throw new InvalidOperationException(Resources.CurrentSiteIsNoTenantAdminSite); - } - if (PromotedResultsToBookmarkCSV.IsPresent) - { - output = RestHelper.ExecuteGetRequest(ClientContext, "searchsetting/getpromotedresultqueryrules"); + break; } - else + case SearchConfigurationScope.Subscription: { + if (!ClientContext.Url.ToLower().Contains("-admin")) + { + throw new InvalidOperationException(Resources.CurrentSiteIsNoTenantAdminSite); + } + SearchObjectOwner owningScope = new SearchObjectOwner(ClientContext, SearchObjectLevel.SPSiteSubscription); var config = new SearchConfigurationPortability(ClientContext); ClientResult configuration = config.ExportSearchConfiguration(owningScope); ClientContext.ExecuteQueryRetry(); output = configuration.Value; } - } - break; + break; + } } - - if (PromotedResultsToBookmarkCSV.IsPresent) + else { - output = ConvertToCSV(output); - } + string promotedResultsBaseUrl = "searchsetting/getpromotedresultqueryrules?"; + if (Scope == SearchConfigurationScope.Site) + { + promotedResultsBaseUrl += "sitecollectionlevel=true&"; + } + int offset = 0; + const int numberOfRules = 50; + bool hasData; + List queryRuleResponses = new List(); + do + { + string runUrl = string.Format("{0}offset={1}&numberOfRules={2}", promotedResultsBaseUrl, offset, numberOfRules); + string response = RestHelper.ExecuteGetRequest(ClientContext, runUrl); + offset += numberOfRules; + var config = JsonSerializer.Deserialize(response); + hasData = config.Result != null && config.Result.Count > 0; + if(hasData) queryRuleResponses.Add(response); + } while (hasData); + + List bookmarks = new List(200); + foreach (var response in queryRuleResponses) + { + var result = PromotedResultsToBookmarks(response); + if (result != null && result.Count > 0) + { + bookmarks.AddRange(result); + } + } + output = BookmarksToString(bookmarks); + } if (Path != null) { @@ -144,7 +157,7 @@ protected override void ExecuteCmdlet() } } - private string ConvertToCSV(string json) + private List PromotedResultsToBookmarks(string json) { var bookmarks = new List(); var config = JsonSerializer.Deserialize(json); @@ -152,11 +165,16 @@ private string ConvertToCSV(string json) { foreach (var rule in config.Result) { - //if (!rule.IsPromotedResultsOnly) continue; - if (rule.QueryConditions == null || rule.PromotedResults == null) continue; + if (rule.QueryConditions == null || rule.PromotedResults == null) + { + continue; + } foreach (var promoResult in rule.PromotedResults) { - if (promoResult.IsVisual) continue; + if (promoResult.IsVisual) + { + continue; + } dynamic bookmark = new ExpandoObject(); bookmark.Title = promoResult.Title.Contains(" ") ? '"' + promoResult.Title + '"' : promoResult.Title; bookmark.Url = promoResult.Url; @@ -164,8 +182,10 @@ private string ConvertToCSV(string json) bool matchSimilar = false; foreach (var condition in rule.QueryConditions) { - if (condition.Terms == null) continue; - if (condition.QueryConditionType != "Keyword") continue; + if (condition.Terms == null || condition.QueryConditionType != "Keyword") + { + continue; + } if (condition.MatchingOptions.Contains("ProperPrefix") || condition.MatchingOptions.Contains("ProperSuffix")) { @@ -177,7 +197,10 @@ private string ConvertToCSV(string json) triggerTerms.AddRange(term.Split(';').Select(s => s.Replace("Keywords:", "").Trim()).ToList()); } } - if (triggerTerms.Count == 0) continue; + if (triggerTerms.Count == 0) + { + continue; + } var dict = bookmark as IDictionary; @@ -201,7 +224,11 @@ private string ConvertToCSV(string json) } } } + return bookmarks; + } + private static string BookmarksToString(List bookmarks) + { StringBuilder sb = new StringBuilder(); bool firstLine = true; foreach (var bookmark in bookmarks) From b39113d816dc21858454c7e3e27b4a76774cce41 Mon Sep 17 00:00:00 2001 From: Mikael Svenson Date: Tue, 29 Mar 2022 20:03:01 +0200 Subject: [PATCH 02/10] Added warning output for skipped promoted results --- src/Commands/Search/GetSearchConfiguration.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Commands/Search/GetSearchConfiguration.cs b/src/Commands/Search/GetSearchConfiguration.cs index db9f167d0..da3526c46 100644 --- a/src/Commands/Search/GetSearchConfiguration.cs +++ b/src/Commands/Search/GetSearchConfiguration.cs @@ -171,19 +171,23 @@ private List PromotedResultsToBookmarks(string json) } foreach (var promoResult in rule.PromotedResults) { + dynamic bookmark = new ExpandoObject(); + bookmark.Title = promoResult.Title.Contains(" ") ? '"' + promoResult.Title + '"' : promoResult.Title; + bookmark.Url = promoResult.Url; + if (promoResult.IsVisual) { + WriteWarning($"Skipping visual promoted result {bookmark.Title} ({bookmark.Url})"); continue; } - dynamic bookmark = new ExpandoObject(); - bookmark.Title = promoResult.Title.Contains(" ") ? '"' + promoResult.Title + '"' : promoResult.Title; - bookmark.Url = promoResult.Url; + List triggerTerms = new List(); bool matchSimilar = false; foreach (var condition in rule.QueryConditions) { if (condition.Terms == null || condition.QueryConditionType != "Keyword") { + WriteWarning($"Skipping {bookmark.Title} due to no trigger conditions"); continue; } @@ -199,6 +203,7 @@ private List PromotedResultsToBookmarks(string json) } if (triggerTerms.Count == 0) { + WriteWarning($"Skipping {bookmark.Title} due to no trigger terms"); continue; } From 2c079557112f8380bdcfcade607bc5aa1b0ccf50 Mon Sep 17 00:00:00 2001 From: Mikael Svenson Date: Wed, 6 Apr 2022 12:43:33 +0200 Subject: [PATCH 03/10] Add ExcludeVisualPromotedResults parameter --- src/Commands/Search/GetSearchConfiguration.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Commands/Search/GetSearchConfiguration.cs b/src/Commands/Search/GetSearchConfiguration.cs index da3526c46..afb9c25b9 100644 --- a/src/Commands/Search/GetSearchConfiguration.cs +++ b/src/Commands/Search/GetSearchConfiguration.cs @@ -50,6 +50,9 @@ public class GetSearchConfiguration : PnPWebCmdlet [Parameter(Mandatory = false, ParameterSetName = "CSV")] public BookmarkStatus BookmarkStatus = BookmarkStatus.Suggested; + [Parameter(Mandatory = false, ParameterSetName = "CSV")] + public bool ExcludeVisualPromotedResults = true; + protected override void ExecuteCmdlet() { string output = string.Empty; @@ -175,7 +178,7 @@ private List PromotedResultsToBookmarks(string json) bookmark.Title = promoResult.Title.Contains(" ") ? '"' + promoResult.Title + '"' : promoResult.Title; bookmark.Url = promoResult.Url; - if (promoResult.IsVisual) + if (promoResult.IsVisual && ExcludeVisualPromotedResults) { WriteWarning($"Skipping visual promoted result {bookmark.Title} ({bookmark.Url})"); continue; From acd12ccd57c7ecb11b6b7eb0f504207cc68481f4 Mon Sep 17 00:00:00 2001 From: Mikael Svenson Date: Wed, 6 Apr 2022 12:43:56 +0200 Subject: [PATCH 04/10] Update documentation --- documentation/Get-PnPSearchConfiguration.md | 37 ++++++++++++++------- 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/documentation/Get-PnPSearchConfiguration.md b/documentation/Get-PnPSearchConfiguration.md index 4ce451c6c..532b235ee 100644 --- a/documentation/Get-PnPSearchConfiguration.md +++ b/documentation/Get-PnPSearchConfiguration.md @@ -28,7 +28,7 @@ Get-PnPSearchConfiguration [-Scope ] [-OutputFormat ] [-PromotedResultsToBookmarkCSV] [-BookmarkStatus ] [-Path ] +Get-PnPSearchConfiguration [-Scope ] [-PromotedResultsToBookmarkCSV] [-ExcludeVisualPromotedResults ] [-BookmarkStatus ] [-Path ] [-Connection ] [] ``` @@ -42,56 +42,56 @@ Get-PnPSearchConfiguration [-Scope ] [-PromotedResults Get-PnPSearchConfiguration ``` -Returns the search configuration for the current web +Returns the search configuration for the current web. ### EXAMPLE 2 ```powershell Get-PnPSearchConfiguration -Scope Site ``` -Returns the search configuration for the current site collection +Returns the search configuration for the current site collection. ### EXAMPLE 3 ```powershell Get-PnPSearchConfiguration -Scope Subscription ``` -Returns the search configuration for the current tenant +Returns the search configuration for the current tenant. ### EXAMPLE 4 ```powershell Get-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription ``` -Returns the search configuration for the current tenant and saves it to the specified file +Returns the search configuration for the current tenant and saves it to the specified file. ### EXAMPLE 5 ```powershell Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings ``` -Returns all custom managed properties and crawled property mapping at the current site collection +Returns all custom managed properties and crawled property mapping at the current site collection. ### EXAMPLE 6 ```powershell Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv ``` -Export promoted results from query rules on the site collection as a CSV file with the bookmarks in suggested status +Export promoted results excluding visual ones from query rules on the site collection as a CSV file with the bookmarks in suggested status. ### EXAMPLE 7 ```powershell Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv -BookmarkStatus Published ``` -Export promoted results from query rules on the site collection as a CSV file with the bookmarks in published status +Export promoted results excluding visual from query rules on the site collection as a CSV file with the bookmarks in published status. ### EXAMPLE 8 ```powershell -Get-PnPSearchConfiguration -Scope Subscription -PromotedResultsToBookmarkCSV +Get-PnPSearchConfiguration -Scope Subscription -PromotedResultsToBookmarkCSV -ExcludeVisualPromotedResults $false ``` -Export promoted results from query rules on the tenant in CSV format with the bookmarks in suggested status. +Export promoted results including visual ones from query rules on the tenant in CSV format with the bookmarks in suggested status. ## PARAMETERS @@ -158,9 +158,9 @@ Output promoted results to a compatible CSV file to be used as Bookmark import a Export details: -* Promoted results marked as "Render the URL as a banner instead of as a hyperlink" and query rules with no triggers will be skipped. +* Promoted results marked as "Render the URL as a banner instead of as a hyperlink" (visual promoted results) and query rules with no triggers will be skipped by default. * Triggers set to "Advanced Query Text Match" and "Query Contains Action Term" will have "Match Similar Keywords" set to true for the Bookmark. -* Multiple triggers on a query rule will be merged into one. +* Multiple triggers on a query rule will be merged into a single trigger. ```yaml Type: SwitchParameter @@ -173,6 +173,19 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ExcludeVisualPromotedResults +Exclude promoted results marked as "Render the URL as a banner instead of as a hyperlink". Defaults to true. + +```yaml +Type: Boolean +Parameter Sets: CSV + +Required: False +Position: Named +Default value: True +Accept pipeline input: False +Accept wildcard characters: False + ### -BookmarkStatus Output bookmarks to be in suggested or published status upon CSV import. Defaults to suggested status. From c09d5f44bc79cce6953ac7acb32f2a1d774b13b3 Mon Sep 17 00:00:00 2001 From: Mikael Svenson Date: Thu, 7 Apr 2022 13:14:58 +0200 Subject: [PATCH 05/10] Change value --- documentation/Get-PnPSearchConfiguration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/Get-PnPSearchConfiguration.md b/documentation/Get-PnPSearchConfiguration.md index 532b235ee..105b995e9 100644 --- a/documentation/Get-PnPSearchConfiguration.md +++ b/documentation/Get-PnPSearchConfiguration.md @@ -182,7 +182,7 @@ Parameter Sets: CSV Required: False Position: Named -Default value: True +Default value: None Accept pipeline input: False Accept wildcard characters: False From fa726807ba90640e93256c9d06e2974b30f235d9 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Thu, 7 Apr 2022 16:01:18 +0200 Subject: [PATCH 06/10] Update Get-PnPSearchConfiguration.md --- documentation/Get-PnPSearchConfiguration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/Get-PnPSearchConfiguration.md b/documentation/Get-PnPSearchConfiguration.md index 105b995e9..1e6797a77 100644 --- a/documentation/Get-PnPSearchConfiguration.md +++ b/documentation/Get-PnPSearchConfiguration.md @@ -158,9 +158,9 @@ Output promoted results to a compatible CSV file to be used as Bookmark import a Export details: -* Promoted results marked as "Render the URL as a banner instead of as a hyperlink" (visual promoted results) and query rules with no triggers will be skipped by default. -* Triggers set to "Advanced Query Text Match" and "Query Contains Action Term" will have "Match Similar Keywords" set to true for the Bookmark. -* Multiple triggers on a query rule will be merged into a single trigger. +- Promoted results marked as "Render the URL as a banner instead of as a hyperlink" (visual promoted results) and query rules with no triggers will be skipped by default. +- Triggers set to "Advanced Query Text Match" and "Query Contains Action Term" will have "Match Similar Keywords" set to true for the Bookmark. +- Multiple triggers on a query rule will be merged into a single trigger. ```yaml Type: SwitchParameter From 0f1550df47a9217a6dffb64f4bdc09393e75cce4 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Thu, 7 Apr 2022 16:05:42 +0200 Subject: [PATCH 07/10] Update Get-PnPSearchConfiguration.md --- documentation/Get-PnPSearchConfiguration.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/documentation/Get-PnPSearchConfiguration.md b/documentation/Get-PnPSearchConfiguration.md index 1e6797a77..786ad76eb 100644 --- a/documentation/Get-PnPSearchConfiguration.md +++ b/documentation/Get-PnPSearchConfiguration.md @@ -158,14 +158,13 @@ Output promoted results to a compatible CSV file to be used as Bookmark import a Export details: -- Promoted results marked as "Render the URL as a banner instead of as a hyperlink" (visual promoted results) and query rules with no triggers will be skipped by default. -- Triggers set to "Advanced Query Text Match" and "Query Contains Action Term" will have "Match Similar Keywords" set to true for the Bookmark. -- Multiple triggers on a query rule will be merged into a single trigger. +* Promoted results marked as "Render the URL as a banner instead of as a hyperlink" (visual promoted results) and query rules with no triggers will be skipped by default. +* Triggers set to "Advanced Query Text Match" and "Query Contains Action Term" will have "Match Similar Keywords" set to true for the Bookmark. +* Multiple triggers on a query rule will be merged into a single trigger. ```yaml Type: SwitchParameter Parameter Sets: CSV - Required: False Position: Named Default value: None From e94c418b0c49814a7112415caad53f1ea0e973cf Mon Sep 17 00:00:00 2001 From: Mikael Svenson Date: Thu, 7 Apr 2022 16:09:25 +0200 Subject: [PATCH 08/10] Trying to find yaml build issue --- documentation/Get-PnPSearchConfiguration.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/documentation/Get-PnPSearchConfiguration.md b/documentation/Get-PnPSearchConfiguration.md index 1e6797a77..4764cd74d 100644 --- a/documentation/Get-PnPSearchConfiguration.md +++ b/documentation/Get-PnPSearchConfiguration.md @@ -173,19 +173,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ExcludeVisualPromotedResults -Exclude promoted results marked as "Render the URL as a banner instead of as a hyperlink". Defaults to true. - -```yaml -Type: Boolean -Parameter Sets: CSV - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False - ### -BookmarkStatus Output bookmarks to be in suggested or published status upon CSV import. Defaults to suggested status. @@ -204,4 +191,3 @@ Accept wildcard characters: False ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - From 591b7dc12b5afab4c25223c33a33b9942eabcca4 Mon Sep 17 00:00:00 2001 From: Mikael Svenson Date: Thu, 7 Apr 2022 16:12:04 +0200 Subject: [PATCH 09/10] Closing yaml section --- documentation/Get-PnPSearchConfiguration.md | 46 +++++++++++++++++---- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/documentation/Get-PnPSearchConfiguration.md b/documentation/Get-PnPSearchConfiguration.md index 69a24de2b..dd5301431 100644 --- a/documentation/Get-PnPSearchConfiguration.md +++ b/documentation/Get-PnPSearchConfiguration.md @@ -6,38 +6,42 @@ applicable: SharePoint Online external help file: PnP.PowerShell.dll-Help.xml online version: https://pnp.github.io/powershell/cmdlets/Get-PnPSearchConfiguration.html --- - + # Get-PnPSearchConfiguration ## SYNOPSIS + Returns the search configuration ## SYNTAX ### Xml (Default) + ```powershell -Get-PnPSearchConfiguration [-Scope ] [-Path ] +Get-PnPSearchConfiguration [-Scope ] [-Path ] [-Connection ] [] ``` ### OutputFormat + ```powershell Get-PnPSearchConfiguration [-Scope ] [-OutputFormat ] [-Connection ] [] ``` ### BookmarksCSV + ```powershell Get-PnPSearchConfiguration [-Scope ] [-PromotedResultsToBookmarkCSV] [-ExcludeVisualPromotedResults ] [-BookmarkStatus ] [-Path ] [-Connection ] [] ``` - ## DESCRIPTION ## EXAMPLES ### EXAMPLE 1 + ```powershell Get-PnPSearchConfiguration ``` @@ -45,6 +49,7 @@ Get-PnPSearchConfiguration Returns the search configuration for the current web. ### EXAMPLE 2 + ```powershell Get-PnPSearchConfiguration -Scope Site ``` @@ -52,6 +57,7 @@ Get-PnPSearchConfiguration -Scope Site Returns the search configuration for the current site collection. ### EXAMPLE 3 + ```powershell Get-PnPSearchConfiguration -Scope Subscription ``` @@ -59,6 +65,7 @@ Get-PnPSearchConfiguration -Scope Subscription Returns the search configuration for the current tenant. ### EXAMPLE 4 + ```powershell Get-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription ``` @@ -66,6 +73,7 @@ Get-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription Returns the search configuration for the current tenant and saves it to the specified file. ### EXAMPLE 5 + ```powershell Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings ``` @@ -73,6 +81,7 @@ Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings Returns all custom managed properties and crawled property mapping at the current site collection. ### EXAMPLE 6 + ```powershell Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv ``` @@ -80,6 +89,7 @@ Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookm Export promoted results excluding visual ones from query rules on the site collection as a CSV file with the bookmarks in suggested status. ### EXAMPLE 7 + ```powershell Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv -BookmarkStatus Published ``` @@ -87,6 +97,7 @@ Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookm Export promoted results excluding visual from query rules on the site collection as a CSV file with the bookmarks in published status. ### EXAMPLE 8 + ```powershell Get-PnPSearchConfiguration -Scope Subscription -PromotedResultsToBookmarkCSV -ExcludeVisualPromotedResults $false ``` @@ -96,6 +107,7 @@ Export promoted results including visual ones from query rules on the tenant in ## PARAMETERS ### -Connection + Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection. ```yaml @@ -110,6 +122,7 @@ Accept wildcard characters: False ``` ### -OutputFormat + Output format for of the configuration. Defaults to complete XML ```yaml @@ -125,6 +138,7 @@ Accept wildcard characters: False ``` ### -Path + Local path where the search configuration will be saved ```yaml @@ -139,6 +153,7 @@ Accept wildcard characters: False ``` ### -Scope + Scope to use. Either Web, Site, or Subscription. Defaults to Web ```yaml @@ -154,17 +169,19 @@ Accept wildcard characters: False ``` ### -PromotedResultsToBookmarkCSV + Output promoted results to a compatible CSV file to be used as Bookmark import at https://admin.microsoft.com/#/MicrosoftSearch/bookmarks. Export details: -* Promoted results marked as "Render the URL as a banner instead of as a hyperlink" (visual promoted results) and query rules with no triggers will be skipped by default. -* Triggers set to "Advanced Query Text Match" and "Query Contains Action Term" will have "Match Similar Keywords" set to true for the Bookmark. -* Multiple triggers on a query rule will be merged into a single trigger. +- Promoted results marked as "Render the URL as a banner instead of as a hyperlink" (visual promoted results) and query rules with no triggers will be skipped by default. +- Triggers set to "Advanced Query Text Match" and "Query Contains Action Term" will have "Match Similar Keywords" set to true for the Bookmark. +- Multiple triggers on a query rule will be merged into a single trigger. ```yaml Type: SwitchParameter Parameter Sets: CSV + Required: False Position: Named Default value: None @@ -172,6 +189,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ExcludeVisualPromotedResults + +Exclude promoted results marked as "Render the URL as a banner instead of as a hyperlink". Defaults to true. + +````yaml +Type: Boolean +Parameter Sets: CSV + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +```` + ### -BookmarkStatus Output bookmarks to be in suggested or published status upon CSV import. Defaults to suggested status. @@ -185,7 +217,7 @@ Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -``` +```` ## RELATED LINKS From 186b7ceded6436e3869317fbb6234e5197980d82 Mon Sep 17 00:00:00 2001 From: Mikael Svenson Date: Thu, 7 Apr 2022 16:15:34 +0200 Subject: [PATCH 10/10] Fixed ticks --- documentation/Get-PnPSearchConfiguration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/Get-PnPSearchConfiguration.md b/documentation/Get-PnPSearchConfiguration.md index dd5301431..0ef4fd7de 100644 --- a/documentation/Get-PnPSearchConfiguration.md +++ b/documentation/Get-PnPSearchConfiguration.md @@ -193,7 +193,7 @@ Accept wildcard characters: False Exclude promoted results marked as "Render the URL as a banner instead of as a hyperlink". Defaults to true. -````yaml +```yaml Type: Boolean Parameter Sets: CSV @@ -202,7 +202,7 @@ Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -```` +``` ### -BookmarkStatus Output bookmarks to be in suggested or published status upon CSV import. Defaults to suggested status. @@ -217,7 +217,7 @@ Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -```` +``` ## RELATED LINKS