jzimmerlin

Auxiliary Search Engine Indexer

Discussion created by jzimmerlin on Aug 21, 2008

Case #31256

Details


Status: Closed
Case Type: /
Severity: /
Product: /
Component: /
Environment: /
Internal Discussion Link: /

Description


We have an external search engine that we need to index all content in Clearspace. We've done this with Forums previously, using a SQL-based tool to crawl the DB message table nightly. Now that we're moving to Clearspace, we want to index content immediately when it's posted, so we need a hook to intercept content after it's been successfully published or updated. Is there a plugin sort of way to hook into Clearspace's indexer?


Comments


Hi,

 

Something like this would probably be possible using the event system in Clearspace. If you look through the API you will be able to find listeners for just about any action (edit, add, delete) and any content type. (blogs, messages, documents). The "FeedYourBlog" plugin uses the BlogListener and might be a good place to start from some examples:

 

https://svn.jivesoftware.com/svn/dev/repos/jive/clearspace_2_0/feedblog/src/com/jivesoftware/clearspace/plugin/feedblog/FeedBlogPlugin.java

 

Event API:

 

http://www.jivesoftware.com/builds/docs/clearspace/2.0.5/javadoc/api/com/jivesoftware/community/event/package-summary.html

 

 

Good luck. Thanks!

 

-Todd



I've been playing with the event mechanism and it looks like it will do what we need. Thanks for the help!


Outcomes