@@ -58,6 +58,11 @@
-->
<lib dir="../../contrib/clustering/lib/downloads/" />
<lib dir="../../contrib/clustering/lib/" />
+ <lib dir="../../contrib/dataimporthandler/lib/" />
+ <lib dir="../../example/example-DIH/solr/db/lib/" />
+
+ <lib dir="../../contrib/velocity/lib" />
+
<lib dir="/total/crap/dir/ignored" />
<!-- an exact path can be used to specify a specific file. This will cause
a serious error to be logged if it can't be loaded.
@@ -68,7 +73,7 @@
<!-- Used to specify an alternate directory to hold all index data
other than the default ./data under the Solr home.
If replication is in use, this should match the replication configuration. -->
- <dataDir>${solr.data.dir:}</dataDir>
+ <dataDir>${solr.data.dir:./solr/data}</dataDir>
<!-- WARNING: this <indexDefaults> section only provides defaults for index writers
@@ -175,7 +180,7 @@
Custom deletion policies can specified here. The class must
implement org.apache.lucene.index.IndexDeletionPolicy.
- http://lucene.apache.org/java/2_9_1/api/all/org/apache/lucene/index/IndexDeletionPolicy.html
+ http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/index/IndexDeletionPolicy.html
The standard Solr IndexDeletionPolicy implementation supports deleting
index commit points on number of commits, age of commit point and
@@ -499,6 +504,9 @@
</lst>
</requestHandler>
+ <!-- Uncomment this RequestHandler to enable statistics collection with solr Gaze plug-in -->
+ <!-- <requestHandler name="/solrgaze" class="com.lucidimagination.gaze.plugin.StatMonitor" /> -->
+
<!-- Please refer to http://wiki.apache.org/solr/SolrReplication for details on configuring replication -->
<!-- remove the <lst name="master"> section if this is just a slave -->
<!-- remove the <lst name="slave"> section if this is just a master -->
@@ -722,7 +730,6 @@
-->
<searchComponent
name="clusteringComponent"
- enable="${solr.clustering.enabled:false}"
class="org.apache.solr.handler.clustering.ClusteringComponent" >
<!-- Declare an engine -->
<lst name="engine">
@@ -752,7 +759,6 @@
</lst>
</searchComponent>
<requestHandler name="/clustering"
- enable="${solr.clustering.enabled:false}"
class="solr.SearchHandler">
<lst name="defaults">
<bool name="clustering">true</bool>
@@ -1030,4 +1036,59 @@
-->
</admin>
+ <queryResponseWriter name="velocity" class="org.apache.solr.request.VelocityResponseWriter"/>
+
+ <!-- /itas mapping for Solritas view with some basic good defaults: like dismax, facet on cat -->
+ <requestHandler name="/itas" class="solr.SearchHandler">
+ <lst name="defaults">
+ <!-- VelocityResponseWriter settings -->
+ <str name="wt">velocity</str>
+ <str name="v.template">browse</str>
+ <str name="v.layout">layout</str>
+ <str name="title">Solritas Demonstration</str>
+
+ <str name="rows">10</str>
+ <str name="fl">*,score</str>
+
+ <!-- dismax -->
+ <str name="defType">dismax</str>
+ <str name="q.alt">*:*</str>
+ <str name="qf">
+ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
+ </str>
+
+ <!-- faceting -->
+ <str name="facet">on</str>
+ <str name="facet.field">cat</str>
+ <str name="facet.mincount">1</str>
+
+ <!-- Clustering -->
+ <bool name="clustering">true</bool>
+ <str name="clustering.engine">default</str>
+ <bool name="clustering.results">true</bool>
+ <!-- The title field -->
+ <str name="carrot.title">name</str>
+ <str name="carrot.url">id</str>
+ <!-- The field to cluster on -->
+ <str name="carrot.snippet">features</str>
+ <!-- produce summaries -->
+ <bool name="carrot.produceSummary">true</bool>
+ <!-- the maximum number of labels per cluster -->
+ <!--<int name="carrot.numDescriptions">5</int>-->
+ <!-- produce sub clusters -->
+ <bool name="carrot.outputSubClusters">false</bool>
+
+ </lst>
+
+ <arr name="last-components">
+ <str>clusteringComponent</str>
+ </arr>
+ </requestHandler>
+
+ <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
+ <lst name="defaults">
+ <str name="config">${solr.config.dir:./solr/conf}/dataimporthandler/data-config.xml</str>
+ </lst>
+ </requestHandler>
+
</config>