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
// Example of custom Search Service that can add boosting | |
public class DaytonLuceneSearchService : LuceneSearchService | |
{ | |
private static readonly Regex LuceneEscape = new Regex(@"(\+|-|&&|\|\||!|\(|\)|\{|\}|\[|\]|\^|""|~|\*|\?|:|\\)", RegexOptions.Compiled); | |
protected override string BuildQuery(ISearchQuery input) | |
{ | |
input.Text = LuceneEscape.Replace(input.Text, match => @"\\" + match.Captures[0].Value); | |
string baseQuery = base.BuildQuery(input); |
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
angular.module('designer').requires.push('sfImageSelector', 'sfSelectors', 'ngSanitize'); | |
angular.module('designer').controller('SimpleCtrl', [ | |
'$scope', | |
function ($scope) { | |
// This (or some representation of it) is what you'd save back to the Properties (Controller) | |
$scope.selectedImages = []; | |
$scope.picker = { |
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 class MyScheduledTask : ScheduledTask | |
{ | |
public static readonly string MyKey = "<hard coded guid string>"; | |
public MyScheduledTask() | |
{ | |
Key = MyKey; | |
} |