jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1002619 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java
Date Wed, 29 Sep 2010 13:36:12 GMT
Author: mreutegg
Date: Wed Sep 29 13:36:12 2010
New Revision: 1002619

URL: http://svn.apache.org/viewvc?rev=1002619&view=rev
Log:
JCR-2669: Improve reading of cached UUID for given document number

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java?rev=1002619&r1=1002618&r2=1002619&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java
Wed Sep 29 13:36:12 2010
@@ -265,8 +265,7 @@ class CachingIndexReader extends FilterI
                 docNumber2id.put(n, id);
             } else {
                 doc = new Document();
-                doc.add(new Field(FieldNames.UUID, id.toString(),
-                        Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));
+                doc.add(new IDField(id));
             }
             return doc;
         } else {



Mime
View raw message