View solr75-install.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
$solrVersion = "7.5.0", | |
$installFolder = "c:\solr\solr75", | |
$solrPort = "8985", | |
$solrHost = "solr", | |
$solrSSL = $true, | |
$nssmVersion = "2.24", | |
$JREVersion = "1.8.0_111", | |
$solrInstanceName ="solr75" | |
) |
View MediaIndexing-OOB-Sitecore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mediaIndexing hint="skip"> | |
<mimeTypes> | |
<excludes> | |
<mimeType>*</mimeType> | |
</excludes> | |
<includes> | |
<!--<mimeType>application/pdf</mimeType> | |
<mimeType type="Sitecore.ContentSearch.ComputedFields.MediaItemHtmlTextExtractor, Sitecore.ContentSearch">text/html</mimeType> | |
<mimeType>text/plain</mimeType>--> | |
</includes> |
View Cleanup-MediaIndexing.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:env="http://www.sitecore.net/xmlconfig/env/"> | |
<sitecore> | |
<scheduling> | |
<agent type="Sitecore.Tasks.CleanupAgent" method="Run" interval="24:00:00" > | |
<files hint="raw:AddCommand"> | |
<!-- There might be other agents for logs folder cleanup --> | |
<remove folder="$(dataFolder)/mediaIndexing" pattern="*.*" maxAge="30.00:00:00" role:require="ContentManagement"/> | |
</files> | |
</agent> | |
</scheduling> |
View Sitecore-Admin-Password-Reset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE [dbo].[aspnet_Membership] | |
SET password = '/b3f7qAl0GBqlrf0t+pgTHD6vVE=' | |
,[PasswordSalt] = 'HGAgN+MeKpFyKqGHNggbUg==' | |
WHERE userid = '<GUID of admin user>' | |
GO |
View SQL-Query-Table-Size-With-RecordsNumber.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
o.name as [table_name], | |
sum(p.reserved_page_count) * 8.0 / 1024 / 1024 [size_in_gb], | |
p.row_count as [recrods] | |
from | |
sys.dm_db_partition_stats AS p, | |
sys.objects AS o | |
Where | |
p.object_id=o.object_id | |
and o.is_ms_shipped=0 |
View ConfigureSitecore.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------------------------------------------------------------------------------------------------------------------- | |
// <copyright file="ConfigureSitecore.cs" company="Sitecore Corporation"> | |
// Copyright (c) Sitecore Corporation 1999-2017 | |
// </copyright> | |
// -------------------------------------------------------------------------------------------------------------------- | |
namespace POC.Localization | |
{ | |
using System.Reflection; | |
using Plugin.Localization.Pipelines.Blocks; |
View ConfigureServiceApiBlock.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------------------------------------------------------------------------------------------------------------------- | |
// <copyright file="ConfigureServiceApiBlock.cs" company="Sitecore Corporation"> | |
// Copyright (c) Sitecore Corporation 1999-2017 | |
// </copyright> | |
// -------------------------------------------------------------------------------------------------------------------- | |
namespace POC.Localization | |
{ | |
using System.Threading.Tasks; |
View LocalizeCatalogItemsPipeline.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using POC.Localization.Pipelines.Arguments; | |
using Microsoft.Extensions.Logging; | |
using Sitecore.Commerce.Core; | |
using Sitecore.Framework.Pipelines; | |
namespace POC.Localization.Pipelines | |
{ | |
public class LocalizeCatalogItemsPipeline : CommercePipeline<LocalizationPipelineArgument, string>, ILocalizeCatalogItemsPipeline | |
{ |
View LocalizeCategory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using POC.Localization.Pipelines.Arguments; | |
using Microsoft.Extensions.Logging; | |
using Sitecore.Commerce.Core; | |
using Sitecore.Commerce.Core.Commands; | |
using Sitecore.Commerce.Plugin.BusinessUsers; | |
using Sitecore.Commerce.Plugin.Catalog; | |
using Sitecore.Commerce.Plugin.EntityVersions; | |
using Sitecore.Framework.Pipelines; | |
using System; |
View LocalizationPipelineArgument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sitecore.Commerce.Core; | |
using Sitecore.Commerce.Plugin.Catalog; | |
using Sitecore.Framework.Conditions; | |
using System.Collections.Generic; | |
namespace POC.Localization.Pipelines.Arguments | |
{ | |
public class LocalizationPipelineArgument: PipelineArgument | |
{ |
NewerOlder