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"?> | |
<context docBase="c:/Tomcat/webapps/solr.war" debug="0" crossContext="true" > | |
<environment name="solr/home" type="java.lang.String" value="/Tomcat/webapps/" override="true"></environment> | |
</context> |
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
<env-entry> | |
<env-entry-name>solr/home</env-entry-name> | |
<env-entry-value>C:\Solr</env-entry-value> | |
<env-entry-type>java.lang.String</env-entry-type> | |
</env-entry> |
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
<lib dir="../../../contrib/extraction/lib" regex=".*\.jar"></lib> | |
<lib dir="../../../dist/" regex="solr-cell-\d.*\.jar"></lib> | |
<lib dir="../../../contrib/clustering/lib/" regex=".*\.jar"></lib> | |
<lib dir="../../../dist/" regex="solr-clustering-\d.*\.jar"></lib> | |
<lib dir="../../../contrib/langid/lib/" regex=".*\.jar"></lib> | |
<lib dir="../../../dist/" regex="solr-langid-\d.*\.jar"></lib> | |
<lib dir="../../../contrib/velocity/lib" regex=".*\.jar"></lib> |
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
<response> | |
<lst name="responseHeader"> | |
<int name="status">0</int> | |
<int name="QTime">7</int> | |
</lst> | |
<lst name="initArgs"> | |
</lst><lst name="defaults"> | |
<str name="config">data-config.xml</str> | |
</lst> |
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
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
# User-specific files | |
*.suo | |
*.user | |
*.sln.docstates | |
# Build results |
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
<web-app xmlns="http://java.sun.com/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" | |
version="2.5" | |
metadata-complete="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
<web-resource-collection> | |
<web-resource-name>Solr Lockdown</web-resource-name> | |
<url-pattern>/</url-pattern> | |
</web-resource-collection> | |
<auth-constraint> | |
<role-name>solr_admin</role-name> | |
<role-name>admin</role-name> | |
</auth-constraint> | |
</security-constraint> | |
<login-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
<user name="myUsername" password="myPassword" roles="admin-gui,manager-gui,solr_admin"></user> |
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 static class JsonHelper | |
{ | |
public static string ToJson(this object obj) | |
{ | |
var serializer = new JavaScriptSerializer(); | |
return serializer.Serialize(obj); | |
} | |
public static string ToJson(this object obj, int recursionDepth) | |
{ |
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
[OperationContract] | |
public string HelloWorld(string personName) | |
{ | |
return (new HelloWorldWrapper | |
{ | |
Response = string.Format("Hello, {0}", personName), | |
Error = "", | |
TimeExecuted = DateTime.Now.ToString(CultureInfo.InvariantCulture) | |
}).ToJson(); | |
} |
OlderNewer