org.egothor.query
Class Configuration

java.lang.Object
  extended by org.egothor.query.Configuration

public class Configuration
extends java.lang.Object

This object defines rules for query computation, or rather, classes of tokens.

  1. Control Token - its IDF is always 1, and it is not never excluded from query.
  2. !Control Token - all tokens which are not the control ones are taken as words.
  3. Default Boost - sets the default boost factor of a token. If it is set to 0, the token is not counted in the similarity value, but its restrictions are taken in mind (see required/prohibited flags).

Author:
Leo Galambos

Constructor Summary
Configuration()
           
 
Method Summary
static int defaultBoost(Token tok)
          Description of the Method
static boolean isControlToken(java.lang.String str)
          Is this a control token which is not excluded when it has a low idf?
static boolean isControlToken(Token tok)
          Is this a control token which is not excluded when it has a low idf?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
Method Detail

isControlToken

public static boolean isControlToken(java.lang.String str)
Is this a control token which is not excluded when it has a low idf?

Parameters:
str - Token
Returns:
Answer

isControlToken

public static boolean isControlToken(Token tok)
Is this a control token which is not excluded when it has a low idf?

Parameters:
tok - Token
Returns:
Answer

defaultBoost

public static int defaultBoost(Token tok)
Description of the Method

Parameters:
tok - Description of the Parameter
Returns:
Description of the Return Value