Class RealtimeLuceneTextIndex

    • Constructor Detail

      • RealtimeLuceneTextIndex

        public RealtimeLuceneTextIndex​(String column,
                                       File segmentIndexDir,
                                       String segmentName,
                                       List<String> stopWordsInclude,
                                       List<String> stopWordsExclude,
                                       boolean useCompoundFile,
                                       int maxBufferSizeMB)
        Created by MutableSegmentImpl for each column on which text index has been enabled
        Parameters:
        column - column name
        segmentIndexDir - realtime segment consumer dir
        segmentName - realtime segment name
        stopWordsInclude - the words to include in addition to the default stop word list
        stopWordsExclude - stop words to exclude from default stop words
    • Method Detail

      • add

        public void add​(String[] documents)
        Adds a new document, made up of multiple values.
        Specified by:
        add in interface MutableTextIndex
      • getDictIds

        public org.roaringbitmap.buffer.ImmutableRoaringBitmap getDictIds​(String searchQuery)
        Specified by:
        getDictIds in interface TextIndexReader
      • getDocIds

        public org.roaringbitmap.buffer.MutableRoaringBitmap getDocIds​(String searchQuery)
        Specified by:
        getDocIds in interface TextIndexReader
      • getSearcherManager

        public org.apache.lucene.search.SearcherManager getSearcherManager()