jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1526119 - /jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/SimpleSearchTest.java
Date Wed, 25 Sep 2013 07:26:53 GMT
Author: mduerig
Date: Wed Sep 25 07:26:53 2013
New Revision: 1526119

URL: http://svn.apache.org/r1526119
Log:
OAK-641: Improved benchmark tooling
- fix the index declaration

Modified:
    jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/SimpleSearchTest.java

Modified: jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/SimpleSearchTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/SimpleSearchTest.java?rev=1526119&r1=1526118&r2=1526119&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/SimpleSearchTest.java
(original)
+++ jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/SimpleSearchTest.java
Wed Sep 25 07:26:53 2013
@@ -23,6 +23,8 @@ import javax.jcr.Session;
 import javax.jcr.query.Query;
 import javax.jcr.query.QueryManager;
 
+import org.apache.jackrabbit.oak.benchmark.util.OakIndexUtils;
+
 /**
  * Run a simple query of the form "//*[@testcount=...]".
  */
@@ -55,6 +57,9 @@ public class SimpleSearchTest extends Ab
             session.save();
         }
 
+        new OakIndexUtils.PropertyIndex().
+                property("testcount").
+                create(session);
     }
 
     @Override



Mime
View raw message