jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1492095 - /jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/LuceneIndexHelper.java
Date Wed, 12 Jun 2013 07:39:27 GMT
Author: jukka
Date: Wed Jun 12 07:39:27 2013
New Revision: 1492095

URL: http://svn.apache.org/r1492095
Log:
OAK-860: Streamline the IndexEditor

Use JCR PropertyType names instead of Oak's internal Type names for
property type restrictions in the Lucene index definitions.

Modified:
    jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/LuceneIndexHelper.java

Modified: jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/LuceneIndexHelper.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/LuceneIndexHelper.java?rev=1492095&r1=1492094&r2=1492095&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/LuceneIndexHelper.java
(original)
+++ jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/LuceneIndexHelper.java
Wed Jun 12 07:39:27 2013
@@ -32,6 +32,7 @@ import java.util.Set;
 
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
+import javax.jcr.PropertyType;
 
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.plugins.memory.PropertyStates;
@@ -42,7 +43,7 @@ import com.google.common.collect.Immutab
 public class LuceneIndexHelper {
 
     public static final Set<String> JR_PROPERTY_INCLUDES = ImmutableSet.of(
-            Type.STRING.toString(), Type.BINARY.toString());
+            PropertyType.TYPENAME_STRING, PropertyType.TYPENAME_BINARY);
 
     private LuceneIndexHelper() {
     }



Mime
View raw message