Connecting to the IAS Server

Call the IasCrawlerLocator.create() method to connect to the IAS Server.

The IasCrawlerLocator class establishes a connection with the IAS Server. In particular, the IasCrawlerLocator.getService() method is the call that makes the connection. The ServiceAddress stores connection information including the host, and port, and context path of the IAS Server.

To create a connection to the IAS Server:

  1. Create a ServiceAddress object and specify the host and port of the server running the IAS Server and also specify the contextPath of WebLogic. If you are installing into Jetty, not WebLogic, the contextPath can be set to an empty string.
  2. Create an IasCrawlerLocator by calling create() and specifying the ServiceAddress object. For example:
    ServiceAddress address = new ServiceAddress("localhost", 8401, contextPath); 
    IasCrawlerLocator locator = IasCrawlerLocator.create(address);
  3. Create an IasCrawler object and call getService() to establish a connection to the server and the Endeca IAS Service. For example:
    IasCrawler crawler = locator.getService();
You now have a connection to the IAS Server that can perform crawling operations.