Skip to content

Commit eb47174

Browse files
fix(firestore): graduate pipeline search from preview to GA (#9700)
1 parent f6ca61d commit eb47174

4 files changed

Lines changed: 7 additions & 32 deletions

File tree

‎handwritten/firestore/api-report/firestore.api.md‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ function documentId(documentPath: string | firestore.DocumentReference): Functio
782782
// @public
783783
function documentId(documentPathExpr: Expression): FunctionExpression;
784784

785-
// @beta
785+
// @public
786786
function documentMatches(rquery: string | Expression): BooleanExpression;
787787

788788
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@class" is not defined in this configuration
@@ -1317,7 +1317,6 @@ class Field extends Expression implements firestore.Pipelines.Selectable {
13171317
readonly expressionType: firestore.Pipelines.ExpressionType;
13181318
// (undocumented)
13191319
get fieldName(): string;
1320-
// @beta
13211320
geoDistance(location: GeoPoint | Expression): Expression;
13221321
// (undocumented)
13231322
selectable: true;
@@ -1636,7 +1635,7 @@ class FunctionExpression extends Expression {
16361635
_validateUserData(ignoreUndefinedProperties: boolean): void;
16371636
}
16381637

1639-
// @beta
1638+
// @public
16401639
function geoDistance(fieldName: string | Field, location: GeoPoint | Expression): Expression;
16411640

16421641
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@class" is not defined in this configuration
@@ -2035,8 +2034,6 @@ class Pipeline implements firestore.Pipelines.Pipeline {
20352034
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
20362035
sample(options: firestore.Pipelines.SampleStageOptions): Pipeline;
20372036
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
2038-
//
2039-
// @beta
20402037
search(options: firestore.Pipelines.SearchStageOptions): Pipeline;
20412038
select(selection: firestore.Pipelines.Selectable | string, ...additionalSelections: Array<firestore.Pipelines.Selectable | string>): Pipeline;
20422039
select(options: firestore.Pipelines.SelectStageOptions): Pipeline;
@@ -2691,7 +2688,7 @@ function rtrim(fieldName: string, valueToTrim?: string | Expression | Uint8Array
26912688
// @public
26922689
function rtrim(expression: Expression, valueToTrim?: string | Expression | Uint8Array | Buffer): FunctionExpression;
26932690

2694-
// @beta
2691+
// @public
26952692
function score(): Expression;
26962693

26972694
// @public

‎handwritten/firestore/dev/src/pipelines/expression.ts‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3523,8 +3523,6 @@ export class Field
35233523
// }
35243524

35253525
/**
3526-
* @beta
3527-
*
35283526
* Evaluates to the distance in meters between the location specified
35293527
* by this field and the query location.
35303528
*
@@ -10902,7 +10900,6 @@ export function pipelineValue(
1090210900
}
1090310901

1090410902
// /**
10905-
// * @beta
1090610903
// * Perform a full-text search on the specified field.
1090710904
// *
1090810905
// * @remarks This Expression can only be used within a `search` stage.
@@ -10919,8 +10916,6 @@ export function pipelineValue(
1091910916
// }
1092010917

1092110918
/**
10922-
* @beta
10923-
*
1092410919
* Perform a full-text search on the document.
1092510920
*
1092610921
* @remarks This Expression can only be used within a `search` stage.
@@ -10937,8 +10932,6 @@ export function documentMatches(
1093710932
}
1093810933

1093910934
/**
10940-
* @beta
10941-
*
1094210935
* Evaluates to the search score that reflects the topicality of the document
1094310936
* to all the text predicates (for example: `documentMatches`)
1094410937
* in the search `query` provided to the `search` stage. If the `query` provided to the search stage
@@ -10991,8 +10984,6 @@ export function score(): Expression {
1099110984
// }
1099210985

1099310986
/**
10994-
* @beta
10995-
*
1099610987
* Evaluates to the distance in meters between the location in the specified
1099710988
* field and the query location.
1099810989
*

‎handwritten/firestore/dev/src/pipelines/pipelines.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,8 +1699,6 @@ export class Pipeline implements firestore.Pipelines.Pipeline {
16991699
}
17001700

17011701
/**
1702-
* @beta
1703-
*
17041702
* Add a search stage to the Pipeline.
17051703
*
17061704
* @remarks This must be the first stage of the pipeline.

‎handwritten/firestore/types/firestore.d.ts‎

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12076,7 +12076,6 @@ declare namespace FirebaseFirestore {
1207612076

1207712077
// TODO(search) enable with backend support
1207812078
// /**
12079-
// * @beta
1208012079
// * Perform a full-text search on the specified field.
1208112080
// *
1208212081
// * @remarks This Expression can only be used within a `search` stage.
@@ -12110,11 +12109,9 @@ declare namespace FirebaseFirestore {
1211012109
): BooleanExpression;
1211112110

1211212111
/**
12113-
* @beta
12114-
*
1211512112
* Evaluates to the search score that reflects the topicality of the document
1211612113
* to all of the text predicates (for example: `documentMatches`)
12117-
* in the search query. If `SearchOptions.query` is not set or does not contain
12114+
* in the search query. If `SearchStageOptions.query` is not set or does not contain
1211812115
* any text predicates, then this score will always be `0`.
1211912116
*
1212012117
* @example
@@ -12170,8 +12167,6 @@ declare namespace FirebaseFirestore {
1217012167
// ): Expression;
1217112168

1217212169
/**
12173-
* @beta
12174-
*
1217512170
* Evaluates to the distance in meters between the location in the specified
1217612171
* field and the query location.
1217712172
*
@@ -13571,8 +13566,6 @@ declare namespace FirebaseFirestore {
1357113566
*/
1357213567
unnest(options: UnnestStageOptions): Pipeline;
1357313568
/**
13574-
* @beta
13575-
*
1357613569
* Add a search stage to the Pipeline.
1357713570
*
1357813571
* @remarks This must be the first stage of the pipeline.
@@ -14095,7 +14088,6 @@ declare namespace FirebaseFirestore {
1409514088
};
1409614089

1409714090
///**
14098-
// * @beta
1409914091
// * Specifies if the `matches` and `snippet` expressions will enhance the user
1410014092
// * provided query to perform matching of synonyms, misspellings, lemmatization,
1410114093
// * stemming.
@@ -14110,9 +14102,7 @@ declare namespace FirebaseFirestore {
1411014102
// export type QueryEnhancement = 'disabled' | 'required' | 'preferred';
1411114103

1411214104
/**
14113-
* @beta
14114-
*
14115-
* Options defining how a SearchStage is evaluated. See {@link @firebase/firestore/pipelines#Pipeline.(search)}.
14105+
* Options defining how a SearchStage is evaluated. See {@link Pipeline.search}.
1411614106
*/
1411714107
export type SearchStageOptions = StageOptions & {
1411814108
/**
@@ -14174,13 +14164,13 @@ declare namespace FirebaseFirestore {
1417414164

1417514165
// /**
1417614166
// * The fields to keep or add to each document,
14177-
// * specified as an array of {@link @firebase/firestore/pipelines#Selectable}.
14167+
// * specified as an array of {@link Selectable}.
1417814168
// */
1417914169
// TODO(search) enable with backend support
1418014170
// select?: Array<Selectable | string>;
1418114171

1418214172
/**
14183-
* The fields to add to each document, specified as a {@link @firebase/firestore/pipelines#Selectable}.
14173+
* The fields to add to each document, specified as a {@link Selectable}.
1418414174
*/
1418514175
addFields?: Selectable[];
1418614176

@@ -14194,7 +14184,6 @@ declare namespace FirebaseFirestore {
1419414184

1419514185
// TODO(search) enable with backend support
1419614186
// /**
14197-
// * @beta
1419814187
// * Options defining how a snippet expression is evaluated.
1419914188
// */
1420014189
// export type SnippetOptions = {

0 commit comments

Comments
 (0)