mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 05:23:47 +08:00
Implement Create/Drop Index/Metadata index in GO (#13791)
### What problem does this PR solve? Implement Create/Drop Index/Metadata index in GO New API handling in GO: POST/kb/index DELETE /kb/index POST /tenant/doc_meta_index DELETE /tenant/doc_meta_index CREATE INDEX FOR DATASET 'dataset_name' VECTOR_SIZE 1024; DROP INDEX FOR DATASET 'dataset_name'; CREATE INDEX DOC_META; DROP INDEX DOC_META; ### Type of change - [x] Refactoring
This commit is contained in:
@@ -135,9 +135,11 @@ type ElasticsearchConfig struct {
|
||||
|
||||
// InfinityConfig Infinity configuration
|
||||
type InfinityConfig struct {
|
||||
URI string `mapstructure:"uri"`
|
||||
PostgresPort int `mapstructure:"postgres_port"`
|
||||
DBName string `mapstructure:"db_name"`
|
||||
URI string `mapstructure:"uri"`
|
||||
PostgresPort int `mapstructure:"postgres_port"`
|
||||
DBName string `mapstructure:"db_name"`
|
||||
MappingFileName string `mapstructure:"mapping_file_name"`
|
||||
DocMetaMappingFileName string `mapstructure:"doc_meta_mapping_file_name"`
|
||||
}
|
||||
|
||||
type StorageType string
|
||||
|
||||
Reference in New Issue
Block a user