no.sesat.search.query.transform
Interface QueryTransformer.Context

All Superinterfaces:
no.sesat.commons.ioc.BaseContext, BytecodeContext, DataModelContext, DocumentContext, PropertiesContext, QueryContext, ResourceContext, SiteContext
All Known Subinterfaces:
QueryBuilder.Context
Enclosing interface:
QueryTransformer

public static interface QueryTransformer.Context
extends QueryContext, ResourceContext, SiteContext, DataModelContext

The context any QueryTransformer must work through.


Method Summary
 String escape(String word)
          Escape the word.
 String getFieldFilter(LeafClause clause)
          QueryTransformers needs information about supported field filters.
 TokenEvaluationEngine getTokenEvaluationEngine()
          For evaluation acitions on individual (or the whole query) terms.
 String getTransformedQuery()
          Deprecated. use getTransformedTerms() instead
 Map<Clause,String> getTransformedTerms()
          Get the terms with their current transformed representations.
 void visitXorClause(no.sesat.commons.visitor.Visitor visitor, XorClause clause)
          QueryTransformers must follow the same XorClause hints as the search command.
 
Methods inherited from interface no.sesat.search.query.QueryContext
getQuery
 
Methods inherited from interface no.sesat.search.site.config.DocumentContext
newDocumentLoader
 
Methods inherited from interface no.sesat.search.site.config.PropertiesContext
newPropertiesLoader
 
Methods inherited from interface no.sesat.search.site.config.BytecodeContext
newBytecodeLoader
 
Methods inherited from interface no.sesat.search.site.SiteContext
getSite
 
Methods inherited from interface no.sesat.search.datamodel.DataModelContext
getDataModel
 

Method Detail

getTransformedQuery

String getTransformedQuery()
Deprecated. use getTransformedTerms() instead

Returns:

getTransformedTerms

Map<Clause,String> getTransformedTerms()
Get the terms with their current transformed representations.

Returns:

getTokenEvaluationEngine

TokenEvaluationEngine getTokenEvaluationEngine()
For evaluation acitions on individual (or the whole query) terms.

Returns:

visitXorClause

void visitXorClause(no.sesat.commons.visitor.Visitor visitor,
                    XorClause clause)
QueryTransformers must follow the same XorClause hints as the search command. *

Parameters:
visitor -
clause -

getFieldFilter

String getFieldFilter(LeafClause clause)
QueryTransformers needs information about supported field filters. *

Parameters:
clause -
Returns:

escape

String escape(String word)
Escape the word. The word need not be reserved or require escaping but should be escaped anyway.

Parameters:
word -
Returns:
escaped version of the word


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.