no.sesat.search.query.transform
Class TokenMaskQueryTransformer

java.lang.Object
  extended by no.sesat.commons.visitor.AbstractReflectionVisitor
      extended by no.sesat.search.query.transform.AbstractQueryTransformer
          extended by 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 $

Nested Class Summary
 
Nested classes/interfaces inherited from interface no.sesat.search.query.transform.QueryTransformer
QueryTransformer.Context
 
Field Summary
 
Fields inherited from class no.sesat.commons.visitor.AbstractReflectionVisitor
VISIT_METHOD_IMPL
 
Constructor Summary
TokenMaskQueryTransformer(QueryTransformerConfig config)
           
 
Method Summary
protected  boolean maskClause(Clause clause)
          TODO comment me.
protected  boolean maskField(LeafClause clause)
          TODO comment me.
protected  void visitImpl(BinaryClause clause)
          TODO comment me.
protected  void visitImpl(DefaultOperatorClause clause)
          TODO comment me.
protected  void visitImpl(LeafClause clause)
          TODO comment me.
protected  void visitImpl(PhraseClause clause)
          don't remove prefix if it is in fact a phrase.
 
Methods inherited from class no.sesat.search.query.transform.AbstractQueryTransformer
getContext, getFilter, getFilter, getTransformedQuery, setContext, visitImpl, visitImpl
 
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
 

Constructor Detail

TokenMaskQueryTransformer

public TokenMaskQueryTransformer(QueryTransformerConfig config)
Parameters:
config -
Method Detail

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.