diff --git a/src/Orchard.Web/Modules/Orchard.Indexing/Commands/IndexingCommands.cs b/src/Orchard.Web/Modules/Orchard.Indexing/Commands/IndexingCommands.cs index e87d5e983..a6a886b45 100644 --- a/src/Orchard.Web/Modules/Orchard.Indexing/Commands/IndexingCommands.cs +++ b/src/Orchard.Web/Modules/Orchard.Indexing/Commands/IndexingCommands.cs @@ -31,7 +31,7 @@ namespace Orchard.Indexing.Commands { public string Query { get; set; } [OrchardSwitch] - public string ContentItemId { get; set; } + public string ContentItem { get; set; } [CommandName("index update")] [CommandHelp("index update [/IndexName:]\r\n\t" + "Updates the index with the specified , or the search index if not specified")] @@ -107,11 +107,11 @@ namespace Orchard.Indexing.Commands { } [CommandName("index refresh")] - [CommandHelp("index refresh /ContentItemId: \r\n\t" + "Refreshes the index for the specifed ")] + [CommandHelp("index refresh /ContentItem: \r\n\t" + "Refreshes the index for the specifed ")] [OrchardSwitches("ContentItem")] public string Refresh() { int contentItemId; - if ( !int.TryParse(ContentItemId, out contentItemId) ) { + if ( !int.TryParse(ContentItem, out contentItemId) ) { throw new OrchardException(T("Invalid content item id. Not an integer.")); } @@ -122,15 +122,15 @@ namespace Orchard.Indexing.Commands { } [CommandName("index delete")] - [CommandHelp("index delete /ContenItem:\r\n\t" + "Deletes the specifed from the index")] + [CommandHelp("index delete /ContentItem:\r\n\t" + "Deletes the specifed from the index")] [OrchardSwitches("ContentItem")] public string Delete() { - int contenItemId; - if(!int.TryParse(ContentItemId, out contenItemId)) { + int contentItemId; + if(!int.TryParse(ContentItem, out contentItemId)) { throw new OrchardException(T("Invalid content item id. Not an integer.")); } - var contentItem = _contentManager.Get(contenItemId); + var contentItem = _contentManager.Get(contentItemId); _indexingTaskManager.CreateDeleteIndexTask(contentItem); return "Content Item marked for deletion";