| java.lang.Object com.knowgate.lucene.Indexer com.knowgate.lucene.MailIndexer
MailIndexer | public class MailIndexer extends Indexer (Code) | | Indexer subclass for e-mail messages
author: Sergio Montoro Ten version: 3.0 |
Method Summary | |
public static void | addMail(IndexWriter oIWrt, String sGuid, BigDecimal dNumber, String sWorkArea, String sContainer, String sSubject, String sAuthor, String sRecipients, Date dtSent, String sComments, InputStream oStrm, int iSize) | public static void | rebuildFolder(Properties oProps, String sWorkArea, String sFolder) |
MailIndexer | public MailIndexer()(Code) | | |
addMail | public static void addMail(IndexWriter oIWrt, String sGuid, BigDecimal dNumber, String sWorkArea, String sContainer, String sSubject, String sAuthor, String sRecipients, Date dtSent, String sComments, InputStream oStrm, int iSize) throws ClassNotFoundException, IOException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException, InstantiationException, NullPointerException(Code) | | Add a single mail message to the index
Parameters: oIWrt - IndexWriter Parameters: sGuid - String GUID of mime message to be indexed (from gu_mimemsg field of table k_mime_msgs) Parameters: dNumber - BigDecimal mime message number (from pg_message field of table k_mime_msgs) Parameters: sWorkArea - String GUID of WorkArea (from gu_workarea field of table k_mime_msgs) Parameters: sContainer - String Name of Category (Folder) where message is stored.This is nm_category field at k_categories table record corresponding to gu_category from k_mime_msgs Parameters: sSubject - String Subject Parameters: sAuthor - String Display name of message sender Parameters: sRecipients - String Recipients list (both display name and e-mails) Parameters: dtSent - Date Parameters: sComments - String Parameters: oStrm - InputStream Full mime message body as an InputStream (from by_content field of table k_mime_msgs) throws: ClassNotFoundException - throws: IOException - throws: IllegalArgumentException - throws: NoSuchFieldException - throws: IllegalAccessException - throws: InstantiationException - throws: NullPointerException - |
rebuildFolder | public static void rebuildFolder(Properties oProps, String sWorkArea, String sFolder) throws SQLException, IOException, ClassNotFoundException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException, InstantiationException(Code) | | Re-build full text index for a given mail folder
All previously indexed messages for given folder are removed from index and written back
Parameters: oProps - Properties containing: luceneindex, driver, dburl, dbuser, dbpassword Parameters: sWorkArea - String GUID of WorkArea to which folder belongs Parameters: sFolder - String Folder name as in field nm_category of table k_categories throws: SQLException - throws: IOException - throws: ClassNotFoundException - throws: IllegalArgumentException - throws: NoSuchFieldException - throws: IllegalAccessException - throws: InstantiationException - |
Methods inherited from com.knowgate.lucene.Indexer | public static void add(IndexWriter oIWrt, Map oKeywords, Map oTexts, Map oUnStored) throws ClassNotFoundException, IOException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException, InstantiationException, NullPointerException(Code)(Java Doc) public static void add(String sTableName, String sDirectory, String sAnalyzer, Map oKeywords, Map oTexts, Map oUnStored) throws ClassNotFoundException, IOException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException, InstantiationException, NullPointerException(Code)(Java Doc) public static void add(String sTableName, Properties oProps, String sGUID, int iNumber, String sWorkArea, String sContainer, String sTitle, String sText, String sAuthor, String sAbstract, String sComments) throws ClassNotFoundException, IOException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException, InstantiationException, NullPointerException(Code)(Java Doc) public static int delete(String sTableName, String sWorkArea, Properties oProps, String sGuid) throws IllegalArgumentException, NoSuchFieldException, IllegalAccessException, IOException, NullPointerException(Code)(Java Doc) public static void main(String[] argv) throws SQLException, IOException, ClassNotFoundException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException, InstantiationException(Code)(Java Doc) public static void optimize(Properties oProps, String sTableName, String sWorkArea) throws NoSuchFieldException, IllegalArgumentException, ClassNotFoundException, FileNotFoundException, IOException, InstantiationException, IllegalAccessException(Code)(Java Doc) public static void rebuild(Properties oProps, String sTableName, String sWorkArea) throws SQLException, IOException, ClassNotFoundException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException, InstantiationException(Code)(Java Doc) public static void rebuild(Properties oProps, String sTableName) throws SQLException, IOException, ClassNotFoundException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException, InstantiationException(Code)(Java Doc)
|
|
|