jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1505952 - /jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndex.java
Date Tue, 23 Jul 2013 09:57:53 GMT
Author: thomasm
Date: Tue Jul 23 09:57:53 2013
New Revision: 1505952

URL: http://svn.apache.org/r1505952
Log:
OAK-890 Query: advanced fulltext search conditions (logging)

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

Modified: jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndex.java?rev=1505952&r1=1505951&r2=1505952&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndex.java
(original)
+++ jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndex.java
Tue Jul 23 09:57:53 2013
@@ -349,6 +349,7 @@ public class LuceneIndex implements Full
                     HashSet<String> seenPaths = new HashSet<String>();
                     Query query = getQuery(filter, reader, nonFullTextConstraints);
                     if (query != null) {
+                        // TODO how to best avoid loading all entries in memory?
                         TopDocs docs = searcher
                                 .search(query, Integer.MAX_VALUE);
                         for (ScoreDoc doc : docs.scoreDocs) {
@@ -389,7 +390,7 @@ public class LuceneIndex implements Full
                 directory.close();
             }
         } catch (IOException e) {
-            e.printStackTrace();
+			LOG.warn("query via {} failed.", this, e);
             return Cursors.newPathCursor(Collections.<String> emptySet());
         }        
     }



Mime
View raw message