Skip to content

Commit cfe2159

Browse files
committed
updated snippit schema (removed text-search)
1 parent 8eef1e8 commit cfe2159

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/models/snippit.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use strict';
22

33
var mongoose = require('mongoose'),
4-
Schema = mongoose.Schema,
5-
textSearch = require('mongoose-text-search');
4+
Schema = mongoose.Schema;
65

76

87
/**
@@ -17,8 +16,4 @@ var SnippitSchema = new Schema({
1716
score: Number
1817
});
1918

20-
SnippitSchema.plugin(textSearch);
21-
22-
SnippitSchema.index ( {contents: 'text' } );
23-
2419
mongoose.model('Snippit', SnippitSchema);

0 commit comments

Comments
 (0)