@Test public void testEstimation() { assertTrue(this.search.estimateSearchResults(new SearchQuery("John", new String[] {"ESV_th"}, "false", 0, 0, 0, null)) > 100); }
@Override public int estimateSearchResults(final SearchQuery sq) { final long start = System.currentTimeMillis(); final Key k = searchKeys(sq); LOGGER.trace("Took [{}]ms", System.currentTimeMillis() - start); return k.getCardinality(); }
JSwordSearchServiceImpl implements JSwordSearchService { @Override public int estimateSearchResults(final SearchQuery sq) { final long start = System.currentTimeMillis(); final Key k = searchKeys(sq); LOGGER.trace("Took [{}]ms", System.currentTimeMillis() - start); return k.getCardinality(); } }
JSwordSearchServiceImpl implements JSwordSearchService { @Override public int estimateSearchResults(final SearchQuery sq) { final long start = System.currentTimeMillis(); final Key k = searchKeys(sq); LOGGER.trace("Took [{}]ms", System.currentTimeMillis() - start); return k.getCardinality(); } @Inject  JSwordSearchServiceImpl(final JSwordVersificationService av11nService,
                                   final JSwordMetadataService metadataService,
                                   final JSwordPassageService jsword); }
JSwordSearchServiceImpl implements JSwordSearchService { @Override public int estimateSearchResults(final SearchQuery sq) { final long start = System.currentTimeMillis(); final Key k = searchKeys(sq); LOGGER.trace("Took [{}]ms", System.currentTimeMillis() - start); return k.getCardinality(); } @Inject  JSwordSearchServiceImpl(final JSwordVersificationService av11nService,
                                   final JSwordMetadataService metadataService,
                                   final JSwordPassageService jsword); @Override int estimateSearchResults(final SearchQuery sq); @Override Key searchKeys(final SearchQuery sq); @Override SearchResult search(final SearchQuery sq, final String version,  
                               final LookupOption... options); @Override SearchResult retrieveResultsFromKeys(final SearchQuery sq, final Key results,
                                                final String version, final LookupOption... options); @Override SearchResult getResultsFromTrimmedKeys(final SearchQuery sq, final String[] versions, final int total, final Key newResults, final LookupOption... options); @Override int getTotal(final Key results); @Override Key rankAndTrimResults(final SearchQuery sq, final Key results); IndexSearcher getIndexSearcher(String bookName); }
JSwordSearchServiceImpl implements JSwordSearchService { @Override public int estimateSearchResults(final SearchQuery sq) { final long start = System.currentTimeMillis(); final Key k = searchKeys(sq); LOGGER.trace("Took [{}]ms", System.currentTimeMillis() - start); return k.getCardinality(); } @Inject  JSwordSearchServiceImpl(final JSwordVersificationService av11nService,
                                   final JSwordMetadataService metadataService,
                                   final JSwordPassageService jsword); @Override int estimateSearchResults(final SearchQuery sq); @Override Key searchKeys(final SearchQuery sq); @Override SearchResult search(final SearchQuery sq, final String version,  
                               final LookupOption... options); @Override SearchResult retrieveResultsFromKeys(final SearchQuery sq, final Key results,
                                                final String version, final LookupOption... options); @Override SearchResult getResultsFromTrimmedKeys(final SearchQuery sq, final String[] versions, final int total, final Key newResults, final LookupOption... options); @Override int getTotal(final Key results); @Override Key rankAndTrimResults(final SearchQuery sq, final Key results); IndexSearcher getIndexSearcher(String bookName);  }