Java Doc for PostIndexer.java in » Forum » mvnforum-1.1 » com » mvnforum » search » post » Java Source Code / Java DocumentationJava Source Code and Java Documentation
This method is used for deleting all posts in a forum from index.
Parameters: forumID - id of the forum that should be deleted throws: SearchException -
This method is used for deleting all posts in a thread from index.
Parameters: threadID - id of the thread that should be deleted throws: SearchException -
This method is used for adding single post to index
Note: this method does not close the writer
Parameters: post - A post that should be indexed Parameters: writer - IndexWriter that is used for storing throws: SearchException -
This method is used for getting new IndexWriter. It can create new index
or add post 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 posts to existing index IndexWriter object that is used for adding posts to index