Skip to content

Commit

Permalink
Merge pull request #34375 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Aug 21, 2024
2 parents 21dd70b + 663ecb0 commit 0955950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions data/release-notes/enterprise-server/3-13/3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ sections:
When restoring data originally backed up from a 3.13 appliance onto a 3.13 appliance, the elasticsearch indices need to be reindexed before some of the data will show up. This happens via a nightly scheduled job. It can also be forced by running `/usr/local/share/enterprise/ghe-es-search-repair`.
- |
The global search bar does not have suggestions enabled due to the redesigned navigation and pending new search experience.
- |
Hotpatching in Azure fails with a `rsync` error.
- |
When restoring from a backup snapshot, a large number of `mapper_parsing_exception` errors may be displayed.
- |
Expand Down
9 changes: 3 additions & 6 deletions src/search/middleware/contextualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,9 @@ export default async function contextualizeSearch(req, res, next) {
}
}

// Feature flag
if (
['enterprise-cloud', 'enterprise-server'].includes(req.context.currentVersion.split('@')[0])
) {
search.aggregate = ['toplevel']
}
// This enables so that when the search is sent to Elasticsearch
// it will request an aggregate by these keyword fields.
search.aggregate = ['toplevel']

req.context.search = { search, validationErrors }

Expand Down

0 comments on commit 0955950

Please sign in to comment.