public interface JackrabbitQuery
JackrabbitQuerydefines an interface for Jackrabbit query implementations that are at the root of the lucene query tree. It gives the implementation the opportunity to execute in an optimized way returning
QueryHitsinstead of a result that is tied to Lucene.
QueryHits execute(JackrabbitIndexSearcher searcher, SessionImpl session, org.apache.lucene.search.Sort sort) throws IOException
nullif this query should be executed using the regular Lucene API. Important note: an implementation must not call
JackrabbitIndexSearcher#execute(Query, Sort, long)with this query instance as a parameter, otherwise a stack overflow will occur.
searcher- the jackrabbit index searcher.
session- the session that executes the query.
sort- the sort criteria that must be reflected in the returned
nullif the regular Lucene API should be used by the caller.
IOException- if an error occurs while executing the query.
Copyright © 2004-2018 The Apache Software Foundation. All Rights Reserved.