Set-TssConfigurationSearchIndex
SYNOPSIS
Set the secret search indexer configuration
SYNTAX
Set-TssConfigurationSearchIndex [-TssSession] <Session> [-DaysToKeepLogs <Int32>] [-Enabled]
[-IndexingSeparators <String[]>] [-IndexMode <String>] [-PreferFullTextWhenAvailable]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Updates the secret search indexer settings and returns the indexer configuration. Only the parameters you pass are changed. Rebuild the index with Start-TssConfigurationSearchIndex.
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Set-TssConfigurationSearchIndex -TssSession $session -IndexMode Extended -DaysToKeepLogs 14
Switches the indexer to extended mode and keeps its logs for 14 days
PARAMETERS
-TssSession
TssSession object created by New-TssSession for authentication
Type: Session
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-DaysToKeepLogs
Days to keep the indexer logs
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-Enabled
Enable the secret search indexer. Use -Enabled:$false to disable it
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-IndexingSeparators
Characters that split field values into search terms
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IndexMode
Index mode
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PreferFullTextWhenAvailable
Prefer SQL Server full-text search when it is available
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
Thycotic.PowerShell.Configuration.SearchIndexer
NOTES
Requires TssSession object returned by New-TssSession