sunspot_solr-jts 2.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +30 -0
- data/Gemfile +3 -0
- data/README.rdoc +30 -0
- data/Rakefile +1 -0
- data/bin/sunspot-installer +20 -0
- data/bin/sunspot-solr +80 -0
- data/lib/sunspot/solr/installer/config_installer.rb +53 -0
- data/lib/sunspot/solr/installer/task_helper.rb +13 -0
- data/lib/sunspot/solr/installer.rb +25 -0
- data/lib/sunspot/solr/java.rb +13 -0
- data/lib/sunspot/solr/railtie.rb +15 -0
- data/lib/sunspot/solr/server.rb +225 -0
- data/lib/sunspot/solr/tasks.rb +44 -0
- data/lib/sunspot/solr/version.rb +5 -0
- data/lib/sunspot_solr-jts.rb +5 -0
- data/lib/sunspot_solr.rb +1 -0
- data/solr/README.txt +42 -0
- data/solr/contexts/solr.xml +7 -0
- data/solr/etc/jetty.xml +167 -0
- data/solr/etc/webdefault.xml +527 -0
- data/solr/lib/jetty-continuation-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-deploy-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-http-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-io-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-jmx-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-security-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-server-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-servlet-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-util-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-webapp-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-xml-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
- data/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
- data/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
- data/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
- data/solr/lib/servlet-api-3.0.jar +0 -0
- data/solr/solr/.gitignore +1 -0
- data/solr/solr/conf/admin-extra.html +31 -0
- data/solr/solr/conf/elevate.xml +36 -0
- data/solr/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/solr/conf/protwords.txt +21 -0
- data/solr/solr/conf/schema.xml +275 -0
- data/solr/solr/conf/scripts.conf +24 -0
- data/solr/solr/conf/solrconfig.xml +680 -0
- data/solr/solr/conf/spellings.txt +2 -0
- data/solr/solr/conf/stopwords.txt +58 -0
- data/solr/solr/conf/synonyms.txt +31 -0
- data/solr/solr/conf/xslt/example.xsl +132 -0
- data/solr/solr/conf/xslt/example_atom.xsl +67 -0
- data/solr/solr/conf/xslt/example_rss.xsl +66 -0
- data/solr/solr/conf/xslt/luke.xsl +337 -0
- data/solr/solr/default/README.txt +54 -0
- data/solr/solr/solr.xml +8 -0
- data/solr/start.jar +0 -0
- data/solr/webapps/solr.war +0 -0
- data/spec/server_spec.rb +98 -0
- data/spec/spec_helper.rb +18 -0
- data/sunspot_solr-jts.gemspec +38 -0
- metadata +163 -0
data/solr/etc/jetty.xml
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
|
3
|
+
|
4
|
+
<!-- =============================================================== -->
|
5
|
+
<!-- Configure the Jetty Server -->
|
6
|
+
<!-- -->
|
7
|
+
<!-- Documentation of this file format can be found at: -->
|
8
|
+
<!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax -->
|
9
|
+
<!-- -->
|
10
|
+
<!-- =============================================================== -->
|
11
|
+
|
12
|
+
|
13
|
+
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
14
|
+
|
15
|
+
<!-- =========================================================== -->
|
16
|
+
<!-- Server Thread Pool -->
|
17
|
+
<!-- =========================================================== -->
|
18
|
+
<Set name="ThreadPool">
|
19
|
+
<!-- Default queued blocking threadpool -->
|
20
|
+
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
|
21
|
+
<Set name="minThreads">10</Set>
|
22
|
+
<Set name="maxThreads">10000</Set>
|
23
|
+
<Set name="detailedDump">false</Set>
|
24
|
+
</New>
|
25
|
+
</Set>
|
26
|
+
|
27
|
+
<!-- =========================================================== -->
|
28
|
+
<!-- Set connectors -->
|
29
|
+
<!-- =========================================================== -->
|
30
|
+
|
31
|
+
<!--
|
32
|
+
<Call name="addConnector">
|
33
|
+
<Arg>
|
34
|
+
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
35
|
+
<Set name="host"><SystemProperty name="jetty.host" /></Set>
|
36
|
+
<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
37
|
+
<Set name="maxIdleTime">50000</Set>
|
38
|
+
<Set name="Acceptors">2</Set>
|
39
|
+
<Set name="statsOn">false</Set>
|
40
|
+
<Set name="confidentialPort">8443</Set>
|
41
|
+
<Set name="lowResourcesConnections">5000</Set>
|
42
|
+
<Set name="lowResourcesMaxIdleTime">5000</Set>
|
43
|
+
</New>
|
44
|
+
</Arg>
|
45
|
+
</Call>
|
46
|
+
-->
|
47
|
+
|
48
|
+
<!-- This connector is currently being used for Solr because it
|
49
|
+
showed better performance than nio.SelectChannelConnector
|
50
|
+
for typical Solr requests. -->
|
51
|
+
<Call name="addConnector">
|
52
|
+
<Arg>
|
53
|
+
<New class="org.eclipse.jetty.server.bio.SocketConnector">
|
54
|
+
<Set name="host"><SystemProperty name="jetty.host" /></Set>
|
55
|
+
<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
56
|
+
<Set name="maxIdleTime">50000</Set>
|
57
|
+
<Set name="lowResourceMaxIdleTime">1500</Set>
|
58
|
+
<Set name="statsOn">false</Set>
|
59
|
+
</New>
|
60
|
+
</Arg>
|
61
|
+
</Call>
|
62
|
+
|
63
|
+
<!-- =========================================================== -->
|
64
|
+
<!-- Set handler Collection Structure -->
|
65
|
+
<!-- =========================================================== -->
|
66
|
+
<Set name="handler">
|
67
|
+
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
|
68
|
+
<Set name="handlers">
|
69
|
+
<Array type="org.eclipse.jetty.server.Handler">
|
70
|
+
<Item>
|
71
|
+
<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
|
72
|
+
</Item>
|
73
|
+
<Item>
|
74
|
+
<New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
|
75
|
+
</Item>
|
76
|
+
<Item>
|
77
|
+
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
|
78
|
+
</Item>
|
79
|
+
</Array>
|
80
|
+
</Set>
|
81
|
+
</New>
|
82
|
+
</Set>
|
83
|
+
|
84
|
+
<!-- =========================================================== -->
|
85
|
+
<!-- Configure Request Log -->
|
86
|
+
<!-- =========================================================== -->
|
87
|
+
<!--
|
88
|
+
<Ref id="Handlers">
|
89
|
+
<Call name="addHandler">
|
90
|
+
<Arg>
|
91
|
+
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
|
92
|
+
<Set name="requestLog">
|
93
|
+
<New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
|
94
|
+
<Set name="filename">
|
95
|
+
logs/request.yyyy_mm_dd.log
|
96
|
+
</Set>
|
97
|
+
<Set name="filenameDateFormat">yyyy_MM_dd</Set>
|
98
|
+
<Set name="retainDays">90</Set>
|
99
|
+
<Set name="append">true</Set>
|
100
|
+
<Set name="extended">false</Set>
|
101
|
+
<Set name="logCookies">false</Set>
|
102
|
+
<Set name="LogTimeZone">UTC</Set>
|
103
|
+
</New>
|
104
|
+
</Set>
|
105
|
+
</New>
|
106
|
+
</Arg>
|
107
|
+
</Call>
|
108
|
+
</Ref>
|
109
|
+
-->
|
110
|
+
|
111
|
+
<!-- =========================================================== -->
|
112
|
+
<!-- extra options -->
|
113
|
+
<!-- =========================================================== -->
|
114
|
+
<Set name="stopAtShutdown">true</Set>
|
115
|
+
<Set name="sendServerVersion">false</Set>
|
116
|
+
<Set name="sendDateHeader">false</Set>
|
117
|
+
<Set name="gracefulShutdown">1000</Set>
|
118
|
+
<Set name="dumpAfterStart">false</Set>
|
119
|
+
<Set name="dumpBeforeStop">false</Set>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
<Call name="addBean">
|
125
|
+
<Arg>
|
126
|
+
<New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
|
127
|
+
<Set name="contexts">
|
128
|
+
<Ref id="Contexts" />
|
129
|
+
</Set>
|
130
|
+
<Call name="setContextAttribute">
|
131
|
+
<Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
|
132
|
+
<Arg>.*/servlet-api-[^/]*\.jar$</Arg>
|
133
|
+
</Call>
|
134
|
+
|
135
|
+
|
136
|
+
<!-- Add a customize step to the deployment lifecycle -->
|
137
|
+
<!-- uncomment and replace DebugBinding with your extended AppLifeCycle.Binding class
|
138
|
+
<Call name="insertLifeCycleNode">
|
139
|
+
<Arg>deployed</Arg>
|
140
|
+
<Arg>starting</Arg>
|
141
|
+
<Arg>customise</Arg>
|
142
|
+
</Call>
|
143
|
+
<Call name="addLifeCycleBinding">
|
144
|
+
<Arg>
|
145
|
+
<New class="org.eclipse.jetty.deploy.bindings.DebugBinding">
|
146
|
+
<Arg>customise</Arg>
|
147
|
+
</New>
|
148
|
+
</Arg>
|
149
|
+
</Call>
|
150
|
+
-->
|
151
|
+
|
152
|
+
</New>
|
153
|
+
</Arg>
|
154
|
+
</Call>
|
155
|
+
|
156
|
+
<Ref id="DeploymentManager">
|
157
|
+
<Call name="addAppProvider">
|
158
|
+
<Arg>
|
159
|
+
<New class="org.eclipse.jetty.deploy.providers.ContextProvider">
|
160
|
+
<Set name="monitoredDirName"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
|
161
|
+
<Set name="scanInterval">0</Set>
|
162
|
+
</New>
|
163
|
+
</Arg>
|
164
|
+
</Call>
|
165
|
+
</Ref>
|
166
|
+
|
167
|
+
</Configure>
|