Class LexiconMerger


  • public class LexiconMerger
    extends java.lang.Object
    Merges many lexicons, termids and offsets are not kept.
    Author:
    Vassilis Plachouras
    • Constructor Detail

      • LexiconMerger

        public LexiconMerger​(IndexOnDisk src1,
                             IndexOnDisk src2,
                             IndexOnDisk dest)
        A constructor that sets the filenames of the lexicon files to merge
        Parameters:
        src1 - Source index 1
        src2 - Source index 2
        dest - Destination index
    • Method Detail

      • mergeLexicons

        public void mergeLexicons()
        Merges the two lexicons into one. After this stage, the offsets in the lexicon are not correct. They will be updated only after creating the inverted file.
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        main
        Parameters:
        args -
        Throws:
        java.lang.Exception