Browse Source

Fix Flat type cannot create index

Signed-off-by: tumao <yan.wang@zilliz.com>
tumao 2 years ago
parent
commit
c5b198fd4a

+ 1 - 1
client/src/consts/Milvus.tsx

@@ -86,7 +86,7 @@ export const FLOAT_INDEX_CONFIG: indexConfigType = {
   //   search: ['nprobe'],
   // },
   FLAT: {
-    create: [''],
+    create: [],
     search: ['nprobe'],
   },
   HNSW: {

+ 1 - 0
client/src/pages/schema/Create.tsx

@@ -256,6 +256,7 @@ const CreateIndex = (props: {
     // setDisabled(true);
     setIndexSetting(v => ({
       ...v,
+      index_name: '',
       metric_type: defaultMetricType,
       M: '',
       m: '4',

+ 1 - 0
client/src/pages/schema/CreateForm.tsx

@@ -174,6 +174,7 @@ const CreateForm = (
         type="text"
         textConfig={indexNameConfig}
         checkValid={checkIsValid}
+        validInfo={validation}
       />
       <CustomSelector
         label={indexTrans('type')}