Configuration example of using Solr
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 2 Oct 2012 08:59:24 +0000 (10:59 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 2 Oct 2012 08:59:24 +0000 (10:59 +0200)
etc/Makefile.am
etc/config-solr.xml [new file with mode: 0644]

index e979a09..4fe61d9 100644 (file)
@@ -20,6 +20,7 @@ xmlconfig = $(srcdir)/config-bytarget.xml \
     $(srcdir)/config4.xml \
     $(srcdir)/config5.xml \
     $(srcdir)/config-cgi.xml \
+    $(srcdir)/config-solr.xml \
     $(srcdir)/config-zoom.xml \
     $(srcdir)/retrieval-info.xml
 
diff --git a/etc/config-solr.xml b/etc/config-solr.xml
new file mode 100644 (file)
index 0000000..2236781
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
+  <start route="start"/>
+  <routes>
+    <route id="start">
+      <filter type="frontend_net">
+        <threads>10</threads>
+        <port>@:9000</port>
+      </filter>
+      <filter type="log">
+        <message>F</message>
+       <category session="true" apdu="true"/>
+      </filter>
+      <filter type="zoom">
+       <torus>
+         <records>
+           <record>
+             <udb>ocs-test</udb>
+             <cclmap_term>1=4 t=z</cclmap_term>
+             <cclmap_ti>u=title t=z</cclmap_ti>
+             <sru>solr</sru>
+             <zurl>ocs-test.indexdata.com/solr/select</zurl>
+           </record>
+           <record>
+             <udb>loc</udb>
+             <cclmap_term>t=l,r</cclmap_term>
+             <cclmap_ti>u=4 t=l,r</cclmap_ti>
+             <zurl>z3950.loc.gov:7090/voyager</zurl>
+           </record>
+         </records>
+       </torus>
+       <fieldmap cql="cql.serverChoice"/>
+       <fieldmap cql="dc.title" ccl="ti"/>
+      </filter>
+      <filter type="bounce"/>
+    </route>
+  </routes>
+</metaproxy>
+