| org.apache.slide.search.basic.LuceneBasicQuery
LuceneBasicQuery | public class LuceneBasicQuery extends BasicQueryImpl (Code) | | BasicQueryImpl represents the generic (store independent) implementation of
BasicSearch.
version: $Revision: 7953 $ |
Constructor Summary | |
public | LuceneBasicQuery(SearchToken searchToken) Creates a BasicQueryImpl. | public | LuceneBasicQuery() | public | LuceneBasicQuery(SearchToken searchToken, IBasicExpressionCompilerProvider expressionCompilerProvider) Creates a BasicQueryImpl. |
OFFSET_MUST_BE_AN_INTEGER | final public static String OFFSET_MUST_BE_AN_INTEGER(Code) | | Message of a BadQueryException that is thrown if the <nresults> element
is not an integer.
|
offset | protected int offset(Code) | | some specific instance vars, like offset parsed from query
|
offsetDefined | protected boolean offsetDefined(Code) | | |
LuceneBasicQuery | public LuceneBasicQuery(SearchToken searchToken)(Code) | | Creates a BasicQueryImpl.
|
LuceneBasicQuery | public LuceneBasicQuery()(Code) | | Default constructor, to enable creation by reflection
|
LuceneBasicQuery | public LuceneBasicQuery(SearchToken searchToken, IBasicExpressionCompilerProvider expressionCompilerProvider)(Code) | | Creates a BasicQueryImpl. Used for testing
Parameters: expressionCompilerProvider - the provider which delivers theexpression compiler to use. |
createNewOrderBy | protected OrderBy createNewOrderBy(Element orderByElement) throws InvalidQueryException(Code) | | |
execute | public SearchQueryResult execute() throws ServiceAccessException(Code) | | Executes a request.
a SearchQueryResult throws: ServiceAccessException - |
getOffset | public int getOffset()(Code) | | Method getOffset
the value of |
getScope | public static QueryScope[] getScope(Element basicSearchElementJDOM) throws BadQueryException(Code) | | Needed to decide, which implementation of BasicQuery to load
Parameters: basicSearchElementJDOM - an Element a QueryScope throws: BadQueryException - |
isOffsetDefined | public boolean isOffsetDefined()(Code) | | Method isOffsetDefined
true if was specified |
parseQueryWithoutExpression | protected void parseQueryWithoutExpression(Element basicSearchElement) throws BadQueryException(Code) | | builds the internal structure from the JDOM tree. It may be used by the
concrete implementation of BasicQuery. It does NOT create the tree of
Expressions. This must be done in the specific implementation.
Parameters: basicSearchElement - an Element throws: BadQueryException - |
|
|