Skip to content

Commit 662fb90

Browse files
fzslucamilanesio
authored andcommitted
Add library lucene-backward-codecs to migrate indices.
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.
1 parent 356e9f2 commit 662fb90

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.classpath

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<classpathentry kind="lib" path="ext/wicket-auth-roles-1.4.22.jar" sourcepath="ext/src/wicket-auth-roles-1.4.22.jar" />
2323
<classpathentry kind="lib" path="ext/wicket-extensions-1.4.22.jar" sourcepath="ext/src/wicket-extensions-1.4.22.jar" />
2424
<classpathentry kind="lib" path="ext/lucene-core-5.5.2.jar" sourcepath="ext/src/lucene-core-5.5.2.jar" />
25+
<classpathentry kind="lib" path="ext/lucene-backward-codecs-5.5.2.jar" sourcepath="ext/src/lucene-backward-codecs-5.5.2.jar" />
2526
<classpathentry kind="lib" path="ext/lucene-analyzers-common-5.5.2.jar" sourcepath="ext/src/lucene-analyzers-common-5.5.2.jar" />
2627
<classpathentry kind="lib" path="ext/lucene-highlighter-5.5.2.jar" sourcepath="ext/src/lucene-highlighter-5.5.2.jar" />
2728
<classpathentry kind="lib" path="ext/lucene-memory-5.5.2.jar" sourcepath="ext/src/lucene-memory-5.5.2.jar" />

build.moxie

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ dependencies:
145145
- compile 'org.apache.wicket:wicket-auth-roles:${wicket.version}' :war !org.mockito
146146
- compile 'org.apache.wicket:wicket-extensions:${wicket.version}' :war !org.mockito
147147
- compile 'org.apache.lucene:lucene-core:${lucene.version}' :war :fedclient
148+
- compile 'org.apache.lucene:lucene-backward-codecs:${lucene.version}' :war :fedclient
148149
- compile 'org.apache.lucene:lucene-analyzers-common:${lucene.version}' :war :fedclient
149150
- compile 'org.apache.lucene:lucene-highlighter:${lucene.version}' :war :fedclient !org.apache.lucene:lucene-join
150151
- compile 'org.apache.lucene:lucene-memory:${lucene.version}' :war :fedclient

gitblit.iml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,17 @@
190190
</SOURCES>
191191
</library>
192192
</orderEntry>
193+
<orderEntry type="module-library">
194+
<library name="lucene-backward-codecs-5.5.2.jar">
195+
<CLASSES>
196+
<root url="jar://$MODULE_DIR$/ext/lucene-backward-codecs-5.5.2.jar!/" />
197+
</CLASSES>
198+
<JAVADOC />
199+
<SOURCES>
200+
<root url="jar://$MODULE_DIR$/ext/src/lucene-backward-codecs-5.5.2.jar!/" />
201+
</SOURCES>
202+
</library>
203+
</orderEntry>
193204
<orderEntry type="module-library">
194205
<library name="lucene-analyzers-common-5.5.2.jar">
195206
<CLASSES>

0 commit comments

Comments
 (0)