external help file: SitecoreInstallFramework-help.xml
online version:
schema: 2.0.0
---
Manages changes to the schema of an existing Solr core.
Invoke-ManageSolrSchemaTask -Address <String> -Core <String> -Arguments <PSObject> [-RetryCount <Int32>]
[-RetryDelay <Int32>] [-RequestTimeout <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
Invoke-ManageSolrSchemaTask -Address <String> -Core <String> -ArgumentsFile <String> [-RetryCount <Int32>]
[-RetryDelay <Int32>] [-RequestTimeout <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
Modifies the schema of an existing Solr core by using the Solr schema API.
For more information on the arguments that can be used, see the Solr documentation: https://cwiki.apache.org/confluence/display/solr/Schema+API
PS C:\> Invoke-ManageSolrSchemaTask -Address "http://localhost:8983:/solr" -Core sitecore_master_index -Arguments @{
'replace-dynamic-field' = @(
@{
name: '*_s',
type: 'lowercase',
stored: $false,
indexed: $true
}
)
}
Replaces the dynamic field *_s
with new properties
PS C:\> Invoke-ManageSolrSchemaTask -Address "http://localhost:8983:/solr" -Core sitecore_master_index -ArgumentsFile c:\schema.json
Invokes the command using with arguments sources from the file c:\schema.json
The address of the Solr instance.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The parameters to pass to Solr.
Type: PSObject
Parameter Sets: Args
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The path to the file containing schema arguments.
Type: String
Parameter Sets: ArgsFile
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the core that will be modified.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{Fill RequestTimeout Description}}
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{Fill RetryCount Description}}
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{Fill RetryDelay Description}}
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).