Use @backstage/plugin-search-common instead of @backstage/search-common

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2022-03-03 17:02:37 +01:00
parent 6921edc6a0
commit 3e54f6c436
59 changed files with 94 additions and 74 deletions
@@ -18,7 +18,7 @@ import { getVoidLogger } from '@backstage/backend-common';
import {
DocumentCollatorFactory,
DocumentDecoratorFactory,
} from '@backstage/search-common';
} from '@backstage/plugin-search-common';
import { Readable, Transform } from 'stream';
import { IndexBuilder } from './IndexBuilder';
import { LunrSearchEngine, SearchEngine } from './index';
@@ -19,7 +19,7 @@ import {
DocumentDecoratorFactory,
DocumentTypeInfo,
SearchEngine,
} from '@backstage/search-common';
} from '@backstage/plugin-search-common';
import { Transform, pipeline } from 'stream';
import { Logger } from 'winston';
import { Scheduler } from './index';
@@ -16,7 +16,10 @@
import { getVoidLogger } from '@backstage/backend-common';
import lunr from 'lunr';
import { IndexableDocument, SearchEngine } from '@backstage/search-common';
import {
IndexableDocument,
SearchEngine,
} from '@backstage/plugin-search-common';
import {
ConcreteLunrQuery,
LunrSearchEngine,
@@ -20,7 +20,7 @@ import {
SearchResultSet,
QueryTranslator,
SearchEngine,
} from '@backstage/search-common';
} from '@backstage/plugin-search-common';
import lunr from 'lunr';
import { Logger } from 'winston';
import { LunrSearchEngineIndexer } from './LunrSearchEngineIndexer';
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { IndexableDocument } from '@backstage/search-common';
import { IndexableDocument } from '@backstage/plugin-search-common';
import lunr from 'lunr';
import { BatchSearchEngineIndexer } from '../indexing';
+2 -2
View File
@@ -37,6 +37,6 @@ export * from './indexing';
export * from './test-utils';
/**
* @deprecated Import from @backstage/search-common instead
* @deprecated Import from @backstage/plugin-search-common instead
*/
export type { SearchEngine } from '@backstage/search-common';
export type { SearchEngine } from '@backstage/plugin-search-common';
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { IndexableDocument } from '@backstage/search-common';
import { IndexableDocument } from '@backstage/plugin-search-common';
import { BatchSearchEngineIndexer } from './BatchSearchEngineIndexer';
import { TestPipeline } from '../test-utils';
@@ -15,7 +15,7 @@
*/
import { assertError } from '@backstage/errors';
import { IndexableDocument } from '@backstage/search-common';
import { IndexableDocument } from '@backstage/plugin-search-common';
import { Writable } from 'stream';
/**
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { IndexableDocument } from '@backstage/search-common';
import { IndexableDocument } from '@backstage/plugin-search-common';
import { DecoratorBase } from './DecoratorBase';
import { TestPipeline } from '../test-utils';
@@ -15,7 +15,7 @@
*/
import { assertError } from '@backstage/errors';
import { IndexableDocument } from '@backstage/search-common';
import { IndexableDocument } from '@backstage/plugin-search-common';
import { Transform } from 'stream';
/**
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { IndexableDocument } from '@backstage/search-common';
import { IndexableDocument } from '@backstage/plugin-search-common';
import { pipeline, Readable, Transform, Writable } from 'stream';
/**
+1 -1
View File
@@ -18,7 +18,7 @@ import {
DocumentCollatorFactory,
DocumentDecoratorFactory,
SearchEngine,
} from '@backstage/search-common';
} from '@backstage/plugin-search-common';
import { Logger } from 'winston';
/**