ICEFaces tree, data load
How do I load first tree node data set by default? Here is an screen shot when the application gets initialized.

EPF Tree
Now, if I click “EPF Work Group”, I get this following data

EPF Tree 2
But, I’d like to see this screen without clicking “EPF Work Group” tree node or when application gets initialized. I assume, I have to do it in backing bean, fire up an Action Event or so on.
Solution: http://www.icefaces.org/JForum/posts/list/9588.page
Regain search engine on Glassfish app server
“Regain is a Java search engine based on Jakarta Lucene. It provides indexing and searching files for plenty of formats (currently HTML, XML, Excel, Powerpoint, Word, PDF and RTF). A TagLibrary eases integrating search results in your JSP based web page.” You may download the production version from http://regain.sourceforge.net/ or beta version from http://www.assembla.com/spaces/regain2/documents
Our NAS division inTranet web site needed a search look up like Google search. I came across with Regain Search engine after done some research. It is pretty simple to install on a server (Solaris box). Regain does not do any database search, but if you have a link that requires to go to database, Regain will crwal up the link store that file metadata in the index. Hibernate search or Lucene search does the full scale database search, I have not used them yet but that’s what I hear.
Here are few steps to install Regain on Glassfish: (Unzip regain_v1.5.0-preview-80717-1556_server.zip)
- Create a directory under ../SUNWappserver/domains/domain1
- Name it regain
- Copy the crawler directory from c:\regain\runtime (after unzipped) and paste it to domain1/regain/
- Under crawler dir, you will find CrawlerConfiguration.xml
- Modify the xml file with your domain name etc.
- Create a directory and call it searchindex under crawler
- Now the fun part is to build indexing
- Change directory (cd) to domian1/regain/crawler dir and run this following command
- java -jar regain-crawler.jar or, java -jar regain-crawler.jar –help (more options)
- Copy
conf dir, it's sub directories and the xml file(all three -> conf\regain\SearchConfiguration.xml ) from the downloaded zip-file (can be found underregain\runtime\search) and paste 'em directly under domian1/application
- Modify the SearchConfiguration.xml file mainly line 74, 80 and 83
- Deploy the regain.war file via app server’s beautiful admin gui.
- Modify the web.xml (domain1\applications\j2ee-modules\regain\WEB-INF). You have to specify the regain webapp where to look for search configuration file.
<!-- The location of the configuration file --> <context-param> <param-name>searchConfigFile</param-name> <param-value>../conf/regain/SearchConfiguration.xml</param-value> </context-param>
Regain webapp’s web.xml map to SearchConfiguration.xml and SearchConfiguration.xml know where to find searchindex dir to bring up the query results. (Three steps).
7. Open up a browser and type http://yourdomainname/contextName, i.e. http://axous2.abc.aaa.info/search
Happy searching!
Home page: http://regain.sourceforge.net/
Open Source Full Text Search Engines Written In Java: http://www.manageability.org/blog/stuff/full-text-lucene-jxta-search-engine-java-xml
-
Archives
- November 2009 (1)
- July 2009 (1)
- June 2009 (5)
- May 2009 (2)
- April 2009 (4)
- March 2009 (2)
- January 2009 (3)
- December 2008 (1)
- November 2008 (2)
- October 2008 (1)
- September 2008 (3)
- August 2008 (2)
-
Categories
-
RSS
Entries RSS
Comments RSS