v4.6.2-alpah (#511)

This commit is contained in:
Archer
2023-11-24 15:29:43 +08:00
committed by GitHub
parent 60f752629f
commit 9cb4280a16
208 changed files with 5396 additions and 3500 deletions

View File

@@ -43,6 +43,14 @@ const DatasetDataSchema = new Schema({
type: String,
default: ''
},
qToken: {
type: String,
default: ''
},
aToken: {
type: String,
default: ''
},
indexes: {
type: [
{
@@ -70,9 +78,11 @@ const DatasetDataSchema = new Schema({
});
try {
DatasetDataSchema.index({ userId: 1 });
DatasetDataSchema.index({ teamId: 1 });
DatasetDataSchema.index({ datasetId: 1 });
DatasetDataSchema.index({ collectionId: 1 });
// full text index
DatasetDataSchema.index({ qToken: 'text', aToken: 'text' });
} catch (error) {
console.log(error);
}