All Downloads are FREE. Search and download functionalities are using the official Maven repository.

querqy.lucene.contrib.rewrite.wordbreak.LuceneCompounder Maven / Gradle / Ivy

The newest version!
package querqy.lucene.contrib.rewrite.wordbreak;

import org.apache.lucene.index.IndexReader;
import querqy.model.Term;

import java.io.IOException;
import java.util.List;

public interface LuceneCompounder {

    List combine(Term[] terms, final IndexReader indexReader, boolean reverse) throws IOException;

    class CompoundTerm {

        public final CharSequence value;
        public final Term[] originalTerms;

        public CompoundTerm(final CharSequence value, final Term[] originalTerms) {
            this.value = value;
            this.originalTerms = originalTerms;
        }

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy