@azure/search-documents 12.3.0-alpha.20260310.2 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/base64.d.ts.map +1 -1
- package/dist/browser/base64.js +3 -2
- package/dist/browser/base64.js.map +1 -1
- package/dist/browser/index.d.ts +9 -7
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +3 -4
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/indexModels.d.ts +13 -112
- package/dist/browser/indexModels.d.ts.map +1 -1
- package/dist/browser/indexModels.js.map +1 -1
- package/dist/browser/knowledgeBaseModels.d.ts +4 -17
- package/dist/browser/knowledgeBaseModels.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseModels.js.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/index.d.ts +2 -1
- package/dist/browser/knowledgeBaseRetrieval/api/index.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/index.js +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/index.js.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts +3 -1
- package/dist/browser/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js +3 -3
- package/dist/browser/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/operations.d.ts +2 -2
- package/dist/browser/knowledgeBaseRetrieval/api/operations.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/operations.js +9 -8
- package/dist/browser/knowledgeBaseRetrieval/api/operations.js.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/options.d.ts +2 -2
- package/dist/browser/knowledgeBaseRetrieval/api/options.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/options.js.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts +2 -2
- package/dist/browser/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js +4 -4
- package/dist/browser/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js.map +1 -1
- package/dist/browser/knowledgeRetrievalClient.d.ts +2 -2
- package/dist/browser/knowledgeRetrievalClient.d.ts.map +1 -1
- package/dist/browser/knowledgeRetrievalClient.js +4 -4
- package/dist/browser/knowledgeRetrievalClient.js.map +1 -1
- package/dist/browser/models/azure/search/documents/index.d.ts +2 -1
- package/dist/browser/models/azure/search/documents/index.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/index.js +1 -1
- package/dist/browser/models/azure/search/documents/index.js.map +1 -1
- package/dist/browser/models/azure/search/documents/indexes/index.d.ts +2 -1
- package/dist/browser/models/azure/search/documents/indexes/index.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/indexes/index.js +1 -1
- package/dist/browser/models/azure/search/documents/indexes/index.js.map +1 -1
- package/dist/browser/models/azure/search/documents/indexes/models.d.ts +50 -477
- package/dist/browser/models/azure/search/documents/indexes/models.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/indexes/models.js +40 -526
- package/dist/browser/models/azure/search/documents/indexes/models.js.map +1 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/index.d.ts +2 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/index.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/index.js +1 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/index.js.map +1 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/models.d.ts +135 -242
- package/dist/browser/models/azure/search/documents/knowledgeBases/models.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/models.js +131 -291
- package/dist/browser/models/azure/search/documents/knowledgeBases/models.js.map +1 -1
- package/dist/browser/models/azure/search/documents/models.d.ts +2 -466
- package/dist/browser/models/azure/search/documents/models.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/models.js +1 -429
- package/dist/browser/models/azure/search/documents/models.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -0
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +3 -3
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +3 -3
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/search/api/index.d.ts +2 -1
- package/dist/browser/search/api/index.d.ts.map +1 -1
- package/dist/browser/search/api/index.js +1 -1
- package/dist/browser/search/api/index.js.map +1 -1
- package/dist/browser/search/api/operations.d.ts.map +1 -1
- package/dist/browser/search/api/operations.js +35 -54
- package/dist/browser/search/api/operations.js.map +1 -1
- package/dist/browser/search/api/options.d.ts +19 -31
- package/dist/browser/search/api/options.d.ts.map +1 -1
- package/dist/browser/search/api/options.js.map +1 -1
- package/dist/browser/search/api/searchContext.js +1 -1
- package/dist/browser/search/api/searchContext.js.map +1 -1
- package/dist/browser/searchClient.d.ts +0 -1
- package/dist/browser/searchClient.d.ts.map +1 -1
- package/dist/browser/searchClient.js +22 -39
- package/dist/browser/searchClient.js.map +1 -1
- package/dist/browser/searchIndex/api/index.d.ts +4 -3
- package/dist/browser/searchIndex/api/index.d.ts.map +1 -1
- package/dist/browser/searchIndex/api/index.js +2 -2
- package/dist/browser/searchIndex/api/index.js.map +1 -1
- package/dist/browser/searchIndex/api/operations.d.ts +2 -6
- package/dist/browser/searchIndex/api/operations.d.ts.map +1 -1
- package/dist/browser/searchIndex/api/operations.js +186 -96
- package/dist/browser/searchIndex/api/operations.js.map +1 -1
- package/dist/browser/searchIndex/api/options.d.ts +60 -5
- package/dist/browser/searchIndex/api/options.d.ts.map +1 -1
- package/dist/browser/searchIndex/api/options.js.map +1 -1
- package/dist/browser/searchIndex/api/searchIndexContext.js +1 -1
- package/dist/browser/searchIndex/api/searchIndexContext.js.map +1 -1
- package/dist/browser/searchIndex/index.d.ts +1 -1
- package/dist/browser/searchIndex/index.d.ts.map +1 -1
- package/dist/browser/searchIndex/index.js.map +1 -1
- package/dist/browser/searchIndex/searchIndexClient.d.ts +2 -4
- package/dist/browser/searchIndex/searchIndexClient.d.ts.map +1 -1
- package/dist/browser/searchIndex/searchIndexClient.js +1 -5
- package/dist/browser/searchIndex/searchIndexClient.js.map +1 -1
- package/dist/browser/searchIndexClient.d.ts +2 -7
- package/dist/browser/searchIndexClient.d.ts.map +1 -1
- package/dist/browser/searchIndexClient.js +2 -9
- package/dist/browser/searchIndexClient.js.map +1 -1
- package/dist/browser/searchIndexer/api/index.d.ts +4 -3
- package/dist/browser/searchIndexer/api/index.d.ts.map +1 -1
- package/dist/browser/searchIndexer/api/index.js +2 -2
- package/dist/browser/searchIndexer/api/index.js.map +1 -1
- package/dist/browser/searchIndexer/api/operations.d.ts +2 -14
- package/dist/browser/searchIndexer/api/operations.d.ts.map +1 -1
- package/dist/browser/searchIndexer/api/operations.js +112 -150
- package/dist/browser/searchIndexer/api/operations.js.map +1 -1
- package/dist/browser/searchIndexer/api/options.d.ts +36 -30
- package/dist/browser/searchIndexer/api/options.d.ts.map +1 -1
- package/dist/browser/searchIndexer/api/options.js.map +1 -1
- package/dist/browser/searchIndexer/api/searchIndexerContext.js +1 -1
- package/dist/browser/searchIndexer/api/searchIndexerContext.js.map +1 -1
- package/dist/browser/searchIndexer/index.d.ts +1 -1
- package/dist/browser/searchIndexer/index.d.ts.map +1 -1
- package/dist/browser/searchIndexer/index.js.map +1 -1
- package/dist/browser/searchIndexer/searchIndexerClient.d.ts +2 -8
- package/dist/browser/searchIndexer/searchIndexerClient.d.ts.map +1 -1
- package/dist/browser/searchIndexer/searchIndexerClient.js +1 -13
- package/dist/browser/searchIndexer/searchIndexerClient.js.map +1 -1
- package/dist/browser/searchIndexerClient.d.ts +1 -14
- package/dist/browser/searchIndexerClient.d.ts.map +1 -1
- package/dist/browser/searchIndexerClient.js +0 -27
- package/dist/browser/searchIndexerClient.js.map +1 -1
- package/dist/browser/searchIndexingBufferedSender.d.ts.map +1 -1
- package/dist/browser/searchIndexingBufferedSender.js +3 -7
- package/dist/browser/searchIndexingBufferedSender.js.map +1 -1
- package/dist/browser/serviceModels.d.ts +7 -191
- package/dist/browser/serviceModels.d.ts.map +1 -1
- package/dist/browser/serviceModels.js.map +1 -1
- package/dist/browser/serviceUtils.d.ts +3 -5
- package/dist/browser/serviceUtils.d.ts.map +1 -1
- package/dist/browser/serviceUtils.js +30 -87
- package/dist/browser/serviceUtils.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/{synonymMapHelper.d.ts → synonymMapHelper-browser.d.mts} +3 -3
- package/dist/browser/synonymMapHelper-browser.d.mts.map +1 -0
- package/dist/browser/{synonymMapHelper.js → synonymMapHelper-browser.mjs} +3 -3
- package/dist/browser/synonymMapHelper-browser.mjs.map +1 -0
- package/dist/browser/timers-browser.d.mts +8 -0
- package/dist/browser/timers-browser.d.mts.map +1 -0
- package/dist/browser/timers-browser.mjs +13 -0
- package/dist/browser/timers-browser.mjs.map +1 -0
- package/dist/browser/tracing.d.ts.map +1 -1
- package/dist/browser/walk.js +1 -1
- package/dist/browser/walk.js.map +1 -1
- package/dist/commonjs/base64.d.ts.map +1 -1
- package/dist/commonjs/base64.js +4 -2
- package/dist/commonjs/base64.js.map +3 -3
- package/dist/commonjs/geographyPoint.js +1 -0
- package/dist/commonjs/geographyPoint.js.map +1 -1
- package/dist/commonjs/index.d.ts +8 -6
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -29
- package/dist/commonjs/index.js.map +3 -3
- package/dist/commonjs/indexDocumentsBatch.js +1 -0
- package/dist/commonjs/indexDocumentsBatch.js.map +1 -1
- package/dist/commonjs/indexModels.d.ts +13 -112
- package/dist/commonjs/indexModels.d.ts.map +1 -1
- package/dist/commonjs/indexModels.js +1 -0
- package/dist/commonjs/indexModels.js.map +2 -2
- package/dist/commonjs/knowledgeBaseModels.d.ts +4 -17
- package/dist/commonjs/knowledgeBaseModels.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseModels.js +1 -0
- package/dist/commonjs/knowledgeBaseModels.js.map +2 -2
- package/dist/commonjs/knowledgeBaseRetrieval/api/index.d.ts +2 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/index.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/index.js +1 -0
- package/dist/commonjs/knowledgeBaseRetrieval/api/index.js.map +3 -3
- package/dist/commonjs/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts +3 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js +4 -3
- package/dist/commonjs/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js.map +3 -3
- package/dist/commonjs/knowledgeBaseRetrieval/api/operations.d.ts +2 -2
- package/dist/commonjs/knowledgeBaseRetrieval/api/operations.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/operations.js +9 -7
- package/dist/commonjs/knowledgeBaseRetrieval/api/operations.js.map +3 -3
- package/dist/commonjs/knowledgeBaseRetrieval/api/options.d.ts +2 -2
- package/dist/commonjs/knowledgeBaseRetrieval/api/options.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/options.js +1 -0
- package/dist/commonjs/knowledgeBaseRetrieval/api/options.js.map +2 -2
- package/dist/commonjs/knowledgeBaseRetrieval/index.js +1 -0
- package/dist/commonjs/knowledgeBaseRetrieval/index.js.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts +2 -2
- package/dist/commonjs/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js +5 -4
- package/dist/commonjs/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js.map +3 -3
- package/dist/commonjs/knowledgeRetrievalClient.d.ts +2 -2
- package/dist/commonjs/knowledgeRetrievalClient.d.ts.map +1 -1
- package/dist/commonjs/knowledgeRetrievalClient.js +10 -4
- package/dist/commonjs/knowledgeRetrievalClient.js.map +3 -3
- package/dist/commonjs/logger.js +1 -0
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/models/azure/search/documents/index.d.ts +2 -1
- package/dist/commonjs/models/azure/search/documents/index.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/index.js +3 -16
- package/dist/commonjs/models/azure/search/documents/index.js.map +3 -3
- package/dist/commonjs/models/azure/search/documents/indexes/index.d.ts +2 -1
- package/dist/commonjs/models/azure/search/documents/indexes/index.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/indexes/index.js +1 -18
- package/dist/commonjs/models/azure/search/documents/indexes/index.js.map +3 -3
- package/dist/commonjs/models/azure/search/documents/indexes/models.d.ts +50 -477
- package/dist/commonjs/models/azure/search/documents/indexes/models.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/indexes/models.js +40 -501
- package/dist/commonjs/models/azure/search/documents/indexes/models.js.map +4 -4
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/index.d.ts +2 -1
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/index.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/index.js +1 -2
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/index.js.map +3 -3
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/models.d.ts +135 -242
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/models.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/models.js +136 -335
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/models.js.map +4 -4
- package/dist/commonjs/models/azure/search/documents/models.d.ts +2 -466
- package/dist/commonjs/models/azure/search/documents/models.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/models.js +8 -354
- package/dist/commonjs/models/azure/search/documents/models.js.map +4 -4
- package/dist/commonjs/models/index.d.ts +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +2 -2
- package/dist/commonjs/models/models.d.ts +3 -3
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +2 -1
- package/dist/commonjs/models/models.js.map +3 -3
- package/dist/commonjs/odata.js +1 -0
- package/dist/commonjs/odata.js.map +1 -1
- package/dist/commonjs/odataMetadataPolicy.js +1 -0
- package/dist/commonjs/odataMetadataPolicy.js.map +1 -1
- package/dist/commonjs/search/api/index.d.ts +2 -1
- package/dist/commonjs/search/api/index.d.ts.map +1 -1
- package/dist/commonjs/search/api/index.js +1 -0
- package/dist/commonjs/search/api/index.js.map +3 -3
- package/dist/commonjs/search/api/operations.d.ts.map +1 -1
- package/dist/commonjs/search/api/operations.js +22 -42
- package/dist/commonjs/search/api/operations.js.map +3 -3
- package/dist/commonjs/search/api/options.d.ts +19 -31
- package/dist/commonjs/search/api/options.d.ts.map +1 -1
- package/dist/commonjs/search/api/options.js +1 -0
- package/dist/commonjs/search/api/options.js.map +2 -2
- package/dist/commonjs/search/api/searchContext.js +2 -1
- package/dist/commonjs/search/api/searchContext.js.map +2 -2
- package/dist/commonjs/search/index.js +1 -0
- package/dist/commonjs/search/index.js.map +1 -1
- package/dist/commonjs/search/searchClient.js +1 -0
- package/dist/commonjs/search/searchClient.js.map +1 -1
- package/dist/commonjs/searchApiKeyCredentialPolicy.js +1 -0
- package/dist/commonjs/searchApiKeyCredentialPolicy.js.map +1 -1
- package/dist/commonjs/searchAudience.js +1 -0
- package/dist/commonjs/searchAudience.js.map +1 -1
- package/dist/commonjs/searchClient.d.ts +0 -1
- package/dist/commonjs/searchClient.d.ts.map +1 -1
- package/dist/commonjs/searchClient.js +24 -43
- package/dist/commonjs/searchClient.js.map +3 -3
- package/dist/commonjs/searchIndex/api/index.d.ts +4 -3
- package/dist/commonjs/searchIndex/api/index.d.ts.map +1 -1
- package/dist/commonjs/searchIndex/api/index.js +1 -2
- package/dist/commonjs/searchIndex/api/index.js.map +3 -3
- package/dist/commonjs/searchIndex/api/operations.d.ts +2 -6
- package/dist/commonjs/searchIndex/api/operations.d.ts.map +1 -1
- package/dist/commonjs/searchIndex/api/operations.js +126 -108
- package/dist/commonjs/searchIndex/api/operations.js.map +3 -3
- package/dist/commonjs/searchIndex/api/options.d.ts +60 -5
- package/dist/commonjs/searchIndex/api/options.d.ts.map +1 -1
- package/dist/commonjs/searchIndex/api/options.js +1 -0
- package/dist/commonjs/searchIndex/api/options.js.map +2 -2
- package/dist/commonjs/searchIndex/api/searchIndexContext.js +2 -1
- package/dist/commonjs/searchIndex/api/searchIndexContext.js.map +2 -2
- package/dist/commonjs/searchIndex/index.d.ts +1 -1
- package/dist/commonjs/searchIndex/index.d.ts.map +1 -1
- package/dist/commonjs/searchIndex/index.js +1 -0
- package/dist/commonjs/searchIndex/index.js.map +2 -2
- package/dist/commonjs/searchIndex/searchIndexClient.d.ts +2 -4
- package/dist/commonjs/searchIndex/searchIndexClient.d.ts.map +1 -1
- package/dist/commonjs/searchIndex/searchIndexClient.js +1 -4
- package/dist/commonjs/searchIndex/searchIndexClient.js.map +3 -3
- package/dist/commonjs/searchIndexClient.d.ts +2 -7
- package/dist/commonjs/searchIndexClient.d.ts.map +1 -1
- package/dist/commonjs/searchIndexClient.js +3 -9
- package/dist/commonjs/searchIndexClient.js.map +3 -3
- package/dist/commonjs/searchIndexer/api/index.d.ts +4 -3
- package/dist/commonjs/searchIndexer/api/index.d.ts.map +1 -1
- package/dist/commonjs/searchIndexer/api/index.js +1 -6
- package/dist/commonjs/searchIndexer/api/index.js.map +3 -3
- package/dist/commonjs/searchIndexer/api/operations.d.ts +2 -14
- package/dist/commonjs/searchIndexer/api/operations.d.ts.map +1 -1
- package/dist/commonjs/searchIndexer/api/operations.js +76 -168
- package/dist/commonjs/searchIndexer/api/operations.js.map +3 -3
- package/dist/commonjs/searchIndexer/api/options.d.ts +36 -30
- package/dist/commonjs/searchIndexer/api/options.d.ts.map +1 -1
- package/dist/commonjs/searchIndexer/api/options.js +1 -0
- package/dist/commonjs/searchIndexer/api/options.js.map +2 -2
- package/dist/commonjs/searchIndexer/api/searchIndexerContext.js +2 -1
- package/dist/commonjs/searchIndexer/api/searchIndexerContext.js.map +2 -2
- package/dist/commonjs/searchIndexer/index.d.ts +1 -1
- package/dist/commonjs/searchIndexer/index.d.ts.map +1 -1
- package/dist/commonjs/searchIndexer/index.js +1 -0
- package/dist/commonjs/searchIndexer/index.js.map +2 -2
- package/dist/commonjs/searchIndexer/searchIndexerClient.d.ts +2 -8
- package/dist/commonjs/searchIndexer/searchIndexerClient.d.ts.map +1 -1
- package/dist/commonjs/searchIndexer/searchIndexerClient.js +1 -12
- package/dist/commonjs/searchIndexer/searchIndexerClient.js.map +3 -3
- package/dist/commonjs/searchIndexerClient.d.ts +1 -14
- package/dist/commonjs/searchIndexerClient.d.ts.map +1 -1
- package/dist/commonjs/searchIndexerClient.js +1 -39
- package/dist/commonjs/searchIndexerClient.js.map +3 -3
- package/dist/commonjs/searchIndexingBufferedSender.d.ts.map +1 -1
- package/dist/commonjs/searchIndexingBufferedSender.js +4 -7
- package/dist/commonjs/searchIndexingBufferedSender.js.map +3 -3
- package/dist/commonjs/serialization.js +1 -0
- package/dist/commonjs/serialization.js.map +1 -1
- package/dist/commonjs/serviceModels.d.ts +7 -191
- package/dist/commonjs/serviceModels.d.ts.map +1 -1
- package/dist/commonjs/serviceModels.js +1 -0
- package/dist/commonjs/serviceModels.js.map +3 -3
- package/dist/commonjs/serviceUtils.d.ts +3 -5
- package/dist/commonjs/serviceUtils.d.ts.map +1 -1
- package/dist/commonjs/serviceUtils.js +31 -89
- package/dist/commonjs/serviceUtils.js.map +3 -3
- package/dist/commonjs/static-helpers/pagingHelpers.js +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/serialization/build-csv-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/build-csv-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/build-newline-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/build-newline-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/build-pipe-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/build-pipe-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +1 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/parse-csv-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/parse-csv-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/parse-newline-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/parse-newline-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/parse-pipe-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/parse-pipe-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/serialize-record.js +1 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/synonymMapHelper.js +1 -0
- package/dist/commonjs/synonymMapHelper.js.map +1 -1
- package/dist/commonjs/timers.d.ts +9 -0
- package/dist/commonjs/timers.d.ts.map +1 -0
- package/dist/commonjs/{errorModels.js → timers.js} +19 -2
- package/dist/commonjs/timers.js.map +7 -0
- package/dist/commonjs/tracing.d.ts.map +1 -1
- package/dist/commonjs/tracing.js +1 -0
- package/dist/commonjs/tracing.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/walk.js +2 -1
- package/dist/commonjs/walk.js.map +3 -3
- package/dist/esm/base64.d.ts.map +1 -1
- package/dist/esm/base64.js +16 -8
- package/dist/esm/base64.js.map +1 -7
- package/dist/esm/geographyPoint.js +35 -32
- package/dist/esm/geographyPoint.js.map +1 -7
- package/dist/esm/index.d.ts +8 -6
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +17 -190
- package/dist/esm/index.js.map +1 -7
- package/dist/esm/indexDocumentsBatch.js +78 -73
- package/dist/esm/indexDocumentsBatch.js.map +1 -7
- package/dist/esm/indexModels.d.ts +13 -112
- package/dist/esm/indexModels.d.ts.map +1 -1
- package/dist/esm/indexModels.js +4 -0
- package/dist/esm/indexModels.js.map +1 -7
- package/dist/esm/knowledgeBaseModels.d.ts +4 -17
- package/dist/esm/knowledgeBaseModels.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseModels.js +4 -0
- package/dist/esm/knowledgeBaseModels.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/api/index.d.ts +2 -1
- package/dist/esm/knowledgeBaseRetrieval/api/index.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseRetrieval/api/index.js +5 -8
- package/dist/esm/knowledgeBaseRetrieval/api/index.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts +3 -1
- package/dist/esm/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js +22 -20
- package/dist/esm/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/api/operations.d.ts +2 -2
- package/dist/esm/knowledgeBaseRetrieval/api/operations.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseRetrieval/api/operations.js +39 -42
- package/dist/esm/knowledgeBaseRetrieval/api/operations.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/api/options.d.ts +2 -2
- package/dist/esm/knowledgeBaseRetrieval/api/options.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseRetrieval/api/options.js +4 -0
- package/dist/esm/knowledgeBaseRetrieval/api/options.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/index.js +4 -4
- package/dist/esm/knowledgeBaseRetrieval/index.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts +2 -2
- package/dist/esm/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js +22 -20
- package/dist/esm/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js.map +1 -7
- package/dist/esm/knowledgeRetrievalClient.d.ts +2 -2
- package/dist/esm/knowledgeRetrievalClient.d.ts.map +1 -1
- package/dist/esm/knowledgeRetrievalClient.js +89 -91
- package/dist/esm/knowledgeRetrievalClient.js.map +1 -7
- package/dist/esm/logger.js +7 -4
- package/dist/esm/logger.js.map +1 -7
- package/dist/esm/models/azure/search/documents/index.d.ts +2 -1
- package/dist/esm/models/azure/search/documents/index.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/index.js +4 -36
- package/dist/esm/models/azure/search/documents/index.js.map +1 -7
- package/dist/esm/models/azure/search/documents/indexes/index.d.ts +2 -1
- package/dist/esm/models/azure/search/documents/indexes/index.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/indexes/index.js +4 -130
- package/dist/esm/models/azure/search/documents/indexes/index.js.map +1 -7
- package/dist/esm/models/azure/search/documents/indexes/models.d.ts +50 -477
- package/dist/esm/models/azure/search/documents/indexes/models.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/indexes/models.js +6374 -6188
- package/dist/esm/models/azure/search/documents/indexes/models.js.map +1 -7
- package/dist/esm/models/azure/search/documents/knowledgeBases/index.d.ts +2 -1
- package/dist/esm/models/azure/search/documents/knowledgeBases/index.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/knowledgeBases/index.js +4 -16
- package/dist/esm/models/azure/search/documents/knowledgeBases/index.js.map +1 -7
- package/dist/esm/models/azure/search/documents/knowledgeBases/models.d.ts +135 -242
- package/dist/esm/models/azure/search/documents/knowledgeBases/models.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/knowledgeBases/models.js +592 -790
- package/dist/esm/models/azure/search/documents/knowledgeBases/models.js.map +1 -7
- package/dist/esm/models/azure/search/documents/models.d.ts +2 -466
- package/dist/esm/models/azure/search/documents/models.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/models.js +591 -919
- package/dist/esm/models/azure/search/documents/models.js.map +1 -7
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -4
- package/dist/esm/models/index.js.map +1 -7
- package/dist/esm/models/models.d.ts +3 -3
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +14 -13
- package/dist/esm/models/models.js.map +1 -7
- package/dist/esm/odata.js +43 -26
- package/dist/esm/odata.js.map +1 -7
- package/dist/esm/odataMetadataPolicy.js +15 -11
- package/dist/esm/odataMetadataPolicy.js.map +1 -7
- package/dist/esm/search/api/index.d.ts +2 -1
- package/dist/esm/search/api/index.d.ts.map +1 -1
- package/dist/esm/search/api/index.js +5 -26
- package/dist/esm/search/api/index.js.map +1 -7
- package/dist/esm/search/api/operations.d.ts.map +1 -1
- package/dist/esm/search/api/operations.js +418 -452
- package/dist/esm/search/api/operations.js.map +1 -7
- package/dist/esm/search/api/options.d.ts +19 -31
- package/dist/esm/search/api/options.d.ts.map +1 -1
- package/dist/esm/search/api/options.js +4 -0
- package/dist/esm/search/api/options.js.map +1 -7
- package/dist/esm/search/api/searchContext.js +22 -20
- package/dist/esm/search/api/searchContext.js.map +1 -7
- package/dist/esm/search/index.js +4 -4
- package/dist/esm/search/index.js.map +1 -7
- package/dist/esm/search/searchClient.js +55 -63
- package/dist/esm/search/searchClient.js.map +1 -7
- package/dist/esm/searchApiKeyCredentialPolicy.js +17 -13
- package/dist/esm/searchApiKeyCredentialPolicy.js.map +1 -7
- package/dist/esm/searchAudience.js +21 -9
- package/dist/esm/searchAudience.js.map +1 -7
- package/dist/esm/searchClient.d.ts +0 -1
- package/dist/esm/searchClient.d.ts.map +1 -1
- package/dist/esm/searchClient.js +539 -624
- package/dist/esm/searchClient.js.map +1 -7
- package/dist/esm/searchIndex/api/index.d.ts +4 -3
- package/dist/esm/searchIndex/api/index.d.ts.map +1 -1
- package/dist/esm/searchIndex/api/index.js +5 -70
- package/dist/esm/searchIndex/api/index.js.map +1 -7
- package/dist/esm/searchIndex/api/operations.d.ts +2 -6
- package/dist/esm/searchIndex/api/operations.d.ts.map +1 -1
- package/dist/esm/searchIndex/api/operations.js +1087 -1177
- package/dist/esm/searchIndex/api/operations.js.map +1 -7
- package/dist/esm/searchIndex/api/options.d.ts +60 -5
- package/dist/esm/searchIndex/api/options.d.ts.map +1 -1
- package/dist/esm/searchIndex/api/options.js +4 -0
- package/dist/esm/searchIndex/api/options.js.map +1 -7
- package/dist/esm/searchIndex/api/searchIndexContext.js +22 -20
- package/dist/esm/searchIndex/api/searchIndexContext.js.map +1 -7
- package/dist/esm/searchIndex/index.d.ts +1 -1
- package/dist/esm/searchIndex/index.d.ts.map +1 -1
- package/dist/esm/searchIndex/index.js +4 -4
- package/dist/esm/searchIndex/index.js.map +1 -7
- package/dist/esm/searchIndex/searchIndexClient.d.ts +2 -4
- package/dist/esm/searchIndex/searchIndexClient.d.ts.map +1 -1
- package/dist/esm/searchIndex/searchIndexClient.js +139 -173
- package/dist/esm/searchIndex/searchIndexClient.js.map +1 -7
- package/dist/esm/searchIndexClient.d.ts +2 -7
- package/dist/esm/searchIndexClient.d.ts.map +1 -1
- package/dist/esm/searchIndexClient.js +448 -588
- package/dist/esm/searchIndexClient.js.map +1 -7
- package/dist/esm/searchIndexer/api/index.d.ts +4 -3
- package/dist/esm/searchIndexer/api/index.d.ts.map +1 -1
- package/dist/esm/searchIndexer/api/index.js +5 -50
- package/dist/esm/searchIndexer/api/index.js.map +1 -7
- package/dist/esm/searchIndexer/api/operations.d.ts +2 -14
- package/dist/esm/searchIndexer/api/operations.d.ts.map +1 -1
- package/dist/esm/searchIndexer/api/operations.js +676 -809
- package/dist/esm/searchIndexer/api/operations.js.map +1 -7
- package/dist/esm/searchIndexer/api/options.d.ts +36 -30
- package/dist/esm/searchIndexer/api/options.d.ts.map +1 -1
- package/dist/esm/searchIndexer/api/options.js +4 -0
- package/dist/esm/searchIndexer/api/options.js.map +1 -7
- package/dist/esm/searchIndexer/api/searchIndexerContext.js +22 -20
- package/dist/esm/searchIndexer/api/searchIndexerContext.js.map +1 -7
- package/dist/esm/searchIndexer/index.d.ts +1 -1
- package/dist/esm/searchIndexer/index.d.ts.map +1 -1
- package/dist/esm/searchIndexer/index.js +4 -4
- package/dist/esm/searchIndexer/index.js.map +1 -7
- package/dist/esm/searchIndexer/searchIndexerClient.d.ts +2 -8
- package/dist/esm/searchIndexer/searchIndexerClient.d.ts.map +1 -1
- package/dist/esm/searchIndexer/searchIndexerClient.js +91 -123
- package/dist/esm/searchIndexer/searchIndexerClient.js.map +1 -7
- package/dist/esm/searchIndexerClient.d.ts +1 -14
- package/dist/esm/searchIndexerClient.d.ts.map +1 -1
- package/dist/esm/searchIndexerClient.js +347 -473
- package/dist/esm/searchIndexerClient.js.map +1 -7
- package/dist/esm/searchIndexingBufferedSender.d.ts.map +1 -1
- package/dist/esm/searchIndexingBufferedSender.js +302 -285
- package/dist/esm/searchIndexingBufferedSender.js.map +1 -7
- package/dist/esm/serialization.js +112 -111
- package/dist/esm/serialization.js.map +1 -7
- package/dist/esm/serviceModels.d.ts +7 -191
- package/dist/esm/serviceModels.d.ts.map +1 -1
- package/dist/esm/serviceModels.js +654 -162
- package/dist/esm/serviceModels.js.map +1 -7
- package/dist/esm/serviceUtils.d.ts +3 -5
- package/dist/esm/serviceUtils.d.ts.map +1 -1
- package/dist/esm/serviceUtils.js +776 -865
- package/dist/esm/serviceUtils.js.map +1 -7
- package/dist/esm/static-helpers/pagingHelpers.js +122 -98
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -7
- package/dist/esm/static-helpers/serialization/build-csv-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/build-csv-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/build-newline-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/build-newline-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/build-pipe-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/build-pipe-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js +15 -9
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -7
- package/dist/esm/static-helpers/serialization/parse-csv-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/parse-csv-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/parse-newline-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/parse-newline-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/parse-pipe-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/parse-pipe-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/serialize-record.js +17 -16
- package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -7
- package/dist/esm/static-helpers/urlTemplate.js +169 -142
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -7
- package/dist/esm/synonymMapHelper.js +20 -9
- package/dist/esm/synonymMapHelper.js.map +1 -7
- package/dist/esm/timers.d.ts +9 -0
- package/dist/esm/timers.d.ts.map +1 -0
- package/dist/esm/timers.js +15 -0
- package/dist/esm/timers.js.map +1 -0
- package/dist/esm/tracing.d.ts.map +1 -1
- package/dist/esm/tracing.js +11 -8
- package/dist/esm/tracing.js.map +1 -7
- package/dist/esm/walk.js +64 -52
- package/dist/esm/walk.js.map +1 -7
- package/dist/react-native/base64.d.ts.map +1 -1
- package/dist/react-native/base64.js +3 -2
- package/dist/react-native/base64.js.map +1 -1
- package/dist/react-native/index.d.ts +9 -7
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +3 -4
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/indexModels.d.ts +13 -112
- package/dist/react-native/indexModels.d.ts.map +1 -1
- package/dist/react-native/indexModels.js.map +1 -1
- package/dist/react-native/knowledgeBaseModels.d.ts +4 -17
- package/dist/react-native/knowledgeBaseModels.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseModels.js.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/index.d.ts +2 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/index.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/index.js +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/index.js.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts +3 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js +3 -3
- package/dist/react-native/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/operations.d.ts +2 -2
- package/dist/react-native/knowledgeBaseRetrieval/api/operations.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/operations.js +9 -8
- package/dist/react-native/knowledgeBaseRetrieval/api/operations.js.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/options.d.ts +2 -2
- package/dist/react-native/knowledgeBaseRetrieval/api/options.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/options.js.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts +2 -2
- package/dist/react-native/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js +4 -4
- package/dist/react-native/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js.map +1 -1
- package/dist/react-native/knowledgeRetrievalClient.d.ts +2 -2
- package/dist/react-native/knowledgeRetrievalClient.d.ts.map +1 -1
- package/dist/react-native/knowledgeRetrievalClient.js +4 -4
- package/dist/react-native/knowledgeRetrievalClient.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/index.d.ts +2 -1
- package/dist/react-native/models/azure/search/documents/index.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/index.js +1 -1
- package/dist/react-native/models/azure/search/documents/index.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/indexes/index.d.ts +2 -1
- package/dist/react-native/models/azure/search/documents/indexes/index.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/indexes/index.js +1 -1
- package/dist/react-native/models/azure/search/documents/indexes/index.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/indexes/models.d.ts +50 -477
- package/dist/react-native/models/azure/search/documents/indexes/models.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/indexes/models.js +40 -526
- package/dist/react-native/models/azure/search/documents/indexes/models.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/index.d.ts +2 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/index.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/index.js +1 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/index.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/models.d.ts +135 -242
- package/dist/react-native/models/azure/search/documents/knowledgeBases/models.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/models.js +131 -291
- package/dist/react-native/models/azure/search/documents/knowledgeBases/models.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/models.d.ts +2 -466
- package/dist/react-native/models/azure/search/documents/models.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/models.js +1 -429
- package/dist/react-native/models/azure/search/documents/models.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -0
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +3 -3
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +3 -3
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/search/api/index.d.ts +2 -1
- package/dist/react-native/search/api/index.d.ts.map +1 -1
- package/dist/react-native/search/api/index.js +1 -1
- package/dist/react-native/search/api/index.js.map +1 -1
- package/dist/react-native/search/api/operations.d.ts.map +1 -1
- package/dist/react-native/search/api/operations.js +35 -54
- package/dist/react-native/search/api/operations.js.map +1 -1
- package/dist/react-native/search/api/options.d.ts +19 -31
- package/dist/react-native/search/api/options.d.ts.map +1 -1
- package/dist/react-native/search/api/options.js.map +1 -1
- package/dist/react-native/search/api/searchContext.js +1 -1
- package/dist/react-native/search/api/searchContext.js.map +1 -1
- package/dist/react-native/searchClient.d.ts +0 -1
- package/dist/react-native/searchClient.d.ts.map +1 -1
- package/dist/react-native/searchClient.js +22 -39
- package/dist/react-native/searchClient.js.map +1 -1
- package/dist/react-native/searchIndex/api/index.d.ts +4 -3
- package/dist/react-native/searchIndex/api/index.d.ts.map +1 -1
- package/dist/react-native/searchIndex/api/index.js +2 -2
- package/dist/react-native/searchIndex/api/index.js.map +1 -1
- package/dist/react-native/searchIndex/api/operations.d.ts +2 -6
- package/dist/react-native/searchIndex/api/operations.d.ts.map +1 -1
- package/dist/react-native/searchIndex/api/operations.js +186 -96
- package/dist/react-native/searchIndex/api/operations.js.map +1 -1
- package/dist/react-native/searchIndex/api/options.d.ts +60 -5
- package/dist/react-native/searchIndex/api/options.d.ts.map +1 -1
- package/dist/react-native/searchIndex/api/options.js.map +1 -1
- package/dist/react-native/searchIndex/api/searchIndexContext.js +1 -1
- package/dist/react-native/searchIndex/api/searchIndexContext.js.map +1 -1
- package/dist/react-native/searchIndex/index.d.ts +1 -1
- package/dist/react-native/searchIndex/index.d.ts.map +1 -1
- package/dist/react-native/searchIndex/index.js.map +1 -1
- package/dist/react-native/searchIndex/searchIndexClient.d.ts +2 -4
- package/dist/react-native/searchIndex/searchIndexClient.d.ts.map +1 -1
- package/dist/react-native/searchIndex/searchIndexClient.js +1 -5
- package/dist/react-native/searchIndex/searchIndexClient.js.map +1 -1
- package/dist/react-native/searchIndexClient.d.ts +2 -7
- package/dist/react-native/searchIndexClient.d.ts.map +1 -1
- package/dist/react-native/searchIndexClient.js +2 -9
- package/dist/react-native/searchIndexClient.js.map +1 -1
- package/dist/react-native/searchIndexer/api/index.d.ts +4 -3
- package/dist/react-native/searchIndexer/api/index.d.ts.map +1 -1
- package/dist/react-native/searchIndexer/api/index.js +2 -2
- package/dist/react-native/searchIndexer/api/index.js.map +1 -1
- package/dist/react-native/searchIndexer/api/operations.d.ts +2 -14
- package/dist/react-native/searchIndexer/api/operations.d.ts.map +1 -1
- package/dist/react-native/searchIndexer/api/operations.js +112 -150
- package/dist/react-native/searchIndexer/api/operations.js.map +1 -1
- package/dist/react-native/searchIndexer/api/options.d.ts +36 -30
- package/dist/react-native/searchIndexer/api/options.d.ts.map +1 -1
- package/dist/react-native/searchIndexer/api/options.js.map +1 -1
- package/dist/react-native/searchIndexer/api/searchIndexerContext.js +1 -1
- package/dist/react-native/searchIndexer/api/searchIndexerContext.js.map +1 -1
- package/dist/react-native/searchIndexer/index.d.ts +1 -1
- package/dist/react-native/searchIndexer/index.d.ts.map +1 -1
- package/dist/react-native/searchIndexer/index.js.map +1 -1
- package/dist/react-native/searchIndexer/searchIndexerClient.d.ts +2 -8
- package/dist/react-native/searchIndexer/searchIndexerClient.d.ts.map +1 -1
- package/dist/react-native/searchIndexer/searchIndexerClient.js +1 -13
- package/dist/react-native/searchIndexer/searchIndexerClient.js.map +1 -1
- package/dist/react-native/searchIndexerClient.d.ts +1 -14
- package/dist/react-native/searchIndexerClient.d.ts.map +1 -1
- package/dist/react-native/searchIndexerClient.js +0 -27
- package/dist/react-native/searchIndexerClient.js.map +1 -1
- package/dist/react-native/searchIndexingBufferedSender.d.ts.map +1 -1
- package/dist/react-native/searchIndexingBufferedSender.js +3 -7
- package/dist/react-native/searchIndexingBufferedSender.js.map +1 -1
- package/dist/react-native/serviceModels.d.ts +7 -191
- package/dist/react-native/serviceModels.d.ts.map +1 -1
- package/dist/react-native/serviceModels.js.map +1 -1
- package/dist/react-native/serviceUtils.d.ts +3 -5
- package/dist/react-native/serviceUtils.d.ts.map +1 -1
- package/dist/react-native/serviceUtils.js +30 -87
- package/dist/react-native/serviceUtils.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/{synonymMapHelper.d.ts → synonymMapHelper-browser.d.mts} +4 -3
- package/dist/react-native/synonymMapHelper-browser.d.mts.map +1 -0
- package/dist/react-native/synonymMapHelper-browser.mjs +14 -0
- package/dist/react-native/synonymMapHelper-browser.mjs.map +1 -0
- package/dist/react-native/synonymMapHelper-react-native.d.mts +2 -0
- package/dist/react-native/synonymMapHelper-react-native.d.mts.map +1 -0
- package/dist/react-native/synonymMapHelper-react-native.mjs +4 -0
- package/dist/react-native/synonymMapHelper-react-native.mjs.map +1 -0
- package/dist/react-native/timers-browser.d.mts +8 -0
- package/dist/react-native/timers-browser.d.mts.map +1 -0
- package/dist/react-native/timers-browser.mjs +13 -0
- package/dist/react-native/timers-browser.mjs.map +1 -0
- package/dist/react-native/timers-react-native.d.mts +2 -0
- package/dist/react-native/timers-react-native.d.mts.map +1 -0
- package/dist/react-native/timers-react-native.mjs +4 -0
- package/dist/react-native/timers-react-native.mjs.map +1 -0
- package/dist/react-native/tracing.d.ts.map +1 -1
- package/dist/react-native/walk.js +1 -1
- package/dist/react-native/walk.js.map +1 -1
- package/package.json +33 -20
- package/dist/browser/errorModels.d.ts +0 -56
- package/dist/browser/errorModels.d.ts.map +0 -1
- package/dist/browser/errorModels.js +0 -4
- package/dist/browser/errorModels.js.map +0 -1
- package/dist/browser/synonymMapHelper.d.ts.map +0 -1
- package/dist/browser/synonymMapHelper.js.map +0 -1
- package/dist/commonjs/errorModels.d.ts +0 -56
- package/dist/commonjs/errorModels.d.ts.map +0 -1
- package/dist/commonjs/errorModels.js.map +0 -7
- package/dist/esm/errorModels.d.ts +0 -56
- package/dist/esm/errorModels.d.ts.map +0 -1
- package/dist/esm/errorModels.js +0 -0
- package/dist/esm/errorModels.js.map +0 -7
- package/dist/react-native/errorModels.d.ts +0 -56
- package/dist/react-native/errorModels.d.ts.map +0 -1
- package/dist/react-native/errorModels.js +0 -4
- package/dist/react-native/errorModels.js.map +0 -1
- package/dist/react-native/synonymMapHelper.d.ts.map +0 -1
- package/dist/react-native/synonymMapHelper.js +0 -24
- package/dist/react-native/synonymMapHelper.js.map +0 -1
|
@@ -1,301 +1,318 @@
|
|
|
1
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { delay, getRandomIntegerInclusive } from "@azure/core-util";
|
|
2
4
|
import EventEmitter from "node:events";
|
|
5
|
+
import { createInterval } from "./timers.js";
|
|
3
6
|
import { IndexDocumentsBatch } from "./indexDocumentsBatch.js";
|
|
4
|
-
import { getRandomIntegerInclusive } from "./serviceUtils.js";
|
|
5
7
|
import { createSpan } from "./tracing.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Default Batch Size
|
|
10
|
+
*/
|
|
11
|
+
export const DEFAULT_BATCH_SIZE = 512;
|
|
12
|
+
/**
|
|
13
|
+
* Default window flush interval
|
|
14
|
+
*/
|
|
15
|
+
export const DEFAULT_FLUSH_WINDOW = 60000;
|
|
16
|
+
/**
|
|
17
|
+
* Default number of times to retry.
|
|
18
|
+
*/
|
|
19
|
+
export const DEFAULT_RETRY_COUNT = 3;
|
|
20
|
+
/**
|
|
21
|
+
* Default Max Delay between retries.
|
|
22
|
+
*/
|
|
23
|
+
const DEFAULT_MAX_RETRY_DELAY = 60000;
|
|
24
|
+
/**
|
|
25
|
+
* Class used to perform buffered operations against a search index,
|
|
26
|
+
* including adding, updating, and removing them.
|
|
27
|
+
*/
|
|
28
|
+
export class SearchIndexingBufferedSender {
|
|
29
|
+
/**
|
|
30
|
+
* Search Client used to call the underlying IndexBatch operations.
|
|
31
|
+
*/
|
|
32
|
+
client;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates if autoFlush is enabled.
|
|
35
|
+
*/
|
|
36
|
+
autoFlush;
|
|
37
|
+
/**
|
|
38
|
+
* Interval between flushes (in milliseconds).
|
|
39
|
+
*/
|
|
40
|
+
flushWindowInMs;
|
|
41
|
+
/**
|
|
42
|
+
* Delay between retries
|
|
43
|
+
*/
|
|
44
|
+
throttlingDelayInMs;
|
|
45
|
+
/**
|
|
46
|
+
* Maximum number of Retries
|
|
47
|
+
*/
|
|
48
|
+
maxRetriesPerAction;
|
|
49
|
+
/**
|
|
50
|
+
* Max Delay between retries
|
|
51
|
+
*/
|
|
52
|
+
maxThrottlingDelayInMs;
|
|
53
|
+
/**
|
|
54
|
+
* Size of the batch.
|
|
55
|
+
*/
|
|
56
|
+
initialBatchActionCount;
|
|
57
|
+
/**
|
|
58
|
+
* Batch object used to complete the service call.
|
|
59
|
+
*/
|
|
60
|
+
batchObject;
|
|
61
|
+
/**
|
|
62
|
+
* Clean up for the timer
|
|
63
|
+
*/
|
|
64
|
+
cleanupTimer;
|
|
65
|
+
/**
|
|
66
|
+
* Event emitter/publisher used in the Buffered Sender
|
|
67
|
+
*/
|
|
68
|
+
emitter = new EventEmitter();
|
|
69
|
+
/**
|
|
70
|
+
* Method to retrieve the document key
|
|
71
|
+
*/
|
|
72
|
+
documentKeyRetriever;
|
|
73
|
+
/**
|
|
74
|
+
* Creates a new instance of SearchIndexingBufferedSender.
|
|
75
|
+
*
|
|
76
|
+
* @param client - Search Client used to call the underlying IndexBatch operations.
|
|
77
|
+
* @param options - Options to modify auto flush.
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
constructor(client, documentKeyRetriever, options = {}) {
|
|
81
|
+
this.client = client;
|
|
82
|
+
this.documentKeyRetriever = documentKeyRetriever;
|
|
83
|
+
// General Configuration properties
|
|
84
|
+
this.autoFlush = options.autoFlush ?? true;
|
|
85
|
+
this.initialBatchActionCount = options.initialBatchActionCount ?? DEFAULT_BATCH_SIZE;
|
|
86
|
+
this.flushWindowInMs = options.flushWindowInMs ?? DEFAULT_FLUSH_WINDOW;
|
|
87
|
+
// Retry specific configuration properties
|
|
88
|
+
this.throttlingDelayInMs = options.throttlingDelayInMs ?? DEFAULT_FLUSH_WINDOW;
|
|
89
|
+
this.maxRetriesPerAction = options.maxRetriesPerAction ?? DEFAULT_RETRY_COUNT;
|
|
90
|
+
this.maxThrottlingDelayInMs = options.maxThrottlingDelayInMs ?? DEFAULT_MAX_RETRY_DELAY;
|
|
91
|
+
this.batchObject = new IndexDocumentsBatch();
|
|
92
|
+
if (this.autoFlush) {
|
|
93
|
+
this.cleanupTimer = createInterval(() => this.flush(), this.flushWindowInMs);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Uploads the documents/Adds the documents to the upload queue.
|
|
98
|
+
*
|
|
99
|
+
* @param documents - Documents to be uploaded.
|
|
100
|
+
* @param options - Upload options.
|
|
101
|
+
*/
|
|
102
|
+
async uploadDocuments(documents, options = {}) {
|
|
103
|
+
const { span, updatedOptions } = createSpan("SearchIndexingBufferedSender-uploadDocuments", options);
|
|
104
|
+
try {
|
|
105
|
+
this.batchObject.upload(documents);
|
|
106
|
+
this.emitter.emit("batchAdded", {
|
|
107
|
+
action: "upload",
|
|
108
|
+
documents,
|
|
109
|
+
});
|
|
110
|
+
return this.internalFlush(false, updatedOptions);
|
|
111
|
+
}
|
|
112
|
+
catch (e) {
|
|
113
|
+
span.setStatus({
|
|
114
|
+
status: "error",
|
|
115
|
+
error: e.message,
|
|
116
|
+
});
|
|
117
|
+
throw e;
|
|
118
|
+
}
|
|
119
|
+
finally {
|
|
120
|
+
span.end();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Merges the documents/Adds the documents to the merge queue.
|
|
125
|
+
*
|
|
126
|
+
* @param documents - Documents to be merged.
|
|
127
|
+
* @param options - Upload options.
|
|
128
|
+
*/
|
|
129
|
+
async mergeDocuments(documents, options = {}) {
|
|
130
|
+
const { span, updatedOptions } = createSpan("SearchIndexingBufferedSender-mergeDocuments", options);
|
|
131
|
+
try {
|
|
132
|
+
this.batchObject.merge(documents);
|
|
133
|
+
this.emitter.emit("batchAdded", {
|
|
134
|
+
action: "merge",
|
|
135
|
+
documents,
|
|
136
|
+
});
|
|
137
|
+
return this.internalFlush(false, updatedOptions);
|
|
138
|
+
}
|
|
139
|
+
catch (e) {
|
|
140
|
+
span.setStatus({
|
|
141
|
+
status: "error",
|
|
142
|
+
error: e.message,
|
|
143
|
+
});
|
|
144
|
+
throw e;
|
|
145
|
+
}
|
|
146
|
+
finally {
|
|
147
|
+
span.end();
|
|
148
|
+
}
|
|
78
149
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
span.end();
|
|
150
|
+
/**
|
|
151
|
+
* Merges/Uploads the documents/Adds the documents to the merge/upload queue.
|
|
152
|
+
*
|
|
153
|
+
* @param documents - Documents to be merged/uploaded.
|
|
154
|
+
* @param options - Upload options.
|
|
155
|
+
*/
|
|
156
|
+
async mergeOrUploadDocuments(documents, options = {}) {
|
|
157
|
+
const { span, updatedOptions } = createSpan("SearchIndexingBufferedSender-mergeOrUploadDocuments", options);
|
|
158
|
+
try {
|
|
159
|
+
this.batchObject.mergeOrUpload(documents);
|
|
160
|
+
this.emitter.emit("batchAdded", {
|
|
161
|
+
action: "mergeOrUpload",
|
|
162
|
+
documents,
|
|
163
|
+
});
|
|
164
|
+
return this.internalFlush(false, updatedOptions);
|
|
165
|
+
}
|
|
166
|
+
catch (e) {
|
|
167
|
+
span.setStatus({
|
|
168
|
+
status: "error",
|
|
169
|
+
error: e.message,
|
|
170
|
+
});
|
|
171
|
+
throw e;
|
|
172
|
+
}
|
|
173
|
+
finally {
|
|
174
|
+
span.end();
|
|
175
|
+
}
|
|
106
176
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
span.end();
|
|
177
|
+
/**
|
|
178
|
+
* Deletes the documents/Adds the documents to the delete queue.
|
|
179
|
+
*
|
|
180
|
+
* @param documents - Documents to be deleted.
|
|
181
|
+
* @param options - Upload options.
|
|
182
|
+
*/
|
|
183
|
+
async deleteDocuments(documents, options = {}) {
|
|
184
|
+
const { span, updatedOptions } = createSpan("SearchIndexingBufferedSender-deleteDocuments", options);
|
|
185
|
+
try {
|
|
186
|
+
this.batchObject.delete(documents);
|
|
187
|
+
this.emitter.emit("batchAdded", {
|
|
188
|
+
action: "delete",
|
|
189
|
+
documents,
|
|
190
|
+
});
|
|
191
|
+
return this.internalFlush(false, updatedOptions);
|
|
192
|
+
}
|
|
193
|
+
catch (e) {
|
|
194
|
+
span.setStatus({
|
|
195
|
+
status: "error",
|
|
196
|
+
error: e.message,
|
|
197
|
+
});
|
|
198
|
+
throw e;
|
|
199
|
+
}
|
|
200
|
+
finally {
|
|
201
|
+
span.end();
|
|
202
|
+
}
|
|
134
203
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
error: e.message
|
|
158
|
-
});
|
|
159
|
-
throw e;
|
|
160
|
-
} finally {
|
|
161
|
-
span.end();
|
|
204
|
+
/**
|
|
205
|
+
* Flushes the queue manually.
|
|
206
|
+
*
|
|
207
|
+
* @param options - Flush options.
|
|
208
|
+
*/
|
|
209
|
+
async flush(options = {}) {
|
|
210
|
+
const { span, updatedOptions } = createSpan("SearchIndexingBufferedSender-flush", options);
|
|
211
|
+
try {
|
|
212
|
+
if (this.batchObject.actions.length > 0) {
|
|
213
|
+
return this.internalFlush(true, updatedOptions);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
catch (e) {
|
|
217
|
+
span.setStatus({
|
|
218
|
+
status: "error",
|
|
219
|
+
error: e.message,
|
|
220
|
+
});
|
|
221
|
+
throw e;
|
|
222
|
+
}
|
|
223
|
+
finally {
|
|
224
|
+
span.end();
|
|
225
|
+
}
|
|
162
226
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
options
|
|
174
|
-
);
|
|
175
|
-
try {
|
|
176
|
-
this.batchObject.delete(documents);
|
|
177
|
-
this.emitter.emit("batchAdded", {
|
|
178
|
-
action: "delete",
|
|
179
|
-
documents
|
|
180
|
-
});
|
|
181
|
-
return this.internalFlush(false, updatedOptions);
|
|
182
|
-
} catch (e) {
|
|
183
|
-
span.setStatus({
|
|
184
|
-
status: "error",
|
|
185
|
-
error: e.message
|
|
186
|
-
});
|
|
187
|
-
throw e;
|
|
188
|
-
} finally {
|
|
189
|
-
span.end();
|
|
227
|
+
/**
|
|
228
|
+
* If using autoFlush: true, call this to cleanup the autoflush timer.
|
|
229
|
+
*/
|
|
230
|
+
async dispose() {
|
|
231
|
+
if (this.batchObject.actions.length > 0) {
|
|
232
|
+
await this.internalFlush(true);
|
|
233
|
+
}
|
|
234
|
+
if (this.cleanupTimer) {
|
|
235
|
+
this.cleanupTimer();
|
|
236
|
+
}
|
|
190
237
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
* Flushes the queue manually.
|
|
194
|
-
*
|
|
195
|
-
* @param options - Flush options.
|
|
196
|
-
*/
|
|
197
|
-
async flush(options = {}) {
|
|
198
|
-
const { span, updatedOptions } = createSpan("SearchIndexingBufferedSender-flush", options);
|
|
199
|
-
try {
|
|
200
|
-
if (this.batchObject.actions.length > 0) {
|
|
201
|
-
return this.internalFlush(true, updatedOptions);
|
|
202
|
-
}
|
|
203
|
-
} catch (e) {
|
|
204
|
-
span.setStatus({
|
|
205
|
-
status: "error",
|
|
206
|
-
error: e.message
|
|
207
|
-
});
|
|
208
|
-
throw e;
|
|
209
|
-
} finally {
|
|
210
|
-
span.end();
|
|
238
|
+
on(event, listener) {
|
|
239
|
+
this.emitter.on(event, listener);
|
|
211
240
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
* If using autoFlush: true, call this to cleanup the autoflush timer.
|
|
215
|
-
*/
|
|
216
|
-
async dispose() {
|
|
217
|
-
if (this.batchObject.actions.length > 0) {
|
|
218
|
-
await this.internalFlush(true);
|
|
241
|
+
off(event, listener) {
|
|
242
|
+
this.emitter.removeListener(event, listener);
|
|
219
243
|
}
|
|
220
|
-
|
|
221
|
-
|
|
244
|
+
isBatchReady() {
|
|
245
|
+
return this.batchObject.actions.length >= this.initialBatchActionCount;
|
|
222
246
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
const actions = this.batchObject.actions;
|
|
236
|
-
this.batchObject = new IndexDocumentsBatch();
|
|
237
|
-
while (actions.length > 0) {
|
|
238
|
-
const actionsToSend = actions.splice(0, this.initialBatchActionCount);
|
|
239
|
-
const { batchToSubmit, submitLater } = this.pruneActions(actionsToSend);
|
|
240
|
-
actions.unshift(...submitLater);
|
|
241
|
-
await this.submitDocuments(batchToSubmit, options);
|
|
242
|
-
}
|
|
247
|
+
async internalFlush(force, options = {}) {
|
|
248
|
+
if (force || (this.autoFlush && this.isBatchReady())) {
|
|
249
|
+
// Split it
|
|
250
|
+
const actions = this.batchObject.actions;
|
|
251
|
+
this.batchObject = new IndexDocumentsBatch();
|
|
252
|
+
while (actions.length > 0) {
|
|
253
|
+
const actionsToSend = actions.splice(0, this.initialBatchActionCount);
|
|
254
|
+
const { batchToSubmit, submitLater } = this.pruneActions(actionsToSend);
|
|
255
|
+
actions.unshift(...submitLater);
|
|
256
|
+
await this.submitDocuments(batchToSubmit, options);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
243
259
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
260
|
+
pruneActions(batch) {
|
|
261
|
+
const hashSet = new Set();
|
|
262
|
+
const resultBatch = [];
|
|
263
|
+
const pruned = [];
|
|
264
|
+
for (const document of batch) {
|
|
265
|
+
const key = this.documentKeyRetriever(document);
|
|
266
|
+
if (hashSet.has(key)) {
|
|
267
|
+
pruned.push(document);
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
hashSet.add(key);
|
|
271
|
+
resultBatch.push(document);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return { batchToSubmit: resultBatch, submitLater: pruned };
|
|
257
275
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
async submitDocuments(actionsToSend, options, retryAttempt = 1) {
|
|
277
|
+
try {
|
|
278
|
+
for (const action of actionsToSend) {
|
|
279
|
+
this.emitter.emit("beforeDocumentSent", action);
|
|
280
|
+
}
|
|
281
|
+
const result = await this.client.indexDocuments(new IndexDocumentsBatch(actionsToSend), options);
|
|
282
|
+
// raise success event
|
|
283
|
+
this.emitter.emit("batchSucceeded", result);
|
|
284
|
+
}
|
|
285
|
+
catch (e) {
|
|
286
|
+
if (e.statusCode && e.statusCode === 413 && actionsToSend.length > 1) {
|
|
287
|
+
// Cut the payload size to half
|
|
288
|
+
const splitActionsArray = [
|
|
289
|
+
actionsToSend.slice(0, actionsToSend.length / 2),
|
|
290
|
+
actionsToSend.slice(actionsToSend.length / 2, actionsToSend.length),
|
|
291
|
+
];
|
|
292
|
+
this.initialBatchActionCount = splitActionsArray[0].length; // So, we do not want 413 happening again and again
|
|
293
|
+
for (const actions of splitActionsArray) {
|
|
294
|
+
await this.submitDocuments(actions, options);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
else if (this.isRetryAbleError(e) && retryAttempt <= this.maxRetriesPerAction) {
|
|
298
|
+
// Exponentially increase the delay each time
|
|
299
|
+
const exponentialDelay = this.throttlingDelayInMs * Math.pow(2, retryAttempt);
|
|
300
|
+
// Don't let the delay exceed the maximum
|
|
301
|
+
const clampedExponentialDelay = Math.min(this.maxThrottlingDelayInMs, exponentialDelay);
|
|
302
|
+
// Allow the final value to have some "jitter" (within 50% of the delay size) so
|
|
303
|
+
// that retries across multiple clients don't occur simultaneously.
|
|
304
|
+
const delayWithJitter = clampedExponentialDelay / 2 + getRandomIntegerInclusive(0, clampedExponentialDelay / 2);
|
|
305
|
+
await delay(delayWithJitter);
|
|
306
|
+
await this.submitDocuments(actionsToSend, options, retryAttempt + 1);
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
this.emitter.emit("batchFailed", e);
|
|
310
|
+
throw e;
|
|
311
|
+
}
|
|
279
312
|
}
|
|
280
|
-
} else if (this.isRetryAbleError(e) && retryAttempt <= this.maxRetriesPerAction) {
|
|
281
|
-
const exponentialDelay = this.throttlingDelayInMs * Math.pow(2, retryAttempt);
|
|
282
|
-
const clampedExponentialDelay = Math.min(this.maxThrottlingDelayInMs, exponentialDelay);
|
|
283
|
-
const delayWithJitter = clampedExponentialDelay / 2 + getRandomIntegerInclusive(0, clampedExponentialDelay / 2);
|
|
284
|
-
await delay(delayWithJitter);
|
|
285
|
-
await this.submitDocuments(actionsToSend, options, retryAttempt + 1);
|
|
286
|
-
} else {
|
|
287
|
-
this.emitter.emit("batchFailed", e);
|
|
288
|
-
throw e;
|
|
289
|
-
}
|
|
290
313
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}
|
|
314
|
+
isRetryAbleError(e) {
|
|
315
|
+
return e.statusCode && (e.statusCode === 422 || e.statusCode === 409 || e.statusCode === 503);
|
|
316
|
+
}
|
|
295
317
|
}
|
|
296
|
-
|
|
297
|
-
DEFAULT_BATCH_SIZE,
|
|
298
|
-
DEFAULT_FLUSH_WINDOW,
|
|
299
|
-
DEFAULT_RETRY_COUNT,
|
|
300
|
-
SearchIndexingBufferedSender
|
|
301
|
-
};
|
|
318
|
+
//# sourceMappingURL=searchIndexingBufferedSender.js.map
|