Skip to content

Commit 7d24112

Browse files
OAK-11454 Explain query output: fix synchronousPropertyCondition (#2052)
* OAK-11454 Explain query output: fix synchronousPropertyCondition * OAK-11454 Explain query output: fix synchronousPropertyCondition
1 parent 5f5851e commit 7d24112

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/SynchronousPropertyIndexTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ public void queryPlan() throws Exception{
331331
runAsyncIndex();
332332

333333
assertThat(explain("select * from [nt:base] where [jcr:content/foo] = 'bar'"),
334-
containsString("synchronousPropertyCondition: foo[jcr:content/foo] bar"));
334+
containsString("propertyCondition: foo[jcr:content/foo] bar"));
335335
assertThat(explain("select * from [nt:base] where [foo] = 'bar'"),
336-
containsString("synchronousPropertyCondition: foo bar"));
336+
containsString("propertyCondition: foo bar"));
337337
}
338338

339339
@Test

oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ protected static void addSyncIndexPlan(IndexPlan plan, StringBuilder sb) {
184184
PlanResult pr = getPlanResult(plan);
185185
if (pr.hasPropertyIndexResult()) {
186186
FulltextIndexPlanner.PropertyIndexResult pres = pr.getPropertyIndexResult();
187-
sb.append(" synchronousPropertyCondition: ").append(pres.propertyName);
187+
sb.append(" propertyCondition: ").append(pres.propertyName);
188188
if (!pres.propertyName.equals(pres.pr.propertyName)) {
189189
sb.append("[").append(pres.pr.propertyName).append("]");
190190
}

0 commit comments

Comments
 (0)