Optimize the index after it is created
authorJan Lahoda <jlahoda@netbeans.org>
Wed, 06 Jul 2011 11:31:54 +0200
changeset 6232b29633e523d
parent 622 726459d70a59
child 624 627d12658781
Optimize the index after it is created
remoting/server/indexer/impl/src/org/netbeans/modules/jackpot30/backend/impl/OptionProcessorImpl.java
     1.1 --- a/remoting/server/indexer/impl/src/org/netbeans/modules/jackpot30/backend/impl/OptionProcessorImpl.java	Mon Jul 04 14:12:37 2011 +0200
     1.2 +++ b/remoting/server/indexer/impl/src/org/netbeans/modules/jackpot30/backend/impl/OptionProcessorImpl.java	Wed Jul 06 11:31:54 2011 +0200
     1.3 @@ -157,6 +157,7 @@
     1.4          } finally {
     1.5              if (w != null) {
     1.6                  try {
     1.7 +                    w.optimize(true);
     1.8                      w.close(true);
     1.9                  } catch (CorruptIndexException ex) {
    1.10                      Exceptions.printStackTrace(ex);