Skip to content

Commit

Permalink
Remove group by id in opensearch queries
Browse files Browse the repository at this point in the history
Since we don't store many documents for each segment now
  • Loading branch information
sausage-todd committed Oct 18, 2024
1 parent f09c1c9 commit f1e712b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ export async function getMemberMergeSuggestions(
query: {
bool: identitiesPartialQuery,
},
collapse: {
field: 'uuid_memberId',
},
_source: [
'uuid_memberId',
'keyword_displayName',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,6 @@ export async function getOrganizationMergeSuggestions(
query: {
bool: identitiesPartialQuery,
},
collapse: {
field: 'uuid_organizationId',
},
_source: [
'uuid_organizationId',
'uuid_tenantId',
Expand Down
34 changes: 0 additions & 34 deletions services/apps/merge_suggestions_worker/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,40 +43,6 @@ export type IOrganizationFilter =
| IRangeFilterCreatedAt
| IExistsFilter

export interface IMemberQueryBody {
from: number
size: number
query: {
bool: {
filter: IMemberFilter[]
}
}
sort: {
[key: string]: string
}
collapse: {
field: string
}
_source: string[]
}

export interface IOrganizationQueryBody {
from: number
size: number
query: {
bool: {
filter: IOrganizationFilter[]
}
}
sort: {
[key: string]: string
}
collapse: {
field: string
}
_source: string[]
}

export interface ILLMResult {
body: ILLMBody
prompt: string
Expand Down

0 comments on commit f1e712b

Please sign in to comment.