Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo sync #34375

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading