public class XtfBigramQueryRewriter extends BigramQueryRewriter
QueryRewriter.SpanClauseJoiner| Modifier and Type | Field and Description |
|---|---|
static Tester |
tester
Basic regression test
|
private Set |
tokenizedFields |
maxSlop, removedTerms, stopSet| Constructor and Description |
|---|
XtfBigramQueryRewriter(Set stopSet,
int maxSlop,
Set tokFields)
Constructs a rewriter using the given stopword set.
|
| Modifier and Type | Method and Description |
|---|---|
protected Query |
rewrite(MoreLikeThisQuery mlt)
Rewrite a "more like this" query
|
protected Query |
rewrite(NumericRangeQuery nrq)
Rewrite a numeric range query
|
protected Query |
rewrite(SpanExactQuery q)
Rewrite a span EXACT query.
|
protected Query |
rewrite(SpanSectionTypeQuery stq)
Rewrite a section type query.
|
Query |
rewriteQuery(Query q)
Rewrite a query of any supported type.
|
bigramQueries, bigramTermsExact, bigramTermsInexact, convertToSpanQuery, extractTerm, extractTermText, glomInside, glomInside, glomInside, glomQueries, isBigram, makeStopSet, newTerm, reduceBoost, rewrite, rewrite, rewrite, rewrite, rewriteClausescombineBoost, copyBoost, copyBoost, forceRewrite, rewrite, rewrite, rewrite, rewrite, rewrite, rewrite, rewrite, rewrite, rewriteClausesprivate Set tokenizedFields
public static final Tester tester
public XtfBigramQueryRewriter(Set stopSet,
int maxSlop,
Set tokFields)
stopSet - Set of stopwords to remove or bi-gram. This can be
constructed easily by calling
BigramQueryRewriter.makeStopSet(String).maxSlop - Maximum slop to allow in a query, based on the index
being queried.tokFields - List of fields that are tokenized. We won't rewrite
queries for non-tokenized fields.public Query rewriteQuery(Query q)
rewriteQuery in class QueryRewriterq - Query to rewriteprotected Query rewrite(SpanSectionTypeQuery stq)
stq - The query to rewriteprotected Query rewrite(SpanExactQuery q)
q - The query to rewriteprotected Query rewrite(MoreLikeThisQuery mlt)
protected Query rewrite(NumericRangeQuery nrq)