Ejemplo n.º 1
0
  private static void waitTillServerStarts() throws Exception {

    SenseiRequest req = new SenseiRequest();
    SenseiResult res = null;
    int count = 0;
    do {
      Thread.sleep(500);
      res = broker.browse(req);
      System.out.println("" + res.getNumHits() + " loaded...");
      ++count;
    } while (count < 20 && res.getNumHits() < 15000);
  }
Ejemplo n.º 2
0
 public void test1() {
   SenseiResult result = inMemorySenseiService.doQuery(InMemoryIndexPerfTest.getRequest(), docs);
   assertEquals(16, result.getNumHits());
   assertEquals(100, result.getTotalDocs());
 }