[jsword-svn] r1014 - in trunk/jsword: . jar jar/lucene-1.9-final
src/main/java/org/crosswire/jsword/index/lucene
dmsmith at crosswire.org
dmsmith at crosswire.org
Wed Mar 1 08:29:22 MST 2006
Author: dmsmith
Date: 2006-03-01 08:28:57 -0700 (Wed, 01 Mar 2006)
New Revision: 1014
Added:
trunk/jsword/jar/lucene-1.9-final/
trunk/jsword/jar/lucene-1.9-final/LICENSE.txt
trunk/jsword/jar/lucene-1.9-final/README.txt
trunk/jsword/jar/lucene-1.9-final/lucene-1.9-final-src.zip
trunk/jsword/jar/lucene-1.9-final/lucene-core-1.9-final.jar
Removed:
trunk/jsword/jar/lucene-1.4.3/
Modified:
trunk/jsword/.classpath
trunk/jsword/jsword.iml
trunk/jsword/src/main/java/org/crosswire/jsword/index/lucene/LuceneIndex.java
Log:
Upgrade to lucene-1.9-final
Modified: trunk/jsword/.classpath
===================================================================
--- trunk/jsword/.classpath 2006-03-01 15:17:43 UTC (rev 1013)
+++ trunk/jsword/.classpath 2006-03-01 15:28:57 UTC (rev 1014)
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry exported="true" sourcepath="jar/lucene-1.4.3/lucene-1.4.3-src.zip" kind="lib" path="jar/lucene-1.4.3/lucene-1.4.3.jar"/>
<classpathentry exported="true" kind="src" path="/common"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/test/java"/>
+ <classpathentry exported="true" sourcepath="jar/lucene-1.9-final/lucene-1.9-final-src.zip" kind="lib" path="jar/lucene-1.9-final/lucene-core-1.9-final.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Added: trunk/jsword/jar/lucene-1.9-final/LICENSE.txt
===================================================================
--- trunk/jsword/jar/lucene-1.9-final/LICENSE.txt 2006-03-01 15:17:43 UTC (rev 1013)
+++ trunk/jsword/jar/lucene-1.9-final/LICENSE.txt 2006-03-01 15:28:57 UTC (rev 1014)
@@ -0,0 +1,15 @@
+/**
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed 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.
+ */
Property changes on: trunk/jsword/jar/lucene-1.9-final/LICENSE.txt
___________________________________________________________________
Name: astChangedRevision
+
Added: trunk/jsword/jar/lucene-1.9-final/README.txt
===================================================================
--- trunk/jsword/jar/lucene-1.9-final/README.txt 2006-03-01 15:17:43 UTC (rev 1013)
+++ trunk/jsword/jar/lucene-1.9-final/README.txt 2006-03-01 15:28:57 UTC (rev 1014)
@@ -0,0 +1,43 @@
+Lucene README file
+
+$Id: README.txt 381429 2006-02-27 20:17:01Z cutting $
+
+INTRODUCTION
+
+Lucene is a Java full-text search engine. Lucene is not a complete
+application, but rather a code library and API that can easily be used
+to add search capabilities to applications.
+
+The Lucene web site is at:
+ http://lucene.apache.org/
+
+Please join the Lucene-User mailing list by sending a message to:
+ java-user-subscribe at lucene.apache.org
+
+FILES
+
+lucene-core-XX.jar
+ The compiled lucene library.
+
+lucene-demos-XX.jar
+ The compiled simple example code.
+
+luceneweb.war
+ The compiled simple example Web Application.
+
+contrib/*
+ Contributed code which extends and enhances Lucene, but is not
+ part of the core library.
+
+docs/index.html
+ The contents of the Lucene website.
+
+docs/api/index.html
+ The Javadoc Lucene API documentation. This includes the core
+ library, the demo, as well as all of the contrib modules.
+
+src/java
+ The Lucene source code.
+
+src/demo
+ Some example code.
Property changes on: trunk/jsword/jar/lucene-1.9-final/README.txt
___________________________________________________________________
Name: astChangedRevision
+
Added: trunk/jsword/jar/lucene-1.9-final/lucene-1.9-final-src.zip
===================================================================
(Binary files differ)
Property changes on: trunk/jsword/jar/lucene-1.9-final/lucene-1.9-final-src.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsword/jar/lucene-1.9-final/lucene-core-1.9-final.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsword/jar/lucene-1.9-final/lucene-core-1.9-final.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/jsword/jsword.iml
===================================================================
--- trunk/jsword/jsword.iml 2006-03-01 15:17:43 UTC (rev 1013)
+++ trunk/jsword/jsword.iml 2006-03-01 15:28:57 UTC (rev 1014)
@@ -17,7 +17,7 @@
<orderEntry type="module-library">
<library>
<CLASSES>
- <root url="jar://$MODULE_DIR$/jar/lucene-1.4.3/lucene-1.4.3.jar!/" />
+ <root url="jar://$MODULE_DIR$/jar/lucene-1.9-final/lucene-1.9-final.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
Modified: trunk/jsword/src/main/java/org/crosswire/jsword/index/lucene/LuceneIndex.java
===================================================================
--- trunk/jsword/src/main/java/org/crosswire/jsword/index/lucene/LuceneIndex.java 2006-03-01 15:17:43 UTC (rev 1013)
+++ trunk/jsword/src/main/java/org/crosswire/jsword/index/lucene/LuceneIndex.java 2006-03-01 15:28:57 UTC (rev 1014)
@@ -348,10 +348,8 @@
if (text != null && text.length() > 0)
{
doc = new Document();
- doc.add(Field.UnIndexed(FIELD_NAME, subkey.getOsisRef()));
- doc.add(Field.Text(FIELD_BODY, new StringReader(text)));
- // Lucene 1.9/2.0 doc.add(new Field(FIELD_NAME, subkey.getOsisRef(), Field.Store.YES, Field.Index.NO));
-// // Lucene 1.9/2.0 doc.add(new Field(FIELD_BODY, new StringReader(text)));
+ doc.add(new Field(FIELD_NAME, subkey.getOsisRef(), Field.Store.YES, Field.Index.NO));
+ doc.add(new Field(FIELD_BODY, new StringReader(text)));
writer.addDocument(doc);
}
More information about the jsword-svn
mailing list