]> source.dussan.org Git - gitblit.git/commitdiff
Add library `lucene-backward-codecs` to migrate indices.
authorFlorian Zschocke <florian.zschocke@devolo.de>
Mon, 9 Jan 2017 13:43:46 +0000 (14:43 +0100)
committerFlorian Zschocke <florian.zschocke@devolo.de>
Sun, 5 Mar 2017 19:20:59 +0000 (20:20 +0100)
To be able to read and migrate Lucene indices from old (4.x)
formats to new (5.x) ones, add the `lucene-backward-codecs`
library to the project.
It is added to the `ext` directory and therefore to the classpath.
According to the Lucene documentation, having it in the classpath
can affect performance. But right now the `ext` directory is the
only one available and even for a separate tool for offline
migration the library would be needed.

.classpath
build.moxie
gitblit.iml

index 42cbfbc8714d87bb40cebb8f081cb4b05f3d6c99..5d96d16d3d2ab828482f3fa52aa9a1997c84a001 100644 (file)
@@ -22,6 +22,7 @@
        <classpathentry kind="lib" path="ext/wicket-auth-roles-1.4.22.jar" sourcepath="ext/src/wicket-auth-roles-1.4.22.jar" />
        <classpathentry kind="lib" path="ext/wicket-extensions-1.4.22.jar" sourcepath="ext/src/wicket-extensions-1.4.22.jar" />
        <classpathentry kind="lib" path="ext/lucene-core-5.5.2.jar" sourcepath="ext/src/lucene-core-5.5.2.jar" />
+       <classpathentry kind="lib" path="ext/lucene-backward-codecs-5.5.2.jar" sourcepath="ext/src/lucene-backward-codecs-5.5.2.jar" />
        <classpathentry kind="lib" path="ext/lucene-analyzers-common-5.5.2.jar" sourcepath="ext/src/lucene-analyzers-common-5.5.2.jar" />
        <classpathentry kind="lib" path="ext/lucene-highlighter-5.5.2.jar" sourcepath="ext/src/lucene-highlighter-5.5.2.jar" />
        <classpathentry kind="lib" path="ext/lucene-memory-5.5.2.jar" sourcepath="ext/src/lucene-memory-5.5.2.jar" />
index f21241d1bfecd820b92a741a99a6342ef6ab3a69..2748eab2c677df112cdc41ec519d202fb816deda 100644 (file)
@@ -145,6 +145,7 @@ dependencies:
 - compile 'org.apache.wicket:wicket-auth-roles:${wicket.version}' :war !org.mockito
 - compile 'org.apache.wicket:wicket-extensions:${wicket.version}' :war !org.mockito
 - compile 'org.apache.lucene:lucene-core:${lucene.version}' :war :fedclient
+- compile 'org.apache.lucene:lucene-backward-codecs:${lucene.version}' :war :fedclient
 - compile 'org.apache.lucene:lucene-analyzers-common:${lucene.version}' :war :fedclient
 - compile 'org.apache.lucene:lucene-highlighter:${lucene.version}' :war :fedclient !org.apache.lucene:lucene-join
 - compile 'org.apache.lucene:lucene-memory:${lucene.version}' :war :fedclient
index 1f4aa248380c6af5cbc53ff4f14475a32debc34d..25a4447de62321031534f499c8f45e4a6ae6c0cd 100644 (file)
         </SOURCES>
       </library>
     </orderEntry>
+    <orderEntry type="module-library">
+      <library name="lucene-backward-codecs-5.5.2.jar">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/ext/lucene-backward-codecs-5.5.2.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES>
+          <root url="jar://$MODULE_DIR$/ext/src/lucene-backward-codecs-5.5.2.jar!/" />
+        </SOURCES>
+      </library>
+    </orderEntry>
     <orderEntry type="module-library">
       <library name="lucene-analyzers-common-5.5.2.jar">
         <CLASSES>