Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Search] Fix documents count in Search indices page
Browse files Browse the repository at this point in the history
sphilipse committed Nov 21, 2024
1 parent 716375b commit 496ff5d
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -85,6 +85,9 @@ export const ResultField: React.FC<ResultFieldProps> = ({
<EuiPopover
button={
<EuiButtonIcon
aria-label={i18n.translate('searchIndexDocuments.result.fieldTypeAriaLabel', {
defaultMessage: "Show this field's type",
})}
onClick={() => setIsPopoverOpen(!isPopoverOpen)}
iconType={iconType || (fieldType ? iconMap[fieldType] : defaultToken)}
/>
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ export const QuickStats: React.FC<QuickStatsProps> = ({ index, mappings, indexDo
const mappingStats = useMemo(() => countVectorBasedTypesFromMappings(mappings), [mappings]);
const vectorFieldCount =
mappingStats.sparse_vector + mappingStats.dense_vector + mappingStats.semantic_text;
const docCount = indexDocuments?.results._meta.page.total ?? 0;
const docCount = index.documents ?? 0;

return (
<EuiPanel

0 comments on commit 496ff5d

Please sign in to comment.