Package com.greplin.lucene.util

Examples of com.greplin.lucene.util.IntersectionProvider


  }

  @Test
  public void testIntersectionWithFilter() throws Exception {
    IndexReader reader = createReaderWithSampleDocuments();
    IntersectionProvider filter = new FilterIntersectionProvider(
        TermsFilter.from(new Term("name", "one"), new Term("name", "two")));

    assertFilterBitsEqual(reader, new PhraseFilter("f", "world"), true, true, true);
    assertFilterBitsEqual(reader, new PhraseFilter(filter, "f", "world"), true, true, false);
View Full Code Here


  }

  @Test
  public void testIntersectionWithPredicate() throws Exception {
    IndexReader reader = createReaderWithSampleDocuments();
    IntersectionProvider predicate = new BitsProviderIntersectionProvider(
        new BitsProvider() {
          @Override
          public Bits get(IndexReader reader) throws IOException {
            return new Bits() {
              @Override
View Full Code Here

TOP

Related Classes of com.greplin.lucene.util.IntersectionProvider

Copyright © 2018 www.massapicom. 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.