|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchManager
Manages the search feature of Clearspace by defining properties of the search indexer. Indexing can either be done real-time by calling addToIndex(xxx) every time a new content object is created, or by running the indexer in timed update mode. The latter mode is preferable since it allows for faster content object posting.
The automated updating mode can be adjusted by setting how often batch indexing is done. You can adjust this interval to suit the needs of your community. Frequent updates mean that content objects will be searchable more quickly. Less frequent updates use fewer system resources. If you are not using the Jive system at all (for example, if you have your own search technology that you'd rather use), you should disable the search feature entirely. The following Jive properties correspond to the search manager settings:
| Method Summary | |
|---|---|
void |
addTextExtractor(String className)
Installs a new class into the list of available text extractors for the system. |
void |
addToIndex(Attachment attachment)
Adds an individual attachment to the index. |
void |
addToIndex(Blog blog)
Adds an individual blog to the index. |
void |
addToIndex(BlogPost blogPost)
Adds an individual blog posts to the index. |
void |
addToIndex(Comment comment)
Adds an individual comment to the index. |
void |
addToIndex(Community community)
Adds an individual community to the index. |
void |
addToIndex(Document document)
Adds an individual document to the index. |
void |
addToIndex(ForumMessage message)
Adds an individual message to the index. |
void |
addToIndex(Project project)
Adds an individual project to the index. |
void |
addToIndex(SocialGroup socialGroup)
Adds an individual socialGroup to the index. |
void |
addToIndex(com.jivesoftware.community.project.Task task)
Adds an individual task to the index. |
int |
getAutoIndexInterval()
Returns the number of minutes that the indexer waits between each update. |
int |
getCurrentCount()
Returns the number of content objects that have been indexed if an indexing operation is currently active (i.e., isBusy() returns true). |
Date |
getLastIndexedDate()
Returns the date that the last update to the index was made. |
int |
getPercentComplete()
Returns the percent complete that an indexing operation is if an indexing operation is currently active (i.e., isBusy() returns true). |
Collection<com.jivesoftware.community.search.TextExtractor> |
getTextExtractors()
Returns the current collection of TextExtractor objects. |
int |
getTotalCount()
Returns the total number of content objects that are to be indexed if an indexing operation is currently active (i.e., isBusy() returns true). |
boolean |
isAttachmentSearchEnabled()
Returns true if the attachment search feature is turned on. |
boolean |
isAutoIndexEnabled()
Returns true if auto indexing is turned on. |
boolean |
isBusy()
Returns true if the search manager is currently busy with an search indexing task. |
boolean |
isSearchEnabled()
Returns true if the search feature is turned on. |
boolean |
isWildcardIgnored()
Returns true if wildcarding is disabled. |
void |
optimize()
Optimizes the underlying search index for maximum speed. |
void |
rebuildIndex()
Manually rebuild the entire index. |
void |
removeFromIndex(Attachment attachment)
Removes an individual attachment from the index. |
void |
removeFromIndex(Blog blog)
Removes a blog from the index. |
void |
removeFromIndex(BlogPost blogPost)
Removes an individual blog post from the index. |
void |
removeFromIndex(Comment comment)
Removes an individual comment from the index. |
void |
removeFromIndex(Community community)
Removes a community from the index. |
void |
removeFromIndex(Document document)
Removes an individual document from the index. |
void |
removeFromIndex(DocumentType type)
Removes all documents of a given document type from the index. |
void |
removeFromIndex(ForumMessage message)
Removes an individual message from the index. |
void |
removeFromIndex(ForumThread thread)
Removes a thread from the index. |
void |
removeFromIndex(Project project)
Removes a project from the index. |
void |
removeFromIndex(SocialGroup socialGroup)
Removes a social group from the index. |
void |
removeFromIndex(com.jivesoftware.community.project.Task task)
Removes a task from the index. |
void |
removeTextExtractor(String className)
Removes an existing text extractor from the list of current text extractors. |
void |
setAttachmentSearchEnabled(boolean attachmentSearchEnabled)
Enables or disables the attachment search feature. |
void |
setAutoIndexEnabled(boolean value)
Enables or disables auto indexing. |
void |
setAutoIndexInterval(int minutes)
Sets the amount of time that indexer should wait between updating the index. |
void |
setSearchEnabled(boolean searchEnabled)
Enables or disables the search feature. |
void |
setWildcardIgnored(boolean value)
Turns on or off wildcarding. |
void |
updateIndex()
Manually update the index to include all new and updated content objects since the last update. |
void |
updateIndex(Attachment attachment)
Updates an individual attachment in the index. |
void |
updateIndex(Blog blog)
Update an individual blog in the index. |
void |
updateIndex(BlogPost blogPost)
Update an individual blog post in the index. |
void |
updateIndex(Comment comment)
Updates an individual comment in the index. |
void |
updateIndex(Community community)
Update an individual community in the index. |
void |
updateIndex(Document document)
Update an individual document in the index. |
void |
updateIndex(ForumMessage message)
Update an individual message in the index. |
void |
updateIndex(Project project)
Update an individual project in the index. |
void |
updateIndex(SocialGroup socialGroup)
Update an individual social group in the index. |
void |
updateIndex(com.jivesoftware.community.project.Task task)
Update an individual task in the index. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
boolean isSearchEnabled()
void setSearchEnabled(boolean searchEnabled)
searchEnabled - true to enable the search feature, false to disable.boolean isAttachmentSearchEnabled()
void setAttachmentSearchEnabled(boolean attachmentSearchEnabled)
attachmentSearchEnabled - true to enable attachment search, false to disable.boolean isWildcardIgnored()
void setWildcardIgnored(boolean value)
value - true if wildcards are to be ignored. false enables wildcard
search.boolean isAutoIndexEnabled()
void setAutoIndexEnabled(boolean value)
value - true to turn auto indexing on, false to turn it off.Collection<com.jivesoftware.community.search.TextExtractor> getTextExtractors()
void addTextExtractor(String className)
throws ClassNotFoundException
TextExtractor.
className - the fully qualified name of the text extractor.
ClassNotFoundException - if the class could not be loaded.
IllegalArgumentException - if the classname is not a TextExtractor or cannot be loaded.
void removeTextExtractor(String className)
throws ClassNotFoundException
className - the fully qualified name of the text extractor to remove.
ClassNotFoundException - if the class could not be loaded.
IllegalArgumentException - if the classname is not a TextExtractor or cannot be loaded.boolean isBusy()
rebuildIndex() will do nothing. If you'd like to
query the status of the indexing operation while the manager is busy, use the
getPercentComplete() method.
int getPercentComplete()
isBusy() returns true). Valid percentages returned are from
0 to 100. If no indexing operation is active, this method will return -1.
int getTotalCount()
isBusy() returns true).
int getCurrentCount()
isBusy() returns true).
int getAutoIndexInterval()
void setAutoIndexInterval(int minutes)
minutes - the number of minutes between automatic index updates.Date getLastIndexedDate()
void optimize()
void updateIndex()
void rebuildIndex()
void addToIndex(Blog blog)
blog - the blog to add to the indexvoid addToIndex(BlogPost blogPost)
blogPost - the blog post to add to the index.void addToIndex(ForumMessage message)
message - the message to add to the index.void addToIndex(Document document)
document - the document to add to the index.void addToIndex(Comment comment)
comment - the comment to add to the index.void addToIndex(Attachment attachment)
attachment - the attachment to add to the index.void addToIndex(Community community)
community - the community to add to the indexvoid addToIndex(Project project)
project - the project to add to the indexvoid addToIndex(SocialGroup socialGroup)
socialGroup - the socialGroup to add to the indexvoid addToIndex(com.jivesoftware.community.project.Task task)
task - the task to add to the indexvoid updateIndex(Blog blog)
blog - the blog to update in the index.void updateIndex(BlogPost blogPost)
blogPost - the blog post to update in the index.void updateIndex(ForumMessage message)
message - the message to update in the index.void updateIndex(Document document)
document - the document to update in the index.void updateIndex(Comment comment)
comment - the comment to update in the index.void updateIndex(Attachment attachment)
attachment - the attachment to update in the index.void updateIndex(Community community)
community - the community to update in the index.void updateIndex(Project project)
project - the project to update in the index.void updateIndex(SocialGroup socialGroup)
socialGroup - the social group to update in the index.void updateIndex(com.jivesoftware.community.project.Task task)
task - the task to update in the index.void removeFromIndex(Blog blog)
blog - the blog to remove from the index.void removeFromIndex(BlogPost blogPost)
blogPost - the blogPost to remove from the index.void removeFromIndex(ForumMessage message)
message - the message to remove from the index.void removeFromIndex(ForumThread thread)
thread - the thread to remove from the index.void removeFromIndex(Document document)
document - the document to remove from the index.void removeFromIndex(Comment comment)
comment - the comment to remove from the index.void removeFromIndex(Attachment attachment)
attachment - the attachment to remove from the index.void removeFromIndex(Community community)
community - the community to remove from the index.void removeFromIndex(Project project)
project - the project to remove from the index.void removeFromIndex(SocialGroup socialGroup)
socialGroup - the social group to remove from the index.void removeFromIndex(com.jivesoftware.community.project.Task task)
task - the task to remove from the index.void removeFromIndex(DocumentType type)
type - the document type to remove from the index.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||