esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esjew...@apache.org
Subject svn commit: r985257 - in /incubator/esme/trunk/server/src/main/resources/props: compass.jdbc.cfg.xml compass.mysql.jdbc.cfg.xml
Date Fri, 13 Aug 2010 16:08:22 GMT
Author: esjewett
Date: Fri Aug 13 16:08:22 2010
New Revision: 985257

URL: http://svn.apache.org/viewvc?rev=985257&view=rev
Log:
[ESME-205] Patch for JDBC using Derby and MySQL
Patch by Imtiaz Ahmed Hajee Esmail

Added:
    incubator/esme/trunk/server/src/main/resources/props/compass.mysql.jdbc.cfg.xml
Modified:
    incubator/esme/trunk/server/src/main/resources/props/compass.jdbc.cfg.xml

Modified: incubator/esme/trunk/server/src/main/resources/props/compass.jdbc.cfg.xml
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/resources/props/compass.jdbc.cfg.xml?rev=985257&r1=985256&r2=985257&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/resources/props/compass.jdbc.cfg.xml (original)
+++ incubator/esme/trunk/server/src/main/resources/props/compass.jdbc.cfg.xml Fri Aug 13 16:08:22
2010
@@ -25,11 +25,13 @@
   <compass name="default">
 
     <connection>
-      <jdbc>
+      <jdbc dialect= "org.apache.lucene.store.jdbc.dialect.DerbyDialect">
+      <!-- For 'dialect' see http://www.compass-project.org/schema/compass-core-config-2.1.xsd
-->
           <dataSourceProvider>
-              <driverManager  url="jdbc:example"
-                              username="user" password="password"
-                              driverClass="com.example.jdbc.Driver" />
+            <!-- Username must be present and password can be empty -->
+            <driverManager  url="jdbc:derby:esme_compass_index_db;create=true"
+                            username="esmeuser" password=""                             

+                            driverClass="org.apache.derby.jdbc.EmbeddedDriver" />
           </dataSourceProvider>
       </jdbc>
 

Added: incubator/esme/trunk/server/src/main/resources/props/compass.mysql.jdbc.cfg.xml
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/resources/props/compass.mysql.jdbc.cfg.xml?rev=985257&view=auto
==============================================================================
--- incubator/esme/trunk/server/src/main/resources/props/compass.mysql.jdbc.cfg.xml (added)
+++ incubator/esme/trunk/server/src/main/resources/props/compass.mysql.jdbc.cfg.xml Fri Aug
13 16:08:22 2010
@@ -0,0 +1,58 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one   *
+ or more contributor license agreements.  See the NOTICE file *
+ distributed with this work for additional information        *
+ regarding copyright ownership.  The ASF licenses this file   *
+ to you under the Apache License, Version 2.0 (the            *
+ "License"); you may not use this file except in compliance   *
+ with the License.  You may obtain a copy of the License at   *
+                                                              *
+   http://www.apache.org/licenses/LICENSE-2.0                 *
+                                                              *
+ Unless required by applicable law or agreed to in writing,   *
+ software distributed under the License is distributed on an  *
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ KIND, either express or implied.  See the License for the    *
+ specific language governing permissions and limitations      *
+ under the License.                                           *
+-->
+ 
+<compass-core-config xmlns="http://www.compass-project.org/schema/core-config"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://www.compass-project.org/schema/core-config
+  http://www.compass-project.org/schema/compass-core-config-2.1.xsd">
+
+  <compass name="default">
+
+    <connection>
+      <jdbc dialect= "org.apache.lucene.store.jdbc.dialect.MySQLDialect">
+	  <!-- For 'dialect' see http://www.compass-project.org/schema/compass-core-config-2.1.xsd
-->	  	
+	  <!-- Or, Compass Reference: Appendix B. Lucene Jdbc Directory : Table B.4. Jdbc Directory
SQL Dialects -->
+          <dataSourceProvider>
+	      <!-- Apparently, username must be present and password can be empty -->
+              <!-- Supply following driverManager element (commented below) -->
+	      <!-- See http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference.html -->
+	      <!--driverManager  url="jdbc:mysql://[host][,failoverhost...][:port]/[<compass-index-database-name>][?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]"
+			      username="esmeuser" password=""                              
+                              driverClass="com.mysql.jdbc.Driver" /-->
+          </dataSourceProvider>
+      </jdbc>
+
+    </connection>
+    <searchEngine >
+      <analyzer name="default" type="Stop" />   
+      <analyzer name="pool" type="Standard" />
+      <analyzer name="stemming" type="Snowball" snowballType="English">
+           <stopWords>
+               <stopWord value="no" />
+               <stopWord value="the" />
+               <stopWord value="and" />
+               <stopWord value="a" />
+               <stopWord value="this" />
+               <stopWord value="i" />
+               <stopWord value="is" />                                  
+            </stopWords>
+      </analyzer>
+    </searchEngine>
+  </compass>
+</compass-core-config>



Mime
View raw message