anl.aida.ae.lucene
Class LIndexBuilder

java.lang.Object
  extended by anl.aida.ae.lucene.LIndexBuilder

public class LIndexBuilder
extends java.lang.Object

Builds a sample lucene index representing a full cache.


Field Summary
private static java.lang.String ABSTRACT
           
private static java.lang.String AUTHOR
           
private static java.lang.String DAY
           
private static java.lang.String FNAME
           
private static java.lang.String INDEX_DIR
           
private static java.lang.String INITIALS
           
private static java.lang.String LNAME
           
private static java.lang.String MEDLINE_DATE
           
private static java.lang.String MONTH
           
private static java.lang.String PUBDATE
           
private static java.lang.String TITLE
           
private static java.lang.String YEAR
           
 
Constructor Summary
LIndexBuilder()
           
 
Method Summary
 void build()
           
private  void buildDocuments(org.apache.lucene.index.IndexWriter writer)
           
private  org.apache.lucene.document.Document createDocument(java.io.File file)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE

private static final java.lang.String TITLE
See Also:
Constant Field Values

AUTHOR

private static final java.lang.String AUTHOR
See Also:
Constant Field Values

PUBDATE

private static final java.lang.String PUBDATE
See Also:
Constant Field Values

MEDLINE_DATE

private static final java.lang.String MEDLINE_DATE
See Also:
Constant Field Values

YEAR

private static final java.lang.String YEAR
See Also:
Constant Field Values

MONTH

private static final java.lang.String MONTH
See Also:
Constant Field Values

DAY

private static final java.lang.String DAY
See Also:
Constant Field Values

ABSTRACT

private static final java.lang.String ABSTRACT
See Also:
Constant Field Values

FNAME

private static final java.lang.String FNAME
See Also:
Constant Field Values

LNAME

private static final java.lang.String LNAME
See Also:
Constant Field Values

INITIALS

private static final java.lang.String INITIALS
See Also:
Constant Field Values

INDEX_DIR

private static final java.lang.String INDEX_DIR
See Also:
Constant Field Values
Constructor Detail

LIndexBuilder

public LIndexBuilder()
              throws org.apache.commons.vfs.FileSystemException
Throws:
org.apache.commons.vfs.FileSystemException
Method Detail

build

public void build()
           throws java.io.IOException
Throws:
java.io.IOException

buildDocuments

private void buildDocuments(org.apache.lucene.index.IndexWriter writer)
                     throws java.io.IOException,
                            javax.xml.stream.XMLStreamException
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

createDocument

private org.apache.lucene.document.Document createDocument(java.io.File file)
                                                    throws javax.xml.stream.XMLStreamException,
                                                           java.io.FileNotFoundException
Throws:
javax.xml.stream.XMLStreamException
java.io.FileNotFoundException

main

public static void main(java.lang.String[] args)