Skip to content

Commit

Permalink
replace replaceAll with more performance replace
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgrieser committed May 24, 2022
1 parent 438019c commit 662edfc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public RecordCursor<IndexEntry> lookup() throws IOException {
: buildQueryForTermsMatching(fieldNames, tokenSet, prefixToken);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(logMessage("query for auto-complete")
.addKeyAndValue(LogMessageKeys.QUERY, query.replaceAll("\"", "\\\""))
.addKeyAndValue(LogMessageKeys.QUERY, query.replace("\"", "\\\""))
.addKeyAndValue("lucene_query", finalQuery)
.toString());
}
Expand Down

0 comments on commit 662edfc

Please sign in to comment.