Package | Description |
---|---|
org.apache.jackrabbit.core.query.lucene |
Modifier and Type | Field and Description |
---|---|
protected IndexFormatVersion |
NodeIndexer.indexFormatVersion
Indicates index format for this node indexer.
|
static IndexFormatVersion |
IndexFormatVersion.V1
V1 is the index format for Jackrabbit releases 1.0 to 1.3.x.
|
static IndexFormatVersion |
IndexFormatVersion.V2
V2 is the index format for Jackrabbit releases 1.4.x
|
static IndexFormatVersion |
IndexFormatVersion.V3
V3 is the index format for Jackrabbit releases >= 1.5
|
Modifier and Type | Method and Description |
---|---|
IndexFormatVersion |
SearchIndex.getIndexFormatVersion()
Returns the index format version that this search index is able to
support when a query is executed on this index.
|
static IndexFormatVersion |
IndexFormatVersion.getVersion(org.apache.lucene.index.IndexReader indexReader) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.document.Document |
SearchIndex.createDocument(NodeState node,
NamespaceMappings nsMappings,
IndexFormatVersion indexFormatVersion)
Creates a lucene
Document for a node state using the
namespace mappings nsMappings . |
static org.apache.lucene.search.Query |
Util.createMatchAllQuery(String name,
IndexFormatVersion version,
org.apache.jackrabbit.core.query.lucene.PerQueryCache cache)
Depending on the index format this method returns a query that matches
all nodes that have a property with a given
name . |
static org.apache.lucene.search.Query |
LuceneQueryBuilder.createQuery(QueryRootNode root,
SessionImpl session,
ItemStateManager sharedItemMgr,
NamespaceMappings nsMappings,
org.apache.lucene.analysis.Analyzer analyzer,
PropertyTypeRegistry propReg,
SynonymProvider synonymProvider,
IndexFormatVersion indexFormatVersion,
org.apache.jackrabbit.core.query.lucene.PerQueryCache cache)
Creates a lucene
Query tree from an
abstract query tree. |
boolean |
IndexFormatVersion.isAtLeast(IndexFormatVersion version)
Returns
true if this version is at least as high as the
given version . |
protected void |
SearchIndex.mergeAggregatedNodeIndexes(NodeState state,
org.apache.lucene.document.Document doc,
IndexFormatVersion ifv)
Merges the fulltext indexed fields of the aggregated node states into
doc . |
void |
NodeIndexer.setIndexFormatVersion(IndexFormatVersion indexFormatVersion)
Sets the index format version
|
Constructor and Description |
---|
LocalNameQuery(String localName,
IndexFormatVersion version)
Creates a new
LocalNameQuery for the given
localName . |
NameQuery(Name nodeName,
IndexFormatVersion version,
NamespaceMappings nsMappings)
Creates a new
NameQuery . |
NameRangeQuery(Name lowerName,
Name upperName,
boolean inclusive,
IndexFormatVersion version,
NamespaceMappings nsMappings,
org.apache.jackrabbit.core.query.lucene.PerQueryCache cache)
Creates a new NameRangeQuery.
|
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.