Class CmsLuceneIndexWriter

java.lang.Object
org.opencms.search.CmsLuceneIndexWriter
All Implemented Interfaces:
I_CmsIndexWriter

public class CmsLuceneIndexWriter extends Object implements I_CmsIndexWriter
Delegates indexing to a standard Lucene IndexWriter.

Since:
8.0.2
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.apache.commons.logging.Log
    The log object for this class.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsLuceneIndexWriter(org.apache.lucene.index.IndexWriter indexWriter)
    Creates a new index writer based on the provided standard Lucene IndexWriter.
    CmsLuceneIndexWriter(org.apache.lucene.index.IndexWriter indexWriter, CmsSearchIndex index)
    Creates a new index writer based on the provided standard Lucene IndexWriter for the provided OpenCms search index instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close this IndexWriter.
    void
    Commit all previous operations.
    void
    Delete a document from the index.
    void
    As optimize is deprecated with Lucene 3.5, this implementation actually calls IndexWriter.forceMerge(int).
    void
    Update a document in the index.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait