org.compass.core.lucene.engine.queryparser
Class DefaultLuceneQueryParser

java.lang.Object
  extended by org.compass.core.lucene.engine.queryparser.DefaultLuceneQueryParser
All Implemented Interfaces:
CompassConfigurable, CompassMappingAware, LuceneQueryParser

public class DefaultLuceneQueryParser
extends Object
implements LuceneQueryParser, CompassMappingAware, CompassConfigurable

Author:
kimchy

Constructor Summary
DefaultLuceneQueryParser()
           
 
Method Summary
 void configure(CompassSettings settings)
          Configure using the given settings.
 Query parse(String[] properties, QueryParser.Operator operator, Analyzer analyzer, String queryString)
           
 Query parse(String property, QueryParser.Operator operator, Analyzer analyzer, String queryString)
           
 void setCompassMapping(CompassMapping mapping)
          Injects the component with the compass mappings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLuceneQueryParser

public DefaultLuceneQueryParser()
Method Detail

configure

public void configure(CompassSettings settings)
               throws CompassException
Description copied from interface: CompassConfigurable
Configure using the given settings.

Specified by:
configure in interface CompassConfigurable
Parameters:
settings - The settings for the configured object
Throws:
CompassException

setCompassMapping

public void setCompassMapping(CompassMapping mapping)
Description copied from interface: CompassMappingAware
Injects the component with the compass mappings.

Specified by:
setCompassMapping in interface CompassMappingAware

parse

public Query parse(String property,
                   QueryParser.Operator operator,
                   Analyzer analyzer,
                   String queryString)
            throws SearchEngineQueryParseException
Specified by:
parse in interface LuceneQueryParser
Throws:
SearchEngineQueryParseException

parse

public Query parse(String[] properties,
                   QueryParser.Operator operator,
                   Analyzer analyzer,
                   String queryString)
            throws SearchEngineQueryParseException
Specified by:
parse in interface LuceneQueryParser
Throws:
SearchEngineQueryParseException


Copyright (c) 2004-2006 The Compass Project.