Skip to content

Commit

Permalink
log more info when fvh failed (#618)
Browse files Browse the repository at this point in the history
 log more info when fvh failed
  • Loading branch information
waziqi89 authored Jan 22, 2024
1 parent a6779ef commit 8478ec7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ public String[] getHighlights(
DEFAULT_ENCODER);
} catch (RuntimeException runtimeException) {
logger.warn(
"FVH failed creating fragments, and the exception is: ", runtimeException.getMessage());
"FVH failed creating fragments for the luceneDocId: {}, highlight query: {}, exception: {}",
leafDocId + hitLeaf.docBase,
settings.getHighlightQuery(),
runtimeException.getMessage(),
runtimeException);
return new String[0];
}
}
Expand Down

0 comments on commit 8478ec7

Please sign in to comment.