it.unimi.di.mg4j.query.nodes
Interface QueryTransformer
- All Known Implementing Classes:
- AbstractTermExpander, MultiIndexTermExpander
public interface QueryTransformer
A strategy for transforming queries.
Instances of this class represent query transformation that are applied at the
structural level—that is, when the query has already been parsed and turned
into a composite Query
object.
If your only need it to replace terms, for instance, for query expansion, you
can subclass from AbstractTermExpander
, which just requires specifying how
to expand a term or a prefix.
transform
Query transform(Query q)