127128129130131132133134135
indexer.index (uri.toString(), new CharArrayReader (revisionContent.getContent())); } catch (Exception e) { throw new IndexException (e); } //index(revisionContent, uri); }
156157158159160161162163
indexer.index (uri.toString(), new CharArrayReader (revisionContent.getContent())); } catch (Exception e) { throw new IndexException (e); } }
176177178179180181182183
LuceneIndexer indexer = new LuceneIndexer (indexpath); indexer.removeIndex (uri.toString()); } catch (Exception e) { throw new IndexException (e); } }
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); } }