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 System.IO; | |
using Lucene.Net.Analysis; | |
using Lucene.Net.Analysis.NGram; | |
using Lucene.Net.Analysis.Standard; | |
using Lucene.Net.Util; | |
using Sitecore.Configuration; | |
namespace Sitecore.ContentSearch.LuceneProvider.Analyzers | |
{ | |
public class EdgeNgramAnalyzer : Lucene.Net.Analysis.Analyzer |
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 System; | |
using Sitecore.ContentSearch.ComputedFields; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
namespace Sitecore.ContentSearch.Search.ComputedFields | |
{ | |
public class AutoCompleteTitle : IComputedIndexField | |
{ | |
public object ComputeFieldValue(IIndexable indexable) |
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
public SearchResults<SearchResultItem> Search(ISearchIndex index, string searchQuery) | |
{ | |
using (var context = index.CreateSearchContext()) | |
{ | |
var dataQuery = context.GetQueryable<SearchResultItem>() | |
.Where(i => i["non_ngram_field"] == searchQuery); | |
return dataQuery.GetResults(context, CreateQuery(searchQuery)); | |
} | |
} |
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
#install client certificate for xconnect | |
$certParams = @{ | |
# EDIT: Remove "_client" from the CertificateName" | |
CertificateName = "$prefix.xconnect" | |
} | |
... | |
#deploy xconnect instance | |
$xconnectParams = |
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
function Invoke-NewSignedCertificateWindows81Task { | |
[CmdletBinding(SupportsShouldProcess=$true)] | |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$DnsName | |
) | |
Write-Host "DnsName: $DnsName" | |
$KeystoreFile = $DnsName + '.keystore.jks' |
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
{ | |
"Parameters": { | |
// ... | |
}, | |
"Variables": { | |
// ... | |
}, | |
"Tasks": { | |
// ... | |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Lucene.Net.Search; | |
using Sitecore.ContentSearch; | |
using Sitecore.ContentSearch.Linq; | |
using Sitecore.ContentSearch.Linq.Common; | |
using Sitecore.ContentSearch.Linq.Lucene; | |
using Sitecore.ContentSearch.Linq.Methods; | |
using Sitecore.ContentSearch.Linq.Parsing; |
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 System.Web; | |
using Foundation.DynamicPlaceholder.Pipelines.GetDynamicPlaceholderKeys; | |
using Sitecore.Data; | |
using Sitecore.Diagnostics; | |
using Sitecore.Mvc.Helpers; | |
using Sitecore.Mvc.Presentation; | |
namespace Foundation.DynamicPlaceholder.Helpers | |
{ | |
public static class SitecoreHelperExtension |
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 System.Text.RegularExpressions; | |
using Sitecore.Mvc.Pipelines.Response.GetDynamicPlaceholderInitialKey; | |
namespace Foundation.DynamicPlaceholder.Pipelines.GetDynamicPlaceholderInitialKey | |
{ | |
public class RemovePlaceholderUniqueKeySuffixWithCountOrId : RemovePlaceholderUniqueKeySuffix | |
{ | |
private static readonly Regex DynamicPartMatcherWithId = | |
new Regex("-{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}}-([0-9]+|{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}})$", RegexOptions.Compiled); |
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.Mvc.Pipelines.Response.GetDynamicPlaceholderKeys; | |
namespace Foundation.DynamicPlaceholder.Pipelines.GetDynamicPlaceholderKeys | |
{ | |
public class GetUniqueIdKeyWithinRendering : GetDynamicPlaceholderKeysProcessor | |
{ | |
public static readonly string RenderingParameterKey = "GetUniqueIdKeyWithinRendering"; | |
public override void Process(GetDynamicPlaceholderKeysArgs args) | |
{ |
OlderNewer