128129130131132133134135136137138
// ignore exception } } throw new IndexException(e.getMessage(), e); } finally { if (indexWriter != null) {
174175176177178179180181182183184
216217218219220221222223224225226227
} catch (ParseException e) { // ignore exception } catch (CorruptIndexException ex) { throw new IndexException(ex.getMessage(), ex); } catch (IOException ex) { throw new IndexException(ex.getMessage(), ex); } }
246247248249250251252253254255256257258259
try { indexWriter.addDocument(luceneDoc); } catch (CorruptIndexException e) { throw new IndexException(e.getMessage(), e); } catch (IOException e) { throw new IndexException(e.getMessage(), e); } } // writer.close();
283284285286287288289290291292293
339340341342343344345346347348349350
} return results; } catch (CorruptIndexException ex) { throw new IndexException(ex.getMessage(), ex); } catch (IOException ex) { throw new IndexException(ex.getMessage(), ex); } }