com.theloutons.search.utils
Class SynopsisUtil

java.lang.Object
  extended bycom.theloutons.search.utils.SynopsisUtil

public class SynopsisUtil
extends java.lang.Object

Author:
Tom Louton

Constructor Summary
SynopsisUtil()
           
 
Method Summary
static org.apache.lucene.document.Document addString(java.lang.String docTxt, org.apache.lucene.document.Document doc)
          Adds to the index
static java.lang.String getSynopsis(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynopsisUtil

public SynopsisUtil()
Method Detail

getSynopsis

public static java.lang.String getSynopsis(java.lang.String text)
Parameters:
text - the extracted text from a document.
Returns:
if found, the next 500 characters.

addString

public static org.apache.lucene.document.Document addString(java.lang.String docTxt,
                                                            org.apache.lucene.document.Document doc)
Adds to the index

Parameters:
docTxt - the string containing the body of the document
doc - the Lucene document
Returns:
the document with index info added.