0 Replies Latest reply: Jul 30, 2007 1:15 AM by 433840 RSS

    Ultrasearch JAVA API not does not give results of search

    433840
      Hi friends!

      I'm use Ultrasearch 10.1.0.4.0 and write program with use Ultrasearch JAVA API .

      QueryInstance qi = new QueryInstance();
      qi.setConnectionString("jdbc:oracle:thin:@cls111.ainf.ru:1525:ocs");

      qi.setUser("WK_TEST");

      qi.setPassword("WK_TEST");
      qi.setInstanceName("WK_INST");
      qi.setCloseConnection(false) ;



      String strKeyword = "ORACLE";


      InstanceMetaData metaData = qi.getMetaData();
      Query q = new Contains(strKeyword, metaData);
      Result r = qi.getResult( q, Locale.ENGLISH, 1, 10,Locale.ENGLISH, null,null, true, true );
      Request req = new Request();
      req.setQuery (q);
      Result r = qi.getResult(req);
      String str = r.toXML();

      out.println("<BR><B><center>"+str+ "<BR></CENTER></B><BR>");



      But program not give results. Though search gives out results on 'Oracle'.