Package com.gentics.cr.lucene.indexaccessor

Examples of com.gentics.cr.lucene.indexaccessor.IndexAccessor.release()


        }
      } finally {
        // if documents where added to the index create a reopen file and
        // optimize the writer
        log.debug("Number of indexed Synonyms finished: " + synonymWriter.numDocs());
        synonymAccessor.release(synonymWriter);
      }
 
      log.debug("Finished reindexing synonym index.");
      ucReIndex.stop();
    } catch (Exception e) {
View Full Code Here


        for (int i = 0; i < searchedAttributes.length; i++) {
          query = query + " OR " + searchedAttributes[i] + ":" + d.get("Synonym");
        }
      }
    } finally {
      ia.release(synonymSearcher);
      ia.release(synonymReader, false);
    }

    return query;
  }
View Full Code Here

          query = query + " OR " + searchedAttributes[i] + ":" + d.get("Synonym");
        }
      }
    } finally {
      ia.release(synonymSearcher);
      ia.release(synonymReader, false);
    }

    return query;
  }
View Full Code Here

      autocompleteLocation.resetIndexJobCreationTimes();
      autocompleteLocation.createReopenFile();
    } catch (IOException e) {
      log.error("Could not clear index", e);
    } finally {
      ia.release(writer);
    }
    log.debug("Finished clearing index.");

  }
View Full Code Here

    } finally {

      sia.release(sourceReader, false);
      // close writer

      aia.release(writer);
      // aia.release(reader,false);
    }
    log.debug("Finished reindexing autocomplete index.");
    ucReIndex.stop();
  }
View Full Code Here

        bean.set(SOURCE_WORD_FIELD, d.get(SOURCE_WORD_FIELD));
        bean.set(COUNT_FIELD, d.get(COUNT_FIELD));
        result.add(bean);
      }
    } finally {
      ia.release(autoCompleteSearcher);
      ia.release(autoCompleteReader, false);
    }

    return result;
  }
View Full Code Here

        bean.set(COUNT_FIELD, d.get(COUNT_FIELD));
        result.add(bean);
      }
    } finally {
      ia.release(autoCompleteSearcher);
      ia.release(autoCompleteReader, false);
    }

    return result;
  }
View Full Code Here

              reopened = true;
              lastupdatestored = lastupdate;
            }
          }
        } finally {
          ia.release(reader, false);
        }
        if (reopened) {

          reIndex();
View Full Code Here

    } finally {

      sia.release(sourceReader, false);
      // close writer

      aia.release(writer);
      // aia.release(reader,false);
    }
    autocompleteLocation.createReopenFile();
    log.debug("Finished reindexing autocomplete index.");
    ucReIndex.stop();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.