Lucene indexer task and search module. The indexer creates the Lucene index for the native Android app. The app uses the search module. Lucene 3.6.2 is used because of compatibility issues with Android.
The indexer processes the XML export files HunNor-XML-HN.xml
and HunNor-XML-NH.xml
. See export-ant
for download instructions.
-
Package the application with Maven.
-
Copy files in the
jars
directory andexport-lucene-indexer/target/export-lucene-indexer-1.0.0.jar
to Ant's classpath. -
Define the task in the Ant build file:
<taskdef name="lucene" classname="net.hunnor.dict.lucene.AntTask"/>
- Run the indexer task:
<lucene language="HU" main="hunnor-lucene-index" source="HunNor-XML-HN.xml" spelling="hunnor-lucene-spelling"/>
<lucene language="NO" main="hunnor-lucene-index" source="HunNor-XML-NH.xml" spelling="hunnor-lucene-spelling"/>
The main index is generated to the hunnor-lucene-index
directory, the separate spell checking index to the hunnor-lucene-spelling
directory. Indexing adds entries to the index in these directories.