Skip to content

Commit

Permalink
refactor(elasticsearch-plugin): Reuse MutableRequestContext from core
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 15, 2023
1 parent 28ba943 commit a0df530
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 43 deletions.
1 change: 1 addition & 0 deletions packages/core/src/plugin/default-search-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export * from './search-strategy/postgres-search-strategy';
export * from './search-strategy/sqlite-search-strategy';
export * from './search-strategy/search-strategy';
export * from './search-strategy/search-strategy-common';
export * from './indexer/mutable-request-context';
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
InternalServerError,
LanguageCode,
Logger,
MutableRequestContext,
Product,
ProductPriceApplicator,
ProductVariant,
Expand Down Expand Up @@ -47,7 +48,6 @@ import {
} from '../types';

import { createIndices, getClient, getIndexNameByAlias } from './indexing-utils';
import { MutableRequestContext } from './mutable-request-context';

const REINDEX_CHUNK_SIZE = 2500;
const REINDEX_OPERATION_CHUNK_SIZE = 3000;
Expand Down

This file was deleted.

0 comments on commit a0df530

Please sign in to comment.