We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bc07ec commit 4b8b0a9Copy full SHA for 4b8b0a9
1 file changed
docs/search.js
@@ -23,7 +23,8 @@ const contentSchema = new mongoose.Schema({
23
title: { type: String, required: true },
24
body: { type: String, required: true },
25
url: { type: String, required: true },
26
- version: { type: String, required: true, default: version }
+ version: { type: String, required: true, default: version },
27
+ versionNumber: { type: Number, required: true, default: version.replace(/\.x$/, '') }
28
});
29
contentSchema.index({ title: 'text', body: 'text' });
30
const Content = mongoose.model('Content', contentSchema, 'Content');
0 commit comments