|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectQueryRewriter
XtfQueryRewriter
UnicodeNormalizingRewriter
public class UnicodeNormalizingRewriter
Rewrites a Lucene query to replace all non-normalized words (i.e. not encoded in Normalized-Form-C) with normalized ones. For instance, many diacritics actually need to be combined with their main letter rather than as separate combining marks.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class QueryRewriter |
|---|
QueryRewriter.SpanClauseJoiner |
| Field Summary | |
|---|---|
private FastCache<String,String> |
cache
Keep a cache of lookups performed to-date |
private static int |
CACHE_SIZE
How many recent mappings to maintain |
private Set |
tokenizedFields
Set of fields that are tokenized in the index |
| Constructor Summary | |
|---|---|
UnicodeNormalizingRewriter(Set tokFields)
Construct a new rewriter. |
|
| Method Summary | |
|---|---|
protected Query |
rewrite(SpanTermQuery q)
Rewrite a span term query. |
protected Query |
rewrite(SpanWildcardQuery q)
Rewrite a wildcard term query. |
protected Query |
rewrite(TermQuery q)
Rewrite a term query. |
| Methods inherited from class XtfQueryRewriter |
|---|
rewrite, rewrite, rewrite, rewrite, rewriteQuery |
| Methods inherited from class QueryRewriter |
|---|
combineBoost, copyBoost, copyBoost, forceRewrite, rewrite, rewrite, rewrite, rewrite, rewrite, rewrite, rewrite, rewrite, rewrite, rewriteClauses |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int CACHE_SIZE
private FastCache<String,String> cache
private Set tokenizedFields
| Constructor Detail |
|---|
public UnicodeNormalizingRewriter(Set tokFields)
| Method Detail |
|---|
protected Query rewrite(TermQuery q)
rewrite in class QueryRewriterq - The query to rewrite
protected Query rewrite(SpanTermQuery q)
rewrite in class QueryRewriterq - The query to rewrite
protected Query rewrite(SpanWildcardQuery q)
rewrite in class QueryRewriterq - The query to rewrite
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||