no.sesat.search.query.transform
Class TokenMaskQueryTransformer
java.lang.Object
no.sesat.commons.visitor.AbstractReflectionVisitor
no.sesat.search.query.transform.AbstractQueryTransformer
no.sesat.search.query.transform.TokenMaskQueryTransformer
- All Implemented Interfaces:
- no.sesat.commons.visitor.Visitor, QueryTransformer
public final class TokenMaskQueryTransformer
- extends AbstractQueryTransformer
Mask (inclusively or exclusively) terms in the query that
positionally (prefix or anywhere) contains TokenPredicates.
Note Using position="prefix" predicates="*_MAGIC" is kinda pointless but is often done anyway.
Note position="prefix" only currently works with single terms. XXX
- Version:
- $Id: TokenMaskQueryTransformer.java 7225 2009-04-09 00:32:20Z ssmiweve $
| Fields inherited from class no.sesat.commons.visitor.AbstractReflectionVisitor |
VISIT_METHOD_IMPL |
| Methods inherited from class no.sesat.commons.visitor.AbstractReflectionVisitor |
visit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface no.sesat.commons.visitor.Visitor |
visit |
TokenMaskQueryTransformer
public TokenMaskQueryTransformer(QueryTransformerConfig config)
- Parameters:
config -
visitImpl
protected void visitImpl(BinaryClause clause)
- TODO comment me.
visitImpl
protected void visitImpl(DefaultOperatorClause clause)
- TODO comment me.
visitImpl
protected void visitImpl(PhraseClause clause)
- don't remove prefix if it is in fact a phrase.
visitImpl
protected void visitImpl(LeafClause clause)
- TODO comment me.
maskClause
protected boolean maskClause(Clause clause)
- TODO comment me.
maskField
protected boolean maskField(LeafClause clause)
- TODO comment me.
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.