Examples of AFilter


Examples of com.flaptor.hounder.searcher.filter.AFilter

  public void testNonMatchingFilters()  throws SearcherException{
    indexer.index(addA);
    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());
  }
View Full Code Here

Examples of com.flaptor.hounder.searcher.filter.AFilter

    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
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.