querqy.rewrite.QueryRewriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of querqy-core Show documentation
Show all versions of querqy-core Show documentation
Querqy library for query rewriting: Querqy Core
/**
*
*/
package querqy.rewrite;
import java.util.Collections;
import java.util.Set;
import querqy.model.ExpandedQuery;
import querqy.model.Term;
/**
* A query rewriter.
* Query rewriter implementations shall guarantee to preserve the number of top-level query clauses of the
* {@link ExpandedQuery#userQuery} when rewriting the query.
*
* @author rene
*
*/
public interface QueryRewriter {
Set EMPTY_GENERABLE_TERMS = Collections.emptySet();
ExpandedQuery rewrite(ExpandedQuery query);
}