Skip to content

Commit

Permalink
fix(search): delete name.id from search and add inseeCode for relatio…
Browse files Browse the repository at this point in the history
…n type research
  • Loading branch information
Mihoub2 committed Nov 5, 2024
1 parent c3113ef commit 3e0cb7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api/commons/queries/legal-categories.elastic.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default [
pluralNameFr: { $ifNull: ['$pluralNameFr', null] },
shortNameEn: { $ifNull: ['$shortNameEn', null] },
shortNameFr: { $ifNull: ['$shortNameFr', null] },
inseeCode: { $ifNull: ['$inseeCode', null] },
},
},
];
2 changes: 1 addition & 1 deletion src/api/search/search.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const searchedFields = [
'nameFr',
'names',
'names.acronymFr',
'names.id',
'names.nameEn',
'names.officialName',
'names.otherNames',
Expand All @@ -48,6 +47,7 @@ const searchedFields = [
'otherNames',
'otherNamesEn',
'otherNamesFr',
'inseeCode',
'shortName',
];

Expand Down

0 comments on commit 3e0cb7c

Please sign in to comment.