no.sesat.search.mode.command.querybuilder
Class InfixQueryBuilder
java.lang.Object
no.sesat.commons.visitor.AbstractReflectionVisitor
no.sesat.search.mode.command.querybuilder.AbstractQueryBuilder
no.sesat.search.mode.command.querybuilder.InfixQueryBuilder
- All Implemented Interfaces:
- no.sesat.commons.visitor.Visitor, QueryBuilder
- Direct Known Subclasses:
- SesamSyntaxQueryBuilder
public class InfixQueryBuilder
- extends AbstractQueryBuilder
The default QueryBuilder.
Is not thread safe.
It does not use the QueryBuilderConfig.
It blanks out valid filters.
Largely mimics the Query tree layout replacing OperatorClauses with the RESERVED_WORDS.
Does not write infixes when the next occurring leaf is inside a NotClause.
- Version:
- $Id: InfixQueryBuilder.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.search.mode.command.querybuilder.AbstractQueryBuilder |
appendToQueryRepresentation, appendToQueryRepresentation, escape, getContext, getEscapedTransformedTerm, getQueryRepresentationLength, getQueryString, insertToQueryRepresentation, isEmptyLeaf, isNextLeafInsideNotClause, visitImpl |
| Methods inherited from class no.sesat.commons.visitor.AbstractReflectionVisitor |
visit, visitImpl |
| 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 |
InfixQueryBuilder
public InfixQueryBuilder(QueryBuilder.Context cxt,
QueryBuilderConfig config)
getConfig
protected InfixQueryBuilderConfig getConfig()
- Overrides:
getConfig in class AbstractQueryBuilder
getWordsToEscape
protected Collection<String> getWordsToEscape()
- Overrides:
getWordsToEscape in class AbstractQueryBuilder
visitImpl
protected void visitImpl(LeafClause clause)
visitImpl
protected void visitImpl(EmailClause clause)
- Adds quotes around the Email address and hard escape everything.
Since there is the @ symbols in email addresses.
- Parameters:
clause - The email clause.
visitImpl
protected void visitImpl(UrlClause clause)
- Adds quotes around the URL and hard escape everything.
Since there are so many symbols in URLs.
- Parameters:
clause - The url clause.
visitImpl
protected void visitImpl(UnaryClause clause)
visitImpl
protected void visitImpl(AndClause clause)
visitImpl
protected void visitImpl(OrClause clause)
visitImpl
protected void visitImpl(DefaultOperatorClause clause)
visitImpl
protected void visitImpl(NotClause clause)
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.