|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory
public class LuceneQueryFactory
Factory that creates Lucene queries from QOM elements.
Constructor Summary | |
---|---|
LuceneQueryFactory(SessionImpl session,
SearchIndex index,
Map<String,Value> bindVariables)
Creates a new lucene query factory. |
Method Summary | |
---|---|
org.apache.lucene.search.Query |
create(FullTextSearchImpl fts)
Creates a lucene query for the given QOM full text search. |
org.apache.lucene.search.Query |
create(PropertyExistenceImpl prop)
Creates a lucene query for the given QOM property existence constraint. |
org.apache.lucene.search.Query |
create(Selector selector)
Creates a lucene query for the given QOM selector. |
List<Row> |
execute(Map<String,PropertyValue> columns,
Selector selector,
Constraint constraint)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LuceneQueryFactory(SessionImpl session, SearchIndex index, Map<String,Value> bindVariables) throws RepositoryException
session
- the session that executes the query.index
- the search indexbindVariables
- the bind variable values of the query
RepositoryException
Method Detail |
---|
public List<Row> execute(Map<String,PropertyValue> columns, Selector selector, Constraint constraint) throws RepositoryException, IOException
RepositoryException
IOException
public org.apache.lucene.search.Query create(Selector selector) throws RepositoryException
selector
- the selector.
RepositoryException
- if an error occurs while creating the query.public org.apache.lucene.search.Query create(FullTextSearchImpl fts) throws RepositoryException
constraint
- the full text search constraint.
RepositoryException
- if an error occurs while creating the query.public org.apache.lucene.search.Query create(PropertyExistenceImpl prop) throws RepositoryException
constraint
- the QOM constraint.
RepositoryException
- if an error occurs while creating the query.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |