Skip to content

Commit 5b4f89d

Browse files
authored
Restrict search extent on high latencies. (dart-lang#9333)
1 parent e306459 commit 5b4f89d

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ AppEngine version, listed here to ease deployment and troubleshooting.
77
* Upgraded stable Dart analysis SDK to `3.11.4`
88
* Upgraded stable Flutter analysis SDK to `3.41.6`.
99
* Note: Started writing search snapshots in `.tar.gz` files.
10+
* Note: `search_index` started to apply `description` and `name` restrictions under high load.
1011

1112
## `20260327t133800-all`
1213
* Image proxy is now disabled for all users.

app/lib/service/entrypoint/search_index.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,11 @@ class LatencyAwareSearchIndex implements SearchIndex {
203203
}
204204
if (latency < const Duration(seconds: 4)) {
205205
_logger.info('[text-match-description]');
206-
// TODO: use `TextMatchExtent.description` after we are confident about this change.
207-
return TextMatchExtent.readme;
206+
return TextMatchExtent.description;
208207
}
209208
if (latency < const Duration(seconds: 10)) {
210209
_logger.info('[text-match-name]');
211-
// TODO: use `TextMatchExtent.name` after we are confident about this change.
212-
return TextMatchExtent.readme;
210+
return TextMatchExtent.name;
213211
}
214212
// TODO: use `TextMatchExtent.none` after we are confident about this change.
215213
_logger.info('[text-match-none]');

0 commit comments

Comments
 (0)