4.6.2-alpha (#517)

This commit is contained in:
Archer
2023-11-25 21:58:00 +08:00
committed by GitHub
parent 9cb4280a16
commit 3acbf1ab17
39 changed files with 617 additions and 183 deletions

View File

@@ -43,13 +43,9 @@ const DatasetDataSchema = new Schema({
type: String,
default: ''
},
qToken: {
fullTextToken: {
type: String,
default: ''
},
aToken: {
type: String,
default: ''
required: true
},
indexes: {
type: [
@@ -82,7 +78,7 @@ try {
DatasetDataSchema.index({ datasetId: 1 });
DatasetDataSchema.index({ collectionId: 1 });
// full text index
DatasetDataSchema.index({ qToken: 'text', aToken: 'text' });
DatasetDataSchema.index({ fullTextToken: 'text' });
} catch (error) {
console.log(error);
}