Class BaseLuceneIndex

  • All Implemented Interfaces:
    org.uberfire.commons.lifecycle.Disposable, LuceneIndex, org.uberfire.ext.metadata.engine.Index
    Direct Known Subclasses:
    DirectoryLuceneIndex

    public abstract class BaseLuceneIndex
    extends Object
    implements LuceneIndex
    • Constructor Detail

      • BaseLuceneIndex

        public BaseLuceneIndex()
    • Method Detail

      • indexDocument

        public void indexDocument​(String id,
                                  org.apache.lucene.document.Document doc)
        Specified by:
        indexDocument in interface LuceneIndex
      • rename

        public void rename​(String sourceId,
                           org.apache.lucene.document.Document doc)
        Specified by:
        rename in interface LuceneIndex
      • lookupDocIdByPK

        protected int[] lookupDocIdByPK​(org.apache.lucene.search.IndexSearcher searcher,
                                        String... ids)
                                 throws IOException
        Throws:
        IOException
      • writer

        public abstract org.apache.lucene.index.IndexWriter writer()