public class JahiaLuceneQueryFactoryImpl
extends org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory
| Modifier and Type | Field and Description |
|---|---|
static org.apache.lucene.document.FieldSelector |
ONLY_MAIN_NODE_UUID |
static org.apache.lucene.document.FieldSelector |
OPTIMIZATION_FIELDS |
| Constructor and Description |
|---|
JahiaLuceneQueryFactoryImpl(org.apache.jackrabbit.core.SessionImpl session,
org.apache.jackrabbit.core.query.lucene.SearchIndex index,
Map<String,javax.jcr.Value> bindVariables) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.search.Query |
create(javax.jcr.query.qom.Constraint constraint,
Map<String,javax.jcr.nodetype.NodeType> selectorMap,
org.apache.jackrabbit.core.query.lucene.JackrabbitIndexSearcher searcher) |
List<javax.jcr.query.Row> |
execute(Map<String,javax.jcr.query.qom.PropertyValue> columns,
javax.jcr.query.qom.Selector selector,
javax.jcr.query.qom.Constraint constraint,
org.apache.lucene.search.Sort sort,
boolean externalSort,
long offsetIn,
long limitIn)
Override LuceneQueryFactory.execute()
|
protected org.apache.lucene.search.Query |
getComparisonQuery(javax.jcr.query.qom.DynamicOperand left,
int transform,
String operator,
javax.jcr.query.qom.StaticOperand rigth,
Map<String,javax.jcr.nodetype.NodeType> selectorMap) |
protected org.apache.lucene.search.Query |
getFullTextSearchQuery(javax.jcr.query.qom.FullTextSearch fts) |
Locale |
getLocale() |
org.apache.jackrabbit.core.query.lucene.NamespaceMappings |
getNamespaceMappings() |
protected org.apache.lucene.search.Query |
getNodeIdQuery(String field,
String path) |
protected org.apache.lucene.analysis.Analyzer |
getTextAnalyzer() |
boolean |
isAclUuidInIndex()
Returns
true if ACL-UUID should be resolved and stored in index. |
protected org.apache.jackrabbit.commons.predicate.Predicate |
mapConstraintToQueryAndFilter(org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.QueryPair query,
javax.jcr.query.qom.Constraint constraint,
Map<String,javax.jcr.nodetype.NodeType> selectorMap,
org.apache.jackrabbit.core.query.lucene.JackrabbitIndexSearcher searcher,
org.apache.lucene.index.IndexReader reader) |
boolean |
mapOrConstraintWithDescendantNodesOnly(org.apache.lucene.search.BooleanQuery context,
javax.jcr.query.qom.Constraint constraint) |
void |
setQueryLanguageAndLocale(String queryLanguage,
Locale locale) |
addBooleanConstraint, create, create, create, createNodeTypeTerm, getAndQuery, getDescendantNodeQuery, getNodeLocalNameQuery, getNodeNameQuery, getNotQuery, getOrQuery, getPropertyExistenceQuery, getPropertyValueQuery, getTerm, getValueStringpublic static final org.apache.lucene.document.FieldSelector ONLY_MAIN_NODE_UUID
public static final org.apache.lucene.document.FieldSelector OPTIMIZATION_FIELDS
public List<javax.jcr.query.Row> execute(Map<String,javax.jcr.query.qom.PropertyValue> columns, javax.jcr.query.qom.Selector selector, javax.jcr.query.qom.Constraint constraint, org.apache.lucene.search.Sort sort, boolean externalSort, long offsetIn, long limitIn) throws javax.jcr.RepositoryException, IOException
execute in class org.apache.jackrabbit.core.query.lucene.LuceneQueryFactoryjavax.jcr.RepositoryExceptionIOExceptionpublic boolean isAclUuidInIndex()
true if ACL-UUID should be resolved and stored in index.
This can have a negative effect on performance, when setting rights on a node,
which has a large subtree using the same rights, as all these nodes will need
to be reindexed. On the other side the advantage is that the queries are faster,
as the user rights are resolved faster.true if ACL-UUID should be resolved and stored in index.protected org.apache.lucene.search.Query getNodeIdQuery(String field, String path) throws javax.jcr.RepositoryException
getNodeIdQuery in class org.apache.jackrabbit.core.query.lucene.LuceneQueryFactoryjavax.jcr.RepositoryExceptionprotected org.apache.lucene.search.Query create(javax.jcr.query.qom.Constraint constraint,
Map<String,javax.jcr.nodetype.NodeType> selectorMap,
org.apache.jackrabbit.core.query.lucene.JackrabbitIndexSearcher searcher)
throws javax.jcr.RepositoryException,
IOException
create in class org.apache.jackrabbit.core.query.lucene.LuceneQueryFactoryjavax.jcr.RepositoryExceptionIOExceptionprotected org.apache.lucene.search.Query getFullTextSearchQuery(javax.jcr.query.qom.FullTextSearch fts)
throws javax.jcr.RepositoryException
getFullTextSearchQuery in class org.apache.jackrabbit.core.query.lucene.LuceneQueryFactoryjavax.jcr.RepositoryExceptionprotected org.apache.jackrabbit.commons.predicate.Predicate mapConstraintToQueryAndFilter(org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.QueryPair query,
javax.jcr.query.qom.Constraint constraint,
Map<String,javax.jcr.nodetype.NodeType> selectorMap,
org.apache.jackrabbit.core.query.lucene.JackrabbitIndexSearcher searcher,
org.apache.lucene.index.IndexReader reader)
throws javax.jcr.RepositoryException,
IOException
mapConstraintToQueryAndFilter in class org.apache.jackrabbit.core.query.lucene.LuceneQueryFactoryjavax.jcr.RepositoryExceptionIOExceptionpublic boolean mapOrConstraintWithDescendantNodesOnly(org.apache.lucene.search.BooleanQuery context,
javax.jcr.query.qom.Constraint constraint)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic Locale getLocale()
public void setQueryLanguageAndLocale(String queryLanguage, Locale locale)
protected org.apache.lucene.search.Query getComparisonQuery(javax.jcr.query.qom.DynamicOperand left,
int transform,
String operator,
javax.jcr.query.qom.StaticOperand rigth,
Map<String,javax.jcr.nodetype.NodeType> selectorMap)
throws javax.jcr.RepositoryException
getComparisonQuery in class org.apache.jackrabbit.core.query.lucene.LuceneQueryFactoryjavax.jcr.RepositoryExceptionprotected org.apache.lucene.analysis.Analyzer getTextAnalyzer()
getTextAnalyzer in class org.apache.jackrabbit.core.query.lucene.LuceneQueryFactorypublic org.apache.jackrabbit.core.query.lucene.NamespaceMappings getNamespaceMappings()
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.