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

java.lang.Object
  extended by org.compass.core.lucene.engine.queryparser.QueryParserUtils

public abstract class QueryParserUtils
extends Object

Author:
kimchy

Nested Class Summary
static interface QueryParserUtils.QueryTermVisitor
           
 
Method Summary
static Query andAliasQueryIfNeeded(Query query, ResourcePropertyLookup lookup, boolean addAliasQueryWithDotPath, SearchEngineFactory searchEngineFactory)
          If enabled and allowed, wraps the given query with a boolean query that adds a must match on the alias).
static Query createPolyAliasQuery(SearchEngineFactory searchEngineFactory, String value)
          Returns a poly alias query.
static Query visit(Query query, QueryParserUtils.QueryTermVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createPolyAliasQuery

public static Query createPolyAliasQuery(SearchEngineFactory searchEngineFactory,
                                         String value)
Returns a poly alias query.


andAliasQueryIfNeeded

public static Query andAliasQueryIfNeeded(Query query,
                                          ResourcePropertyLookup lookup,
                                          boolean addAliasQueryWithDotPath,
                                          SearchEngineFactory searchEngineFactory)
If enabled and allowed, wraps the given query with a boolean query that adds a must match on the alias).


visit

public static Query visit(Query query,
                          QueryParserUtils.QueryTermVisitor visitor)
                   throws SearchEngineException
Throws:
SearchEngineException


Copyright (c) 2004-2009 The Compass Project.