| |
|
| java.lang.Object com.mvnforum.search.member.MemberIndexer
MemberIndexer | public class MemberIndexer (Code) | | |
FIELD_CREATION_DATE | final public static String FIELD_CREATION_DATE(Code) | | |
FIELD_MEMBER_COUNTRY | final public static String FIELD_MEMBER_COUNTRY(Code) | | |
FIELD_MEMBER_EMAIL | final public static String FIELD_MEMBER_EMAIL(Code) | | |
FIELD_MEMBER_FIRSTNAME | final public static String FIELD_MEMBER_FIRSTNAME(Code) | | |
FIELD_MEMBER_ID | final public static String FIELD_MEMBER_ID(Code) | | |
FIELD_MEMBER_LASTNAME | final public static String FIELD_MEMBER_LASTNAME(Code) | | |
FIELD_MEMBER_NAME | final public static String FIELD_MEMBER_NAME(Code) | | |
deleteMemberFromIndex | static void deleteMemberFromIndex(int memberID) throws SearchException(Code) | | This method is used for deleting Member from index.
Parameters: MemberID - id of the Member that should be deleted throws: SearchException - |
doIndexMember | static void doIndexMember(MemberBean memberBean, IndexWriter writer) throws SearchException(Code) | | This method is used for adding single Member to index
Note: this method does not close the writer
Parameters: MemberBean - A Member 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 Member 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 members to existing index IndexWriter object that is used for adding members to index |
getNumDocs | public static int getNumDocs()(Code) | | |
scheduleAddMemberTask | public static void scheduleAddMemberTask(MemberBean MemberBean)(Code) | | |
scheduleDeleteMemberTask | public static void scheduleDeleteMemberTask(int objectID)(Code) | | |
scheduleRebuildIndexTask | public static void scheduleRebuildIndexTask()(Code) | | |
scheduleUpdateMemberTask | public static void scheduleUpdateMemberTask(MemberBean MemberBean)(Code) | | |
|
|
|