File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/lib/service/entrypoint Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ Future<void> main(List<String> args, var message) async {
60
60
final info = await searchIndex.indexInfo ();
61
61
return ReplyMessage .result (info.toJson ());
62
62
} else if (payload is String ) {
63
- final q = ServiceSearchQuery .fromServiceUrl (Uri .parse (payload));
63
+ final q = ServiceSearchQuery .fromSearchRequestData (
64
+ SearchRequestData .fromJson (
65
+ json.decode (payload) as Map <String , dynamic >));
64
66
final rs = await searchIndex.search (q);
65
67
return ReplyMessage .result (json.encode (rs.toJson ()));
66
68
} else {
@@ -131,7 +133,7 @@ class IsolateSearchIndex implements SearchIndex {
131
133
FutureOr <PackageSearchResult > search (ServiceSearchQuery query) async {
132
134
try {
133
135
final rs = await _runner.sendRequest (
134
- Uri (queryParameters : query.toUriQueryParameters ()). toString ( ),
136
+ json. encode ( query.toSearchRequestData (). toJson () ),
135
137
timeout: Duration (minutes: 1 ),
136
138
);
137
139
return PackageSearchResult .fromJson (
You can’t perform that action at this time.
0 commit comments