Federated search sample application

The FederatedSearchExample class provides a simple example of the minimum tasks that are required to submit a federated search to the search server.

Restriction: The FederatedSearchExample class does not support faceted search queries and results.
The FederatedSearchExample application shows how to:
  • Obtain a RemoteFederator object with a federator ID. This ID is the same as the ApplicationInfo object ID.
  • Create a new query object.
  • Set the result range.
  • Run the search by calling the RemoteFederator object's default search method.
The FederatedSearchExample.java file is in the following directories:
  • AIX® or Linux: /opt/IBM/es/samples/siapi
  • Windows: C:\Program Files\IBM\es\samples\siapi