| |
|
| java.lang.Object com.mvnforum.search.attachment.AttachmentIndexer
AttachmentIndexer | public class AttachmentIndexer (Code) | | |
FIELD_ATTACHMENT_DATE | final public static String FIELD_ATTACHMENT_DATE(Code) | | |
FIELD_ATTACHMENT_DESCRIPTION | final public static String FIELD_ATTACHMENT_DESCRIPTION(Code) | | |
FIELD_ATTACHMENT_ID | final public static String FIELD_ATTACHMENT_ID(Code) | | |
FIELD_ATTACHMENT_NAME | final public static String FIELD_ATTACHMENT_NAME(Code) | | |
FIELD_FORUM_ID | final public static String FIELD_FORUM_ID(Code) | | |
deleteAttachmentFromIndex | static void deleteAttachmentFromIndex(int attachmentID) throws SearchException(Code) | | This method is used for deleting Attachment from index.
Parameters: AttachmentID - is id of the Attachment that should be deleted throws: SearchException - |
doIndexAttachment | static void doIndexAttachment(AttachmentBean attachmentBean, IndexWriter writer) throws SearchException(Code) | | This method is used for adding single Attachment to index
Note: this method does not close the writer
Parameters: AttachmentBean - A Attachment that should be indexed Parameters: writer - IndexWriter that is used for storing throws: SearchException - |
getAnalyzer | static Analyzer getAnalyzer()(Code) | | |
getIndexWriter | static IndexWriter getIndexWriter(Directory directory, boolean create) throws SearchException(Code) | | This method is used for getting new IndexWriter. It can create new index
or add Attachment to existing index. Creating new index will delete previous so it
should be used for rebuilding index.
Parameters: create - - true if new index should be created.- false for adding attachments to existing index IndexWriter object that is used for adding attachments to index |
getNumDocs | public static int getNumDocs()(Code) | | |
scheduleAddAttachmentTask | public static void scheduleAddAttachmentTask(AttachmentBean atachmentBean)(Code) | | |
scheduleDeleteAttachmentTask | public static void scheduleDeleteAttachmentTask(int objectID)(Code) | | |
scheduleRebuildIndexTask | public static void scheduleRebuildIndexTask()(Code) | | |
scheduleUpdateAttachmentTask | public static void scheduleUpdateAttachmentTask(AttachmentBean attachmentBean)(Code) | | |
|
|
|