File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -94,20 +94,23 @@ class AppDependencies {
94
94
modelName: 'headlines' ,
95
95
fromJson: Headline .fromJson,
96
96
toJson: (item) => item.toJson (),
97
+ searchableFields: ['title' ],
97
98
logger: Logger ('HtDataMongodb<Headline>' ),
98
99
);
99
100
final topicClient = HtDataMongodb <Topic >(
100
101
connectionManager: _mongoDbConnectionManager,
101
102
modelName: 'topics' ,
102
103
fromJson: Topic .fromJson,
103
104
toJson: (item) => item.toJson (),
105
+ searchableFields: ['name' ],
104
106
logger: Logger ('HtDataMongodb<Topic>' ),
105
107
);
106
108
final sourceClient = HtDataMongodb <Source >(
107
109
connectionManager: _mongoDbConnectionManager,
108
110
modelName: 'sources' ,
109
111
fromJson: Source .fromJson,
110
112
toJson: (item) => item.toJson (),
113
+ searchableFields: ['name' ],
111
114
logger: Logger ('HtDataMongodb<Source>' ),
112
115
);
113
116
final countryClient = HtDataMongodb <Country >(
You can’t perform that action at this time.
0 commit comments