Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
--- /Users/epugh/solr/solr2/LucidWorks/example/solr/conf/solrconfig.xml	2010-01-27 11:52:43.000000000 -0500
+++ /Users/epugh/solr/solr2/LucidWorks/lucidworks/solr/conf/solrconfig.xml	2010-01-27 11:52:39.000000000 -0500
@@ -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>