118119120121122123124125
metaDataHitSet.add( mdh ); } return metaDataHitSet; } catch ( IOException ioe ) { // thrown by IndexSearcher.search(), IndexSearcher.doc() throw new DictionaryException( ioe ); } }
135136137138139140141142143
final TopDocs topDoc = iv_searcher.search( q, iv_maxHits ); final ScoreDoc[] hits = topDoc.scoreDocs; return hits != null && hits.length > 0; } catch ( IOException ioe ) { // thrown by IndexSearcher.search() throw new DictionaryException( ioe ); } }
102103104105106107108109
logger.info( "Loaded Lucene index with " + indexReader.numDocs() + " entries." ); } catch ( IOException ioe ) { logger.info( "Lucene index: " + indexDirAbsPath ); throw new DictionaryException( ioe ); } }