You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by mr...@apache.org on 2009/07/31 15:14:27 UTC
svn commit: r799599 - in
/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene:
NodeIndexer.java SearchIndex.java
Author: mreutegg
Date: Fri Jul 31 13:14:26 2009
New Revision: 799599
URL: http://svn.apache.org/viewvc?rev=799599&view=rev
Log: (empty)
Modified:
jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java
jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java?rev=799599&r1=799598&r2=799599&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java Fri Jul 31 13:14:26 2009
@@ -175,7 +175,7 @@
* @throws RepositoryException if an error occurs while reading property
* values from the <code>ItemStateProvider</code>.
*/
- protected Document createDoc() throws RepositoryException {
+ public Document createDoc() throws RepositoryException {
doNotUseInExcerpt.clear();
Document doc = new Document();
@@ -253,7 +253,7 @@
*
* @param e the base exception.
*/
- private void throwRepositoryException(Exception e)
+ protected void throwRepositoryException(Exception e)
throws RepositoryException {
String msg = "Error while indexing node: " + node.getNodeId() + " of "
+ "type: " + node.getNodeTypeName();
@@ -267,7 +267,7 @@
* @param doc the lucene document.
* @param name the name of the multi-value property.
*/
- private void addMVPName(Document doc, Name name) {
+ protected void addMVPName(Document doc, Name name) {
try {
String propName = resolver.getJCRName(name);
doc.add(new Field(FieldNames.MVP, propName, Field.Store.NO, Field.Index.NOT_ANALYZED_NO_NORMS, Field.TermVector.NO));
@@ -283,7 +283,7 @@
* @param value the internal jackrabbit value.
* @param name the name of the property.
*/
- private void addValue(Document doc, InternalValue value, Name name) throws RepositoryException {
+ protected void addValue(Document doc, InternalValue value, Name name) throws RepositoryException {
String fieldName = name.getLocalName();
try {
fieldName = resolver.getJCRName(name);
@@ -381,7 +381,7 @@
* @param doc the document.
* @param name the name of the property.
*/
- private void addPropertyName(Document doc, Name name) {
+ protected void addPropertyName(Document doc, Name name) {
String fieldName = name.getLocalName();
try {
fieldName = resolver.getJCRName(name);
Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java?rev=799599&r1=799598&r2=799599&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java Fri Jul 31 13:14:26 2009
@@ -182,12 +182,12 @@
/**
* The path of the root node.
*/
- private static final Path ROOT_PATH;
+ protected static final Path ROOT_PATH;
/**
* The path <code>/jcr:system</code>.
*/
- private static final Path JCR_SYSTEM_PATH;
+ protected static final Path JCR_SYSTEM_PATH;
static {
ROOT_PATH = PATH_FACTORY.create(NameConstants.ROOT);
@@ -202,7 +202,7 @@
/**
* The actual index
*/
- private MultiIndex index;
+ protected MultiIndex index;
/**
* The analyzer we use for indexing.
@@ -2208,7 +2208,7 @@
*
* @throws IOException if this <code>SearchIndex</code> had been closed.
*/
- private void checkOpen() throws IOException {
+ protected void checkOpen() throws IOException {
if (closed) {
throw new IOException("query handler closed and cannot be used anymore.");
}