Skip to content

Commit

Permalink
removed obsolete type
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakprabhakara committed Jan 9, 2025
1 parent 51787cf commit 5077ddc
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/_db/commands/reindex/shared/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export const makePageIndexer = (writeIndex: string) => async (result: Event[]) =
body.push({
index: {
_index: writeIndex,
_type: "_doc",
},
});
body.push(eventToIndex);
Expand Down
1 change: 0 additions & 1 deletion src/_processor/test/workers/ElasticsearchSaverTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ class ElasticsearchSaverTest {
x.index(
TypeMoq.It.isValue({
index: "retraced.proj01.env01.current",
type: "_doc",
body: expectedIndexed,
id: expectedIndexed.canonical_time.toString() + "-" + expectedIndexed.id,
})
Expand Down
1 change: 0 additions & 1 deletion src/_processor/workers/saveEventToElasticsearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export class ElasticsearchSaver {
private async esIndex(event: any, alias: string) {
const resp = await this.es.index({
index: alias,
type: "_doc",
body: event,
id: event.id ? event.canonical_time.toString() + "-" + event.id : undefined,
});
Expand Down
10 changes: 0 additions & 10 deletions src/models/event/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,16 +354,6 @@ export function searchParams(opts: Options): API.Search_Request {
],
},
};

// return {
// index,
// type: "_doc",
// _source: true,
// size: opts.size != 0 ? opts.size : undefined,
// sort: [`canonical_time: ${opts.sort}`],
// search_after: opts.cursor,
// body: { query },
// };
}

export function searchParamsPaginated(opts: OptionsPaginated): API.Search_Request {
Expand Down
1 change: 0 additions & 1 deletion src/models/event/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ export default async function (opts: Options): Promise<Result> {

const params: any = {
index: opts.index,
type: "_doc",
_source: true,
from: opts.offset || 0,
size: opts.fetchAll ? 5000 : opts.length,
Expand Down

0 comments on commit 5077ddc

Please sign in to comment.