chore(elasticSearch): export utility function
Signed-off-by: Phil Kuang <pkuang@factset.com>
This commit is contained in:
committed by
Renan Mendes Carvalho
parent
e6d358237c
commit
896566906b
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-search-backend-module-elasticsearch': patch
|
||||
---
|
||||
|
||||
Export `decodeElasticSearchPageCursor` utility function
|
||||
@@ -67,6 +67,11 @@ export interface BaseElasticSearchClientOptions {
|
||||
Transport?: ElasticSearchTransportConstructor;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export function decodeElasticSearchPageCursor(pageCursor?: string): {
|
||||
page: number;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export interface ElasticSearchAgentOptions {
|
||||
// (undocumented)
|
||||
|
||||
@@ -408,6 +408,9 @@ export class ElasticSearchSearchEngine implements SearchEngine {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export function decodePageCursor(pageCursor?: string): { page: number } {
|
||||
if (!pageCursor) {
|
||||
return { page: 0 };
|
||||
|
||||
@@ -14,7 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { ElasticSearchSearchEngine } from './ElasticSearchSearchEngine';
|
||||
export {
|
||||
decodePageCursor as decodeElasticSearchPageCursor,
|
||||
ElasticSearchSearchEngine,
|
||||
} from './ElasticSearchSearchEngine';
|
||||
export { isOpenSearchCompatible } from './ElasticSearchClientOptions';
|
||||
export type {
|
||||
BaseElasticSearchClientOptions,
|
||||
|
||||
@@ -20,7 +20,11 @@
|
||||
* @packageDocumentation
|
||||
*/
|
||||
|
||||
export { ElasticSearchSearchEngine, isOpenSearchCompatible } from './engines';
|
||||
export {
|
||||
decodeElasticSearchPageCursor,
|
||||
ElasticSearchSearchEngine,
|
||||
isOpenSearchCompatible,
|
||||
} from './engines';
|
||||
export type {
|
||||
BaseElasticSearchClientOptions,
|
||||
ElasticSearchAgentOptions,
|
||||
|
||||
Reference in New Issue
Block a user