|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.di.mg4j.query.nodes.AbstractTermExpander
it.unimi.di.mg4j.query.nodes.MultiIndexTermExpander
public class MultiIndexTermExpander
A term expander that replaces every term or prefix with a disjunction of queries; each query is made by the same term or prefix preceded by a selection over a different index.
| Nested Class Summary | |
|---|---|
protected class |
MultiIndexTermExpander.ExpanderVisitor
|
| Field Summary | |
|---|---|
String[] |
index
The list of index names that will be used to expand the term. |
int |
n
A copy of the length of index. |
| Constructor Summary | |
|---|---|
MultiIndexTermExpander(String... index)
Creates a new multi-index term expander. |
|
| Method Summary | |
|---|---|
protected Query |
expand(Consecutive consecutive)
|
protected Query |
expand(OrderedAnd orderedAnd)
|
Query |
expand(Prefix prefix)
Expands a prefix. |
Query |
expand(Term term)
Expands a single term. |
protected MultiIndexTermExpander.ExpanderVisitor |
expanderVisitor()
Returns a new expander visitor. |
| Methods inherited from class it.unimi.di.mg4j.query.nodes.AbstractTermExpander |
|---|
transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String[] index
public final int n
index.
| Constructor Detail |
|---|
public MultiIndexTermExpander(String... index)
index - a list of index names that will be used to expand the term.| Method Detail |
|---|
protected MultiIndexTermExpander.ExpanderVisitor expanderVisitor()
AbstractTermExpander
expanderVisitor in class AbstractTermExpanderprotected Query expand(Consecutive consecutive)
protected Query expand(OrderedAnd orderedAnd)
public Query expand(Term term)
AbstractTermExpander
expand in class AbstractTermExpanderterm - a term to be expanded.
public Query expand(Prefix prefix)
AbstractTermExpander
expand in class AbstractTermExpanderprefix - the prefix to be expanded.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||