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 HelloWorldWrapper | |
{ | |
public string Response; | |
public string TimeExecuted; | |
public string Error; | |
} |
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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script> | |
var personNameVar = "Paul"; | |
var dataIn = '{' + '"personName":"' + personNameVar + '"}'; | |
$.ajax({ | |
url: "/Service1.svc/HelloWorld", | |
type: "POST", | |
contentType: "application/json; charset=utf-8", | |
data: dataIn, | |
dataType: "json", |
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
http://localhost:8983/solr/collection1/update?stream.body=<delete><query>*:*</query></delete> |
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 string AutoSuggest(string query) | |
{ | |
const int maxResults = 10; | |
const int startpage = 1; | |
var solr = ServiceLocator.Current.GetInstance<ISolrOperations<Item>>(); | |
var options = new QueryOptions | |
{ | |
Rows = maxResults, | |
Start = (startpage - 1)*maxResults |
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
<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"> | |
<analyzer type="index"> | |
<tokenizer class="solr.StandardTokenizerFactory"/> | |
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" /> | |
<!-- in this example, we will only use synonyms at query time | |
<filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/> | |
--> | |
<filter class="solr.LowerCaseFilterFactory"/> | |
</analyzer> | |
<analyzer type="query"> |
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
var userName = "myUserName"; | |
var memberExist = false; | |
if(Membership.GetUser(userName) != null) | |
{ | |
memberExist = true; | |
} |
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
^[\s\d]*$ |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:msxsl="urn:schemas-microsoft-com:xslt" | |
xmlns:user="urn:my-scripts" | |
xmlns:umbraco.library="urn:umbraco.library" | |
exclude-result-prefixes="xsl msxsl user umbraco.library"> | |
<xsl:output method="html" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" | |
doctype-system="DTD/xhtml1-strict.dtd" |
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
2013-12-29 19:14:08,301 [6] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 13] An unhandled exception occurred | |
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentNullException: Value cannot be null. | |
Parameter name: context | |
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) | |
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters) | |
at TeaCommerce.Umbraco.Application.DataTypes.StorePicker.StorePickerDataEditor.OnLoad(EventArgs e) | |
at System.Web.UI.Control.LoadRecursive() | |
at System.Web.UI.Control.LoadRecursive() | |
at System.Web.UI.Control.LoadRecursive() | |
at System.Web.UI.Control.LoadRecursive() |
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
2013-12-29 19:21:54,617 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Determining hash of code files on disk | |
2013-12-29 19:21:54,633 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Hash determined (took 12ms) | |
2013-12-29 19:21:54,648 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of umbraco.interfaces.IApplicationStartupHandler | |
2013-12-29 19:21:54,976 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of umbraco.interfaces.IApplicationStartupHandler, found 28 (took 331ms) | |
2013-12-29 19:21:55,023 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter | |
2013-12-29 19:21:55,038 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter, found 0 (took 21ms) | |
2013-12-29 19:21:55,054 [12] INFO Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Web.Mvc.SurfaceCo |