railo.runtime.search.lucene2.docs
Class WordDocument

java.lang.Object
  extended by railo.runtime.search.lucene2.docs.WordDocument

public final class WordDocument
extends Object

A utility for making Lucene Documents from a File.


Method Summary
static org.apache.lucene.document.Document getDocument(Resource res)
          Makes a document for a File.
static org.apache.lucene.document.Document getDocument(StringBuffer content, InputStream is)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDocument

public static org.apache.lucene.document.Document getDocument(Resource res)
                                                       throws IOException
Makes a document for a File.

The document has three fields:


getDocument

public static org.apache.lucene.document.Document getDocument(StringBuffer content,
                                                              InputStream is)
                                                       throws IOException
Throws:
IOException


Copyright © 2012 Railo