rewrite autocomplete in vue.js

This commit is contained in:
2018-04-08 08:44:28 +02:00
parent 5e53e667fe
commit 68ee88bce0
4 changed files with 170 additions and 15 deletions

View File

@@ -26,7 +26,7 @@ import org.slf4j.LoggerFactory;
public class QueryCompletionPdbLangParser extends PdbLangParser {
private static final Logger LOGGER = LoggerFactory.getLogger(QueryCompletionPdbLangParser.class);
private static final Logger METRICS_LOGGER = LoggerFactory.getLogger("org.lucares.metrics.autocomplete");
public class Listener implements PdbLangListener, ANTLRErrorListener {
@@ -71,7 +71,7 @@ public class QueryCompletionPdbLangParser extends PdbLangParser {
return new Proposal(p, count > 0);
}).forEach(proposals::add);
LOGGER.trace("proposals for property value {} took {} ms", propertyValuePrefix,
METRICS_LOGGER.debug("proposals for property value {} took {} ms", propertyValuePrefix,
(System.nanoTime() - startTime) / 1_000_000.0);
} else if (_ctx instanceof IdentifierExpressionContext) {
final long startTime = System.nanoTime();
@@ -83,7 +83,7 @@ public class QueryCompletionPdbLangParser extends PdbLangParser {
addProposalsForKeys(propertyKeyPrefix, newQueryPattern.toString());
LOGGER.trace("proposals for property key {} took {} ms", propertyKeyPrefix,
METRICS_LOGGER.debug("proposals for property key {} took {} ms", propertyKeyPrefix,
(System.nanoTime() - startTime) / 1_000_000.0);
}
}