public abstract class LuceneIndexerAbstract
extends java.lang.Object
An indexer based on Lucene in Action 2nd edition.
A few adaptations were necessary to make it work with
Lucene 3.5.0. The similarity considered adapts Lucene's DefaultSimilarity to
consider TF only.
This class is generic and intended to be extended
on the basis of the language of the texts to process.
Note that in order to add a new document to an already
existing index it is only necessary to run the code again
considering the same path to the already existing index.
Special attention has to be paid respect to the rest of
libraries because it seems like JWPL's Lucene modules
included (which are older) are sometimes considered.
- Author:
- albarron