Sun Java System Portal Server 7 Developer's Guide

Chapter 28 Federated Search samples in Search SDK

This chapter describes the federated search sample programs and files included in the Search SDK.

Federated Search samples in Search SDK

The following federated search sample programs and files are included in the Search SDK:

sampledbs.soif

The sample SOIF file for setting up federated search to these four types of database servers:

  • Google (using Google API)

  • Relational Database (using JDBC connection)

  • Directory Server (using JNDI connection)

  • Remote RDM Server (using Search SDK)

Database connector Java programs

Each is the Java class to connect to the target database server using designated APIs and submit search query:

  • GoogleDb.java

  • JNDIDb.java

  • JDBCDb.java

  • RemoteRDMDb.java

Search result set Java programs

Each is the Java class to manage search results and convert the results to RDM search results (SOIF format):

  • GoogleResultSet.java

  • JNDIResultSet.java

  • JDBCResultSet.java

  • RemoteRDMResultSet.java

build.xml

Compile the above Java files and build a federatedsearch.jar.