Skip to content

Commit

Permalink
fix cog search id error
Browse files Browse the repository at this point in the history
  • Loading branch information
thivy committed Aug 11, 2023
1 parent 0d09a73 commit 9def0d6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ export class AzureCogSearch<
});
});

// run through indexes and if the id has _ then remove it
indexes.forEach((index) => {
if (index.id.includes("_")) {
index.id = index.id.replace("_", "");
}
});

const documentIndexRequest: DocumentSearchResponseModel<TModel> = {
value: indexes,
};
Expand Down

0 comments on commit 9def0d6

Please sign in to comment.