org.compass.core.lucene
Class LuceneEnvironment.QueryParser

java.lang.Object
  extended by org.compass.core.lucene.LuceneEnvironment.QueryParser
Enclosing class:
LuceneEnvironment

public abstract static class LuceneEnvironment.QueryParser
extends Object

Settings for different query parser implementations.


Field Summary
static String DEFAULT_GROUP
          The default query parser group that must be set.
static String DEFAULT_PARSER_ALLOW_CONSTANT_SCORE_PREFIX_QUERY
          The default parsers implementation allows to use contanst score prefix query.
static String DEFAULT_PARSER_ALLOW_LEADING_WILDCARD
          The default parsers implementation allows to set if leading wildcards are allowed or not.
static String DEFAULT_PARSER_DEFAULT_OPERATOR
          The default operator when parsing query strings.
static String DEFAULT_PARSER_FUZZY_MIN_SIMILARITY
          The minimum fuzzy similarity for the query parser.
static String DEFAULT_PARSER_FUZZY_PERFIX_LENGTH
          Get the prefix length for fuzzy queries.
static String PREFIX
          The prefix used for query parser groups.
static String SPELLCHECK_GROUP
          The spell check group.
static String TYPE
          The type of the query parser.
 
Constructor Summary
LuceneEnvironment.QueryParser()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final String PREFIX
The prefix used for query parser groups.

See Also:
Constant Field Values

TYPE

public static final String TYPE
The type of the query parser. A fully qualified class name or an actual instance, must implement LuceneQueryParser.

See Also:
Constant Field Values

DEFAULT_GROUP

public static final String DEFAULT_GROUP
The default query parser group that must be set.

See Also:
Constant Field Values

SPELLCHECK_GROUP

public static final String SPELLCHECK_GROUP
The spell check group.

See Also:
Constant Field Values

DEFAULT_PARSER_ALLOW_LEADING_WILDCARD

public static final String DEFAULT_PARSER_ALLOW_LEADING_WILDCARD
The default parsers implementation allows to set if leading wildcards are allowed or not. Boolen value defaults to true.

See Also:
Constant Field Values

DEFAULT_PARSER_ALLOW_CONSTANT_SCORE_PREFIX_QUERY

public static final String DEFAULT_PARSER_ALLOW_CONSTANT_SCORE_PREFIX_QUERY
The default parsers implementation allows to use contanst score prefix query. Constnat score prefix query allows for faster prefix queries but lack in highlighting support. Boolen value. Defaults to true.

See Also:
Constant Field Values

DEFAULT_PARSER_FUZZY_MIN_SIMILARITY

public static final String DEFAULT_PARSER_FUZZY_MIN_SIMILARITY
The minimum fuzzy similarity for the query parser. Default to 0.5f.

See Also:
Constant Field Values

DEFAULT_PARSER_FUZZY_PERFIX_LENGTH

public static final String DEFAULT_PARSER_FUZZY_PERFIX_LENGTH
Get the prefix length for fuzzy queries. Default to 0.

See Also:
Constant Field Values

DEFAULT_PARSER_DEFAULT_OPERATOR

public static final String DEFAULT_PARSER_DEFAULT_OPERATOR
The default operator when parsing query strings. Defaults to AND. Can be either AND or OR.

See Also:
Constant Field Values
Constructor Detail

LuceneEnvironment.QueryParser

public LuceneEnvironment.QueryParser()


Copyright (c) 2004-2008 The Compass Project.