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 {
9494 modelName: 'headlines' ,
9595 fromJson: Headline .fromJson,
9696 toJson: (item) => item.toJson (),
97+ searchableFields: ['title' ],
9798 logger: Logger ('HtDataMongodb<Headline>' ),
9899 );
99100 final topicClient = HtDataMongodb <Topic >(
100101 connectionManager: _mongoDbConnectionManager,
101102 modelName: 'topics' ,
102103 fromJson: Topic .fromJson,
103104 toJson: (item) => item.toJson (),
105+ searchableFields: ['name' ],
104106 logger: Logger ('HtDataMongodb<Topic>' ),
105107 );
106108 final sourceClient = HtDataMongodb <Source >(
107109 connectionManager: _mongoDbConnectionManager,
108110 modelName: 'sources' ,
109111 fromJson: Source .fromJson,
110112 toJson: (item) => item.toJson (),
113+ searchableFields: ['name' ],
111114 logger: Logger ('HtDataMongodb<Source>' ),
112115 );
113116 final countryClient = HtDataMongodb <Country >(
You can’t perform that action at this time.
0 commit comments