Skip to content

Commit

Permalink
ISPN-16490 Index metamodel view with analyser
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Sep 5, 2024
1 parent d11c55d commit 6cdbcef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/app/IndexManagement/ViewMetamodel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const ViewMetamodel = (props: {
multiValuedInRoot: t('caches.index.metamodel.column-multi-valued-root'),
type: t('caches.index.metamodel.column-type'),
projectionType: t('caches.index.metamodel.column-projection-type'),
argumentType: t('caches.index.metamodel.column-argument-type')
argumentType: t('caches.index.metamodel.column-argument-type'),
analyzer: t('caches.index.metamodel.column-analyzer')
};

const displayEnabled = (enabled: boolean) => {
Expand Down Expand Up @@ -96,6 +97,17 @@ const ViewMetamodel = (props: {
<Tr>
<Th>{columnNames.name}</Th>
<Th>{columnNames.type}</Th>
<Th
info={{
popover: t('caches.index.metamodel.column-analyzer-tooltip'),
popoverProps: {
headerContent: t('caches.index.metamodel.column-analyzer')
}
}}
colSpan={1}
>
{columnNames.analyzer}
</Th>
<Th
info={{
popover: t('caches.index.metamodel.column-multi-valued-tooltip'),
Expand Down Expand Up @@ -169,6 +181,7 @@ const ViewMetamodel = (props: {
<Tr key={field.name}>
<Td dataLabel={columnNames.name}>{field.name}</Td>
<Td dataLabel={columnNames.type}>{field.type}</Td>
<Td dataLabel={columnNames.analyzer}>{field.analyzer}</Td>
<Td dataLabel={columnNames.multiValued}>{displayEnabled(field.multiValued)}</Td>
<Td dataLabel={columnNames.multiValuedInRoot}>{displayEnabled(field.multiValuedInRoot)}</Td>
<Td dataLabel={columnNames.aggregable}>{displayEnabled(field.aggregable)}</Td>
Expand Down
4 changes: 3 additions & 1 deletion src/app/assets/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,9 @@
"column-multi-valued-root-tooltip": "A multi-valued in root is a field that can hold multiple values at the top level of a document or object.",
"column-type": "Type",
"column-projection-type": "Projection type",
"column-argument-type": "Argument type"
"column-argument-type": "Argument type",
"column-analyzer": "Analyzer",
"column-analyzer-tooltip": "An \"Analyzer\" is a tool that processes text data by breaking it into smaller units (tokens) and applying filters (like lowercasing or removing stopwords) to make it easier to search and index."
}
},
"tracing": {
Expand Down

0 comments on commit 6cdbcef

Please sign in to comment.