Examples of totalGroupsEstimation()


Examples of com.flaptor.hounder.searcher.GroupedSearchResults.totalGroupsEstimation()

    Execute.sleep(8000);
    GroupedSearchResults sr = searcher.search(new TermQuery("content", "contenta"), 0, 10, noGroup, 1, null, null);
    assertEquals(0, sr.totalGroupsEstimation());
    Execute.sleep(8000);
    sr = searcher.search(new TermQuery("content", "contentb"), 0, 10, noGroup, 1, null, null);
    assertEquals(0, sr.totalGroupsEstimation());

    indexer.index(addA);
    Execute.sleep(8000);
    sr = searcher.search(new TermQuery("content", "contenta"), 0, 10, noGroup,1, null, null);
    assertEquals(1, sr.totalGroupsEstimation());
View Full Code Here

Examples of com.flaptor.hounder.searcher.GroupedSearchResults.totalGroupsEstimation()

    assertEquals(0, sr.totalGroupsEstimation());

    indexer.index(addA);
    Execute.sleep(8000);
    sr = searcher.search(new TermQuery("content", "contenta"), 0, 10, noGroup,1, null, null);
    assertEquals(1, sr.totalGroupsEstimation());
    sr = searcher.search(new TermQuery("content", "contentb"), 0, 10, noGroup, 1, null, null);
    assertEquals(0, sr.totalGroupsEstimation());

    indexer.index(addB);
    Execute.sleep(8000);
View Full Code Here

Examples of com.flaptor.hounder.searcher.GroupedSearchResults.totalGroupsEstimation()

    indexer.index(addA);
    Execute.sleep(8000);
    sr = searcher.search(new TermQuery("content", "contenta"), 0, 10, noGroup,1, null, null);
    assertEquals(1, sr.totalGroupsEstimation());
    sr = searcher.search(new TermQuery("content", "contentb"), 0, 10, noGroup, 1, null, null);
    assertEquals(0, sr.totalGroupsEstimation());

    indexer.index(addB);
    Execute.sleep(8000);
    sr = searcher.search(new TermQuery("content", "contenta"), 0, 10, noGroup, 1, null, null);
    assertEquals(1, sr.totalGroupsEstimation());
View Full Code Here

Examples of com.flaptor.hounder.searcher.GroupedSearchResults.totalGroupsEstimation()

    assertEquals(0, sr.totalGroupsEstimation());

    indexer.index(addB);
    Execute.sleep(8000);
    sr = searcher.search(new TermQuery("content", "contenta"), 0, 10, noGroup, 1, null, null);
    assertEquals(1, sr.totalGroupsEstimation());
    sr = searcher.search(new TermQuery("content", "contentb"), 0, 10, noGroup, 1, null, null);
    assertEquals(1, sr.totalGroupsEstimation());

  }
View Full Code Here

Examples of com.flaptor.hounder.searcher.GroupedSearchResults.totalGroupsEstimation()

    indexer.index(addB);
    Execute.sleep(8000);
    sr = searcher.search(new TermQuery("content", "contenta"), 0, 10, noGroup, 1, null, null);
    assertEquals(1, sr.totalGroupsEstimation());
    sr = searcher.search(new TermQuery("content", "contentb"), 0, 10, noGroup, 1, null, null);
    assertEquals(1, sr.totalGroupsEstimation());

  }

  /**
   * Tests filters that do not mach any document, filter them all.
View Full Code Here

Examples of com.flaptor.hounder.searcher.GroupedSearchResults.totalGroupsEstimation()

    indexer.index(addB);
    Execute.sleep(8000);

    AFilter filter = new ValueFilter("nonExistentField", "noValue");
    GroupedSearchResults sr = searcher.search(new MatchAllQuery(), 0, 10, noGroup, 1, filter, null);
    assertEquals(0, sr.totalGroupsEstimation());
  }


  /**
   * Tests a value filter that matches some documents.
View Full Code Here

Examples of com.flaptor.hounder.searcher.GroupedSearchResults.totalGroupsEstimation()

  public void testValueFilter()  throws SearcherException{
    indexer.index(addA);
    indexer.index(addB);
    Execute.sleep(8000);
    GroupedSearchResults sr = searcher.search(new MatchAllQuery(), 0, 10, noGroup, 1, null, null);
    assertEquals(2, sr.totalGroupsEstimation());

    AFilter filter = new ValueFilter("content", "contenta");
    sr = searcher.search(new MatchAllQuery(), 0, 10, noGroup, 1, filter, null);
    assertEquals(1, sr.totalGroupsEstimation());
  }
View Full Code Here

Examples of com.flaptor.hounder.searcher.GroupedSearchResults.totalGroupsEstimation()

    GroupedSearchResults sr = searcher.search(new MatchAllQuery(), 0, 10, noGroup, 1, null, null);
    assertEquals(2, sr.totalGroupsEstimation());

    AFilter filter = new ValueFilter("content", "contenta");
    sr = searcher.search(new MatchAllQuery(), 0, 10, noGroup, 1, filter, null);
    assertEquals(1, sr.totalGroupsEstimation());
  }


    @TestInfo(testType = TestInfo.TestType.SYSTEM,
            requiresPort = {10000, 10001, 10010, 10011, 10012})
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.