Description
QueryImpl currently computes the indexName like
for (IndexPlan p : ipList) { // TODO limit is after all conditions long entryCount = Math.min(maxEntryCount, p.getEstimatedEntryCount()); double c = p.getCostPerExecution() + entryCount * p.getCostPerEntry(); if (c < cost) { cost = c; if (p.getPlanName() != null) { indexName += "[" + p.getPlanName() + "]"; } indexPlan = p; } }
If there are multiple index plans then indexName contains multiple plan names which causes confusion
cost for lucene-property[/oak:index/keymatchKeywords][/oak:index/newImport] is 786.0
Instead of concatenating the indexName should be generated outside