railo.runtime.search.lucene2.docs
Class FileDocument

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

public final class FileDocument
extends Object

A utility for making Lucene Documents from a File.


Method Summary
static org.apache.lucene.document.Document getDocument(Resource res, String charset)
          Makes a document for a File.
static org.apache.lucene.document.Document getDocument(StringBuffer content, Reader r)
           
 
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,
                                                              String charset)
                                                       throws IOException
Makes a document for a File.

The document has three fields:


getDocument

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


Copyright © 2012 Railo