couchbase 4.2.10 → 4.2.11-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/deps/couchbase-cxx-client/core/bucket.cxx +23 -8
  2. package/deps/couchbase-cxx-client/core/bucket.hxx +1 -0
  3. package/deps/couchbase-cxx-client/core/cluster.cxx +29 -3
  4. package/deps/couchbase-cxx-client/core/impl/collection.cxx +2 -2
  5. package/deps/couchbase-cxx-client/core/impl/query_index_manager.cxx +6 -6
  6. package/deps/couchbase-cxx-client/core/io/http_session_manager.hxx +7 -1
  7. package/deps/couchbase-cxx-client/core/io/mcbp_command.hxx +10 -0
  8. package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +24 -1
  9. package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +1 -0
  10. package/deps/couchbase-cxx-client/core/management/design_document.hxx +1 -1
  11. package/deps/couchbase-cxx-client/core/meta/features.hxx +16 -1
  12. package/deps/couchbase-cxx-client/core/operations/document_lookup_in_all_replicas.hxx +1 -1
  13. package/deps/couchbase-cxx-client/core/operations/document_lookup_in_any_replica.hxx +1 -1
  14. package/deps/couchbase-cxx-client/core/operations/document_query.cxx +2 -2
  15. package/deps/couchbase-cxx-client/core/operations/document_search.cxx +10 -10
  16. package/deps/couchbase-cxx-client/core/operations/document_view.cxx +3 -0
  17. package/deps/couchbase-cxx-client/core/operations/document_view.hxx +1 -0
  18. package/deps/couchbase-cxx-client/core/operations/management/query_index_create.cxx +24 -13
  19. package/deps/couchbase-cxx-client/core/operations/management/query_index_create.hxx +1 -1
  20. package/deps/couchbase-cxx-client/core/origin.cxx +14 -0
  21. package/deps/couchbase-cxx-client/core/origin.hxx +6 -0
  22. package/deps/couchbase-cxx-client/core/protocol/status.cxx +2 -0
  23. package/deps/couchbase-cxx-client/core/protocol/status.hxx +1 -0
  24. package/deps/couchbase-cxx-client/core/topology/capabilities.hxx +70 -1
  25. package/deps/couchbase-cxx-client/core/topology/capabilities_fmt.hxx +30 -2
  26. package/deps/couchbase-cxx-client/core/topology/configuration.hxx +1 -34
  27. package/deps/couchbase-cxx-client/core/topology/configuration_fmt.hxx +2 -2
  28. package/deps/couchbase-cxx-client/core/topology/configuration_json.hxx +43 -20
  29. package/deps/couchbase-cxx-client/core/transactions/internal/exceptions_internal.hxx +5 -0
  30. package/deps/couchbase-cxx-client/couchbase/collection_query_index_manager.hxx +80 -11
  31. package/deps/couchbase-cxx-client/couchbase/fmt/key_value_status_code.hxx +3 -1
  32. package/deps/couchbase-cxx-client/couchbase/key_value_status_code.hxx +1 -0
  33. package/deps/couchbase-cxx-client/couchbase/query_index_manager.hxx +6 -8
  34. package/dist/binding.d.ts +24 -2
  35. package/dist/bindingutilities.d.ts +11 -3
  36. package/dist/bindingutilities.js +33 -7
  37. package/dist/couchbase.d.ts +1 -0
  38. package/dist/couchbase.js +1 -0
  39. package/dist/queryindexmanager.d.ts +4 -4
  40. package/dist/queryindexmanager.js +7 -7
  41. package/dist/scope.d.ts +21 -0
  42. package/dist/scope.js +34 -0
  43. package/dist/scopesearchindexmanager.d.ts +116 -0
  44. package/dist/scopesearchindexmanager.js +406 -0
  45. package/dist/sdspecs.js +10 -9
  46. package/dist/sdutils.d.ts +1 -0
  47. package/dist/sdutils.js +4 -0
  48. package/dist/searchexecutor.d.ts +3 -1
  49. package/dist/searchexecutor.js +9 -2
  50. package/dist/searchindexmanager.d.ts +58 -3
  51. package/dist/searchindexmanager.js +188 -104
  52. package/dist/viewexecutor.js +13 -9
  53. package/dist/viewindexmanager.d.ts +70 -7
  54. package/dist/viewindexmanager.js +236 -103
  55. package/dist/viewtypes.d.ts +26 -0
  56. package/dist/viewtypes.js +17 -1
  57. package/package.json +7 -7
  58. package/src/constants.cpp +1 -0
  59. package/src/jstocbpp_autogen.hpp +89 -6
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.vectorQueryCombinationToCpp = exports.bucketConflictResolutionTypeFromCpp = exports.bucketConflictResolutionTypeToCpp = exports.bucketStorageBackendFromCpp = exports.bucketStorageBackendToCpp = exports.bucketEvictionPolicyFromCpp = exports.bucketEvictionPolicyToCpp = exports.bucketCompressionModeFromCpp = exports.bucketCompressionModeToCpp = exports.bucketTypeFromCpp = exports.bucketTypeToCpp = exports.scanTypeToCpp = exports.errorFromCpp = exports.contextFromCpp = exports.pingStateFromCpp = exports.txnOpExeptionFromCpp = exports.txnExternalExceptionStringFromCpp = exports.endpointStateFromCpp = exports.serviceTypeFromCpp = exports.serviceTypeToCpp = exports.mutationStateToCpp = exports.searchHighlightStyleToCpp = exports.searchScanConsistencyToCpp = exports.analyticsStatusFromCpp = exports.analyticsScanConsistencyToCpp = exports.queryProfileToCpp = exports.queryScanConsistencyToCpp = exports.viewOrderingToCpp = exports.viewScanConsistencyToCpp = exports.storeSemanticToCpp = exports.replicateToToCpp = exports.persistToToCpp = exports.durabilityFromCpp = exports.durabilityToCpp = void 0;
29
+ exports.designDocumentNamespaceToCpp = exports.designDocumentNamespaceFromCpp = exports.vectorQueryCombinationToCpp = exports.bucketConflictResolutionTypeFromCpp = exports.bucketConflictResolutionTypeToCpp = exports.bucketStorageBackendFromCpp = exports.bucketStorageBackendToCpp = exports.bucketEvictionPolicyFromCpp = exports.bucketEvictionPolicyToCpp = exports.bucketCompressionModeFromCpp = exports.bucketCompressionModeToCpp = exports.bucketTypeFromCpp = exports.bucketTypeToCpp = exports.scanTypeToCpp = exports.errorFromCpp = exports.contextFromCpp = exports.pingStateFromCpp = exports.txnOpExeptionFromCpp = exports.txnExternalExceptionStringFromCpp = exports.endpointStateFromCpp = exports.serviceTypeFromCpp = exports.serviceTypeToCpp = exports.mutationStateToCpp = exports.searchHighlightStyleToCpp = exports.searchScanConsistencyToCpp = exports.analyticsStatusFromCpp = exports.analyticsScanConsistencyToCpp = exports.queryProfileToCpp = exports.queryScanConsistencyToCpp = exports.viewOrderingToCpp = exports.viewScanConsistencyToCpp = exports.storeSemanticToCpp = exports.replicateToToCpp = exports.persistToToCpp = exports.durabilityFromCpp = exports.durabilityToCpp = void 0;
30
30
  const analyticstypes_1 = require("./analyticstypes");
31
31
  const binding_1 = __importDefault(require("./binding"));
32
32
  const bucketmanager_1 = require("./bucketmanager");
@@ -182,18 +182,18 @@ exports.viewScanConsistencyToCpp = viewScanConsistencyToCpp;
182
182
  /**
183
183
  * @internal
184
184
  */
185
- function viewOrderingToCpp(mode) {
186
- // Unspecified is allowed, and means no sync durability.
187
- if (mode === null || mode === undefined) {
185
+ function viewOrderingToCpp(ordering) {
186
+ // Unspecified is allowed, and means default ordering.
187
+ if (ordering === null || ordering === undefined) {
188
188
  return undefined;
189
189
  }
190
- if (mode === viewtypes_1.ViewOrdering.Ascending) {
190
+ if (ordering === viewtypes_1.ViewOrdering.Ascending) {
191
191
  return binding_1.default.view_sort_order.ascending;
192
192
  }
193
- else if (mode === viewtypes_1.ViewOrdering.Descending) {
193
+ else if (ordering === viewtypes_1.ViewOrdering.Descending) {
194
194
  return binding_1.default.view_sort_order.descending;
195
195
  }
196
- throw new errs.InvalidArgumentError();
196
+ throw new errs.InvalidArgumentError(new Error('Unrecognized view ordering.'));
197
197
  }
198
198
  exports.viewOrderingToCpp = viewOrderingToCpp;
199
199
  /**
@@ -1025,3 +1025,29 @@ function vectorQueryCombinationToCpp(combination) {
1025
1025
  throw new errs.InvalidArgumentError(new Error('Unrecognized VectorQueryCombination.'));
1026
1026
  }
1027
1027
  exports.vectorQueryCombinationToCpp = vectorQueryCombinationToCpp;
1028
+ /**
1029
+ * @internal
1030
+ */
1031
+ function designDocumentNamespaceFromCpp(namespace) {
1032
+ if (namespace === binding_1.default.design_document_namespace.production) {
1033
+ return viewtypes_1.DesignDocumentNamespace.Production;
1034
+ }
1035
+ else if (namespace === binding_1.default.design_document_namespace.development) {
1036
+ return viewtypes_1.DesignDocumentNamespace.Development;
1037
+ }
1038
+ throw new errs.InvalidArgumentError(new Error('Unrecognized DesignDocumentNamespace.'));
1039
+ }
1040
+ exports.designDocumentNamespaceFromCpp = designDocumentNamespaceFromCpp;
1041
+ /**
1042
+ * @internal
1043
+ */
1044
+ function designDocumentNamespaceToCpp(namespace) {
1045
+ if (namespace === viewtypes_1.DesignDocumentNamespace.Production) {
1046
+ return binding_1.default.design_document_namespace.production;
1047
+ }
1048
+ else if (namespace === viewtypes_1.DesignDocumentNamespace.Development) {
1049
+ return binding_1.default.design_document_namespace.development;
1050
+ }
1051
+ throw new errs.InvalidArgumentError(new Error('Unrecognized DesignDocumentNamespace.'));
1052
+ }
1053
+ exports.designDocumentNamespaceToCpp = designDocumentNamespaceToCpp;
@@ -60,6 +60,7 @@ export * from './mutationstate';
60
60
  export * from './queryindexmanager';
61
61
  export * from './querytypes';
62
62
  export * from './scope';
63
+ export * from './scopesearchindexmanager';
63
64
  export * from './sdspecs';
64
65
  export * from './searchfacet';
65
66
  export * from './searchindexmanager';
package/dist/couchbase.js CHANGED
@@ -89,6 +89,7 @@ __exportStar(require("./mutationstate"), exports);
89
89
  __exportStar(require("./queryindexmanager"), exports);
90
90
  __exportStar(require("./querytypes"), exports);
91
91
  __exportStar(require("./scope"), exports);
92
+ __exportStar(require("./scopesearchindexmanager"), exports);
92
93
  __exportStar(require("./sdspecs"), exports);
93
94
  __exportStar(require("./searchfacet"), exports);
94
95
  __exportStar(require("./searchindexmanager"), exports);
@@ -264,11 +264,11 @@ export declare class CollectionQueryIndexManager {
264
264
  * Creates a new query index.
265
265
  *
266
266
  * @param indexName The name of the new index.
267
- * @param fields The fields which this index should cover.
267
+ * @param keys The keys which this index should cover.
268
268
  * @param options Optional parameters for this operation.
269
269
  * @param callback A node-style callback to be invoked after execution.
270
270
  */
271
- createIndex(indexName: string, fields: string[], options?: CreateQueryIndexOptions, callback?: NodeCallback<void>): Promise<void>;
271
+ createIndex(indexName: string, keys: string[], options?: CreateQueryIndexOptions, callback?: NodeCallback<void>): Promise<void>;
272
272
  /**
273
273
  * Creates a new primary query index.
274
274
  *
@@ -332,11 +332,11 @@ export declare class QueryIndexManager {
332
332
  *
333
333
  * @param bucketName The name of the bucket this index is for.
334
334
  * @param indexName The name of the new index.
335
- * @param fields The fields which this index should cover.
335
+ * @param keys The keys which this index should cover.
336
336
  * @param options Optional parameters for this operation.
337
337
  * @param callback A node-style callback to be invoked after execution.
338
338
  */
339
- createIndex(bucketName: string, indexName: string, fields: string[], options?: CreateQueryIndexOptions, callback?: NodeCallback<void>): Promise<void>;
339
+ createIndex(bucketName: string, indexName: string, keys: string[], options?: CreateQueryIndexOptions, callback?: NodeCallback<void>): Promise<void>;
340
340
  /**
341
341
  * Creates a new primary query index.
342
342
  *
@@ -52,7 +52,7 @@ class InternalQueryIndexManager {
52
52
  scope_name: options.scopeName || '',
53
53
  collection_name: options.collectionName || '',
54
54
  index_name: options.name || '',
55
- fields: options.fields || [],
55
+ keys: options.keys || [],
56
56
  query_ctx: options.queryContext || this._queryContext,
57
57
  is_primary: isPrimary,
58
58
  ignore_if_exists: options.ignoreIfExists || false,
@@ -217,11 +217,11 @@ class CollectionQueryIndexManager {
217
217
  * Creates a new query index.
218
218
  *
219
219
  * @param indexName The name of the new index.
220
- * @param fields The fields which this index should cover.
220
+ * @param keys The keys which this index should cover.
221
221
  * @param options Optional parameters for this operation.
222
222
  * @param callback A node-style callback to be invoked after execution.
223
223
  */
224
- async createIndex(indexName, fields, options, callback) {
224
+ async createIndex(indexName, keys, options, callback) {
225
225
  if (options instanceof Function) {
226
226
  callback = arguments[2];
227
227
  options = undefined;
@@ -233,7 +233,7 @@ class CollectionQueryIndexManager {
233
233
  collectionName: this._collectionName,
234
234
  scopeName: this._scopeName,
235
235
  name: indexName,
236
- fields: fields,
236
+ keys: keys,
237
237
  ignoreIfExists: options.ignoreIfExists,
238
238
  numReplicas: options.numReplicas,
239
239
  deferred: options.deferred,
@@ -390,11 +390,11 @@ class QueryIndexManager {
390
390
  *
391
391
  * @param bucketName The name of the bucket this index is for.
392
392
  * @param indexName The name of the new index.
393
- * @param fields The fields which this index should cover.
393
+ * @param keys The keys which this index should cover.
394
394
  * @param options Optional parameters for this operation.
395
395
  * @param callback A node-style callback to be invoked after execution.
396
396
  */
397
- async createIndex(bucketName, indexName, fields, options, callback) {
397
+ async createIndex(bucketName, indexName, keys, options, callback) {
398
398
  if (options instanceof Function) {
399
399
  callback = arguments[3];
400
400
  options = undefined;
@@ -406,7 +406,7 @@ class QueryIndexManager {
406
406
  collectionName: options.collectionName,
407
407
  scopeName: options.scopeName,
408
408
  name: indexName,
409
- fields: fields,
409
+ keys: keys,
410
410
  ignoreIfExists: options.ignoreIfExists,
411
411
  numReplicas: options.numReplicas,
412
412
  deferred: options.deferred,
package/dist/scope.d.ts CHANGED
@@ -4,6 +4,8 @@ import { Bucket } from './bucket';
4
4
  import { Cluster } from './cluster';
5
5
  import { Collection } from './collection';
6
6
  import { QueryMetaData, QueryOptions, QueryResult } from './querytypes';
7
+ import { ScopeSearchIndexManager } from './scopesearchindexmanager';
8
+ import { SearchMetaData, SearchQueryOptions, SearchRequest, SearchResult, SearchRow } from './searchtypes';
7
9
  import { StreamableRowPromise } from './streamablepromises';
8
10
  import { Transcoder } from './transcoders';
9
11
  import { NodeCallback } from './utilities';
@@ -51,6 +53,14 @@ export declare class Scope {
51
53
  * @param collectionName The name of the collection to reference.
52
54
  */
53
55
  collection(collectionName: string): Collection;
56
+ /**
57
+ * Returns a SearchIndexManager which can be used to manage the search
58
+ * indexes of this scope.
59
+ *
60
+ * Volatile: This API is subject to change at any time.
61
+ *
62
+ */
63
+ searchIndexes(): ScopeSearchIndexManager;
54
64
  /**
55
65
  * Executes a N1QL query against the cluster scoped to this scope.
56
66
  *
@@ -67,4 +77,15 @@ export declare class Scope {
67
77
  * @param callback A node-style callback to be invoked after execution.
68
78
  */
69
79
  analyticsQuery<TRow = any>(statement: string, options?: AnalyticsQueryOptions, callback?: NodeCallback<AnalyticsResult<TRow>>): StreamableRowPromise<AnalyticsResult<TRow>, TRow, AnalyticsMetaData>;
80
+ /**
81
+ * Executes a search query against the scope.
82
+ *
83
+ * Volatile: This API is subject to change at any time.
84
+ *
85
+ * @param indexName The name of the index to query.
86
+ * @param request The SearchRequest describing the search to execute.
87
+ * @param options Optional parameters for this operation.
88
+ * @param callback A node-style callback to be invoked after execution.
89
+ */
90
+ search(indexName: string, request: SearchRequest, options?: SearchQueryOptions, callback?: NodeCallback<SearchResult>): StreamableRowPromise<SearchResult, SearchRow, SearchMetaData>;
70
91
  }
package/dist/scope.js CHANGED
@@ -4,6 +4,8 @@ exports.Scope = void 0;
4
4
  const analyticsexecutor_1 = require("./analyticsexecutor");
5
5
  const collection_1 = require("./collection");
6
6
  const queryexecutor_1 = require("./queryexecutor");
7
+ const searchexecutor_1 = require("./searchexecutor");
8
+ const scopesearchindexmanager_1 = require("./scopesearchindexmanager");
7
9
  const utilities_1 = require("./utilities");
8
10
  /**
9
11
  * Exposes the operations which are available to be performed against a scope.
@@ -64,6 +66,16 @@ class Scope {
64
66
  collection(collectionName) {
65
67
  return new collection_1.Collection(this, collectionName);
66
68
  }
69
+ /**
70
+ * Returns a SearchIndexManager which can be used to manage the search
71
+ * indexes of this scope.
72
+ *
73
+ * Volatile: This API is subject to change at any time.
74
+ *
75
+ */
76
+ searchIndexes() {
77
+ return new scopesearchindexmanager_1.ScopeSearchIndexManager(this.cluster, this.bucket.name, this._name);
78
+ }
67
79
  /**
68
80
  * Executes a N1QL query against the cluster scoped to this scope.
69
81
  *
@@ -110,5 +122,27 @@ class Scope {
110
122
  queryContext: `${bucket.name}.${this.name}`,
111
123
  }), callback);
112
124
  }
125
+ /**
126
+ * Executes a search query against the scope.
127
+ *
128
+ * Volatile: This API is subject to change at any time.
129
+ *
130
+ * @param indexName The name of the index to query.
131
+ * @param request The SearchRequest describing the search to execute.
132
+ * @param options Optional parameters for this operation.
133
+ * @param callback A node-style callback to be invoked after execution.
134
+ */
135
+ search(indexName, request, options, callback) {
136
+ if (options instanceof Function) {
137
+ callback = arguments[2];
138
+ options = undefined;
139
+ }
140
+ if (!options) {
141
+ options = {};
142
+ }
143
+ const exec = new searchexecutor_1.SearchExecutor(this.cluster, this._bucket.name, this._name);
144
+ const options_ = options;
145
+ return utilities_1.PromiseHelper.wrapAsync(() => exec.query(indexName, request, options_), callback);
146
+ }
113
147
  }
114
148
  exports.Scope = Scope;
@@ -0,0 +1,116 @@
1
+ import { Cluster } from './cluster';
2
+ import { NodeCallback } from './utilities';
3
+ import { GetSearchIndexOptions, GetAllSearchIndexesOptions, UpsertSearchIndexOptions, GetSearchIndexedDocumentsCountOptions, DropSearchIndexOptions, PauseSearchIngestOptions, ResumeSearchIngestOptions, AllowSearchQueryingOptions, DisallowSearchQueryingOptions, FreezeSearchPlanOptions, UnfreezeSearchPlanOptions, AnalyzeSearchDocumentOptions, ISearchIndex, SearchIndex } from './searchindexmanager';
4
+ /**
5
+ * SearchIndexManager provides an interface for managing the
6
+ * search indexes on the cluster.
7
+ *
8
+ * Volatile: This API is subject to change at any time.
9
+ *
10
+ * @category Management
11
+ */
12
+ export declare class ScopeSearchIndexManager {
13
+ private _cluster;
14
+ private _bucketName;
15
+ private _scopeName;
16
+ /**
17
+ * @internal
18
+ */
19
+ constructor(cluster: Cluster, bucketName: string, scopeName: string);
20
+ /**
21
+ * Returns an index by it's name.
22
+ *
23
+ * @param indexName The index to retrieve.
24
+ * @param options Optional parameters for this operation.
25
+ * @param callback A node-style callback to be invoked after execution.
26
+ */
27
+ getIndex(indexName: string, options?: GetSearchIndexOptions, callback?: NodeCallback<SearchIndex>): Promise<SearchIndex>;
28
+ /**
29
+ * Returns a list of all existing indexes.
30
+ *
31
+ * @param options Optional parameters for this operation.
32
+ * @param callback A node-style callback to be invoked after execution.
33
+ */
34
+ getAllIndexes(options?: GetAllSearchIndexesOptions, callback?: NodeCallback<SearchIndex[]>): Promise<SearchIndex[]>;
35
+ /**
36
+ * Creates or updates an existing index.
37
+ *
38
+ * @param indexDefinition The index to update.
39
+ * @param options Optional parameters for this operation.
40
+ * @param callback A node-style callback to be invoked after execution.
41
+ */
42
+ upsertIndex(indexDefinition: ISearchIndex, options?: UpsertSearchIndexOptions, callback?: NodeCallback<void>): Promise<void>;
43
+ /**
44
+ * Drops an index.
45
+ *
46
+ * @param indexName The name of the index to drop.
47
+ * @param options Optional parameters for this operation.
48
+ * @param callback A node-style callback to be invoked after execution.
49
+ */
50
+ dropIndex(indexName: string, options?: DropSearchIndexOptions, callback?: NodeCallback<void>): Promise<void>;
51
+ /**
52
+ * Returns the number of documents that have been indexed.
53
+ *
54
+ * @param indexName The name of the index to return the count for.
55
+ * @param options Optional parameters for this operation.
56
+ * @param callback A node-style callback to be invoked after execution.
57
+ */
58
+ getIndexedDocumentsCount(indexName: string, options?: GetSearchIndexedDocumentsCountOptions, callback?: NodeCallback<number>): Promise<number>;
59
+ /**
60
+ * Pauses the ingestion of documents into an index.
61
+ *
62
+ * @param indexName The name of the index to pause.
63
+ * @param options Optional parameters for this operation.
64
+ * @param callback A node-style callback to be invoked after execution.
65
+ */
66
+ pauseIngest(indexName: string, options?: PauseSearchIngestOptions, callback?: NodeCallback<void>): Promise<void>;
67
+ /**
68
+ * Resumes the ingestion of documents into an index.
69
+ *
70
+ * @param indexName The name of the index to resume.
71
+ * @param options Optional parameters for this operation.
72
+ * @param callback A node-style callback to be invoked after execution.
73
+ */
74
+ resumeIngest(indexName: string, options?: ResumeSearchIngestOptions, callback?: NodeCallback<void>): Promise<void>;
75
+ /**
76
+ * Enables querying of an index.
77
+ *
78
+ * @param indexName The name of the index to enable querying for.
79
+ * @param options Optional parameters for this operation.
80
+ * @param callback A node-style callback to be invoked after execution.
81
+ */
82
+ allowQuerying(indexName: string, options?: AllowSearchQueryingOptions, callback?: NodeCallback<void>): Promise<void>;
83
+ /**
84
+ * Disables querying of an index.
85
+ *
86
+ * @param indexName The name of the index to disable querying for.
87
+ * @param options Optional parameters for this operation.
88
+ * @param callback A node-style callback to be invoked after execution.
89
+ */
90
+ disallowQuerying(indexName: string, options?: DisallowSearchQueryingOptions, callback?: NodeCallback<void>): Promise<void>;
91
+ /**
92
+ * Freezes the indexing plan for execution of queries.
93
+ *
94
+ * @param indexName The name of the index to freeze the plan of.
95
+ * @param options Optional parameters for this operation.
96
+ * @param callback A node-style callback to be invoked after execution.
97
+ */
98
+ freezePlan(indexName: string, options?: FreezeSearchPlanOptions, callback?: NodeCallback<void>): Promise<void>;
99
+ /**
100
+ * Unfreezes the indexing plan for execution of queries.
101
+ *
102
+ * @param indexName The name of the index to freeze the plan of.
103
+ * @param options Optional parameters for this operation.
104
+ * @param callback A node-style callback to be invoked after execution.
105
+ */
106
+ unfreezePlan(indexName: string, options?: UnfreezeSearchPlanOptions, callback?: NodeCallback<void>): Promise<void>;
107
+ /**
108
+ * Performs analysis of a specific document by an index.
109
+ *
110
+ * @param indexName The name of the index to use for the analysis.
111
+ * @param document The document to analyze.
112
+ * @param options Optional parameters for this operation.
113
+ * @param callback A node-style callback to be invoked after execution.
114
+ */
115
+ analyzeDocument(indexName: string, document: any, options?: AnalyzeSearchDocumentOptions, callback?: NodeCallback<any>): Promise<any>;
116
+ }