no.sesat.search.query.token
Class SolrTokenEvaluator
java.lang.Object
no.sesat.search.query.token.SolrTokenEvaluator
- All Implemented Interfaces:
- TokenEvaluator
public final class SolrTokenEvaluator
- extends Object
- implements TokenEvaluator
- Version:
- $Id: SolrTokenEvaluator.java 7225 2009-04-09 00:32:20Z ssmiweve $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
evaluateToken
public boolean evaluateToken(TokenPredicate token,
String term,
String query)
- Description copied from interface:
TokenEvaluator
- Evaluate the
token with regards to query.
This usually means to check if the token occurs in query, but there are
other possibilities such as tokens that always evaluates to true.
- Specified by:
evaluateToken in interface TokenEvaluator
term - the token to look for.
- Returns:
- true if token occurs in query
getMatchValues
public Set<String> getMatchValues(TokenPredicate token,
String term)
- get all match values and values for given list .
- Specified by:
getMatchValues in interface TokenEvaluator
- Parameters:
token - term -
- Returns:
- a list of Tokens
isQueryDependant
public boolean isQueryDependant(TokenPredicate predicate)
- Specified by:
isQueryDependant in interface TokenEvaluator
- Returns:
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.