105106107108109110111112113114
logger.info("Loaded Lucene index with "+ indexReader.numDocs() +" entries."); } catch (IOException ioe) { logger.info("Lucene index: " + indexDirAbsPath); throw new DictionaryException(ioe); } }
123124125126127128129130
return metaDataHitSet; } catch (IOException ioe) { throw new DictionaryException(ioe); } }
146147148149150151152153154
return false; } } catch (IOException ioe) { throw new DictionaryException(ioe); } }
136137138139140141142143
return false; } } catch (SQLException e) { throw new DictionaryException(e); } }
165166167168169170171172
} return metaDataHitSet; } catch (SQLException e) { throw new DictionaryException(e); } }
101102103104105106107108
logger.info( "Loaded Lucene index with " + indexReader.numDocs() + " entries." ); } catch ( IOException ioe ) { logger.info( "Lucene index: " + indexDirAbsPath ); throw new DictionaryException( ioe ); } }
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 ); } }
114115116117118119120121
final ResultSet rs = prepStmt.executeQuery(); rs.next(); final int count = rs.getInt( 1 ); return count > 0; } catch ( SQLException e ) { throw new DictionaryException( e ); } }
141142143144145146147148
final MetaDataHit mdh = new GenericMetaDataHitImpl( nameValMap ); metaDataHitSet.add( mdh ); } return metaDataHitSet; } catch ( SQLException e ) { throw new DictionaryException( e ); } }