@azure/search-documents 12.0.0-alpha.20230810.5 → 12.0.0-alpha.20230919.2

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/README.md CHANGED
@@ -321,7 +321,7 @@ main();
321
321
  In TypeScript, `SearchClient` takes a generic parameter that is the model shape of your index documents. This allows you to perform strongly typed lookup of fields returned in results. TypeScript is also able to check for fields returned when specifying a `select` parameter.
322
322
 
323
323
  ```ts
324
- import { SearchClient, AzureKeyCredential } from "@azure/search-documents";
324
+ import { SearchClient, AzureKeyCredential, SelectFields } from "@azure/search-documents";
325
325
 
326
326
  // An example schema for documents in the index
327
327
  interface Hotel {
@@ -335,7 +335,7 @@ interface Hotel {
335
335
  rooms?: Array<{
336
336
  beds?: number | null;
337
337
  description?: string | null;
338
- } | null;>
338
+ } | null>;
339
339
  }
340
340
 
341
341
  const client = new SearchClient<Hotel>(
@@ -404,10 +404,10 @@ Text embeddings can be queried using the `vector` search parameter.
404
404
  ```js
405
405
  const { SearchClient, AzureKeyCredential, odata } = require("@azure/search-documents");
406
406
 
407
- const client = new SearchClient("<endpoint>", "<indexName>", new AzureKeyCredential("<apiKey>"));
407
+ const searchClient = new SearchClient("<endpoint>", "<indexName>", new AzureKeyCredential("<apiKey>"));
408
408
 
409
409
  async function main() {
410
- const queryVector: number[] = [...]
410
+ const queryVector = [...]
411
411
  const searchResults = await searchClient.search("*", {
412
412
  vector: {
413
413
  fields: ["descriptionVector"],
package/dist/index.js CHANGED
@@ -1979,7 +1979,7 @@ class SearchClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
1979
1979
  const defaults = {
1980
1980
  requestContentType: "application/json; charset=utf-8"
1981
1981
  };
1982
- const packageDetails = `azsdk-js-search-documents/12.0.0-beta.3`;
1982
+ const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`;
1983
1983
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1984
1984
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1985
1985
  : `${packageDetails}`;
@@ -11213,7 +11213,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
11213
11213
  const defaults = {
11214
11214
  requestContentType: "application/json; charset=utf-8"
11215
11215
  };
11216
- const packageDetails = `azsdk-js-search-documents/12.0.0-beta.3`;
11216
+ const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`;
11217
11217
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
11218
11218
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
11219
11219
  : `${packageDetails}`;