Skip to content

Commit e186548

Browse files
committed
#1357 : Add option to change search index.
1 parent 70b0328 commit e186548

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

unicorn/SPE/Scripts/SPE/SPE/Reporting/Content Reports/Reports/Content Audit/Items with duplicate names.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,33 @@ SharedFields:
1111
- ID: "b1a94ff0-6897-47c0-9c51-aa6acb80b1f0"
1212
Hint: Script
1313
Value: |
14+
$indexOptions = @{}
15+
foreach($index in Get-SearchIndex) {
16+
$indexOptions[$index.Name] = $index.Name
17+
}
18+
19+
$index="sitecore_master_index";
20+
21+
$props = @{
22+
Parameters = @(
23+
@{Name="index"; Title="Choose the report index"; Options=$indexOptions; Tooltip="Only items in this index will be returned."}
24+
)
25+
Title = "Items with duplicate names"
26+
Icon = [regex]::Replace($PSScript.Appearance.Icon, "Office", "OfficeWhite", [System.Text.RegularExpressions.RegexOptions]::IgnoreCase)
27+
Description = "Choose the filtering criteria for the report."
28+
Width = 450
29+
Height = 300
30+
ShowHints = $true
31+
}
32+
33+
$result = Read-Variable @props
34+
35+
if($result -eq "cancel"){
36+
exit
37+
}
38+
1439
$props = @{
15-
Index = "sitecore_master_index"
40+
Index = $index
1641
Where = 'Paths.Contains(@0) Or Paths.Contains(@1)'
1742
WhereValues = [ID]::Parse("{0DE95AE4-41AB-4D01-9EB0-67441B7C2450}"), [ID]::Parse("{3D6658D8-A0BF-4E75-B3E2-D050FABCF4E1}")
1843
FacetOn = "Path"
@@ -70,4 +95,4 @@ Languages:
7095
Value: 20200303T025824Z
7196
- ID: "8cdc337e-a112-42fb-bbb4-4143751e123f"
7297
Hint: __Revision
73-
Value: "4aac4332-0692-4046-9aa7-598cae13b7f2"
98+
Value: "83699b9e-fb07-4c92-9c7e-2ff7de349182"

0 commit comments

Comments
 (0)