Examples of SearchFactory


Examples of org.hibernate.search.engine.SearchFactory

    int numDocsForeigner = countSizeForType( ArrayBridgeTestEntity.class );
    return numDocsForeigner == 0;
  }

  private int countSizeForType(Class<?> type) {
    SearchFactory searchFactory = fullTextSession.getSearchFactory();
    int numDocs = -1; // to have it fail in case of errors
    IndexReader locationIndexReader = searchFactory.getIndexReaderAccessor().open( type );
    try {
      numDocs = locationIndexReader.numDocs();
    }
    finally {
      searchFactory.getIndexReaderAccessor().close( locationIndexReader );
    }
    return numDocs;
  }
View Full Code Here

Examples of org.hibernate.search.engine.SearchFactory

    int numDocsForeigner = countSizeForType( MapBridgeTestEntity.class );
    return numDocsForeigner == 0;
  }

  private int countSizeForType(Class<?> type) {
    SearchFactory searchFactory = fullTextSession.getSearchFactory();
    int numDocs = -1; // to have it fail in case of errors
    IndexReader locationIndexReader = searchFactory.getIndexReaderAccessor().open( type );
    try {
      numDocs = locationIndexReader.numDocs();
    }
    finally {
      searchFactory.getIndexReaderAccessor().close( locationIndexReader );
    }
    return numDocs;
  }
View Full Code Here

Examples of org.hibernate.search.engine.SearchFactory

    int numDocsForeigner = countSizeForType( IterableBridgeTestEntity.class );
    return numDocsForeigner == 0;
  }

  private int countSizeForType(Class<?> type) {
    SearchFactory searchFactory = fullTextSession.getSearchFactory();
    int numDocs = -1; // to have it fail in case of errors
    IndexReader locationIndexReader = searchFactory.getIndexReaderAccessor().open( type );
    try {
      numDocs = locationIndexReader.numDocs();
    }
    finally {
      searchFactory.getIndexReaderAccessor().close( locationIndexReader );
    }
    return numDocs;
  }
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.