Skip to content

Commit f2d0412

Browse files
Merge pull request #266877 from HeidiSteen/heidist-fresh
[azure search] Freshness pass #4 plus new dimension limits
2 parents b5ddf40 + 303fc53 commit f2d0412

8 files changed

+67
-63
lines changed

articles/search/search-get-started-vector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ api-key: {{admin-api-key}}
383383

384384
+ Documents in the payload consist of fields defined in the index schema.
385385

386-
+ Vector fields contain floating point values. The dimensions attribute has a minimum of 2 and a maximum of 2048 floating point values each. This quickstart sets the dimensions attribute to 1536 because that's the size of embeddings generated by the Open AI's **text-embedding-ada-002** model.
386+
+ Vector fields contain floating point values. The dimensions attribute has a minimum of 2 and a maximum of 3072 floating point values each. This quickstart sets the dimensions attribute to 1536 because that's the size of embeddings generated by the Open AI's **text-embedding-ada-002** model.
387387

388388
## Run queries
389389

articles/search/search-howto-powerapps.md

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: cognitive-search
88
ms.custom:
99
- ignite-2023
1010
ms.topic: tutorial
11-
ms.date: 02/07/2023
11+
ms.date: 02/21/2024
1212
---
1313

1414
# Tutorial: Query an Azure AI Search index from Power Apps
@@ -26,11 +26,11 @@ If you don't have an Azure subscription, open a [free account](https://azure.mic
2626

2727
## Prerequisites
2828

29-
* [Power Apps account](https://make.powerapps.com)
29+
* [Power Apps account](https://make.powerapps.com) with a [premium license](/power-platform/admin/pricing-billing-skus#licenses), such as a Power Apps per apps plan or a Power Apps per user plan.
3030

31-
* [Hotels-sample index](search-get-started-portal.md) hosted on your search service
31+
* [Hotels-sample index](search-get-started-portal.md) hosted on your search service.
3232

33-
* [Query API key](search-security-api-keys.md#find-existing-keys)
33+
* [Query API key](search-security-api-keys.md#find-existing-keys).
3434

3535
## 1 - Create a custom connector
3636

@@ -69,15 +69,15 @@ A connector in Power Apps is a data source connection. In this step, create a cu
6969

7070
* Select the verb `GET`
7171

72-
* For the URL, enter a sample query for your search index (`search=*` returns all documents, `$select=` lets you choose fields). The API version is required. Fully specified, a URL might look like this: `https://mydemo.search.windows.net/indexes/hotels-sample-index/docs?search=*&$select=HotelName,Description,Address/City&api-version=2020-06-30`
72+
* For the URL, enter a sample query for your search index (`search=*` returns all documents, `$select=` lets you choose fields). The API version is required. Fully specified, a URL might look like this: `mydemo.search.windows.net/indexes/hotels-sample-index/docs?search=*&$select=HotelName,Description,Address/City&api-version=2023-11-01`. Omit the `https://` prefix.
7373

74-
* For Headers, type `Content-Type`. You'll set the value to `application/json` in a later step.
74+
* For Headers, type `Content-Type application/json`.
7575

7676
**Power Apps** uses the syntax in the URL to extract parameters from the query: search, select, and api-version parameters become configurable as you progress through the wizard.
7777

7878
:::image type="content" source="./media/search-howto-powerapps/1-8-1-import-from-sample.png" alt-text="Import from sample" border="true":::
7979

80-
1. Select **Import** to auto-fill the Request. Complete setting the parameter metadata by clicking the **...** symbol next to each of the parameters. Select **Back** to return to the Request page after each parameter update.
80+
1. Select **Import** to autofill the Request. Complete setting the parameter metadata by clicking the **...** symbol next to each of the parameters. Select **Back** to return to the Request page after each parameter update.
8181

8282
:::image type="content" source="./media/search-howto-powerapps/1-8-2-import-from-sample.png" alt-text="Import from sample dialogue" border="true":::
8383

@@ -89,7 +89,7 @@ A connector in Power Apps is a data source connection. In this step, create a cu
8989

9090
:::image type="content" source="./media/search-howto-powerapps/1-10-4-parameter-metadata-select.png" alt-text="Select parameter metadata" border="true":::
9191

92-
1. For *api-version*: Set `2020-06-30` as the **default value**, set **required** to *True*, and set **visibility** as *internal*.
92+
1. For *api-version*: Set `2023-11-01` as the **default value**, set **required** to *True*, and set **visibility** as *internal*.
9393

9494
:::image type="content" source="./media/search-howto-powerapps/1-10-2-parameter-metadata-version.png" alt-text="Version parameter metadata" border="true":::
9595

@@ -101,12 +101,12 @@ A connector in Power Apps is a data source connection. In this step, create a cu
101101
parameters:
102102
- {name: search, in: query, required: false, type: string, default: '*'}
103103
- {name: $select, in: query, required: false, type: string, default: 'HotelName,Description,Address/City'}
104-
- {name: api-version, in: query, required: true, type: string, default: '2020-06-30',
104+
- {name: api-version, in: query, required: true, type: string, default: '2023-11-01',
105105
x-ms-visibility: internal}
106106
- {name: Content-Type, in: header, required: false, type: string}
107107
```
108108

109-
1. Switch back to the wizard and return to the **3. Request** step. Scroll down to the Response section. Select **"Add default response"**. This step is critical because it helps Power Apps understand the schema of the response.
109+
1. Switch back to the wizard and return to the **3. Definition** step. Scroll down to the Response section. Select **"Add default response"**. This step is critical because it helps Power Apps understand the schema of the response.
110110

111111
1. Paste a sample response. An easy way to capture a sample response is through Search Explorer in the Azure portal. In Search Explorer, you should enter the same query as you did for the request, but add **$top=2** to constrain results to just two documents: `search=*&$select=HotelName,Description,Address/City&$top=2`.
112112

@@ -149,7 +149,7 @@ A connector in Power Apps is a data source connection. In this step, create a cu
149149

150150
When the connector is first created, you need to reopen it from the Custom Connectors list in order to test it. Later, if you make more updates, you can test from within the wizard.
151151

152-
You'll need a [query API key](search-security-api-keys.md#find-existing-keys) for this task. Each time a connection is created, whether for a test run or inclusion in an app, the connector needs the query API key used for connecting to Azure AI Search.
152+
Provide a [query API key](search-security-api-keys.md#find-existing-keys) for this task. Each time a connection is created, whether for a test run or inclusion in an app, the connector needs the query API key used for connecting to Azure AI Search.
153153

154154
1. On the far left, select **Custom Connectors**.
155155

@@ -159,11 +159,9 @@ You'll need a [query API key](search-security-api-keys.md#find-existing-keys) fo
159159

160160
:::image type="content" source="./media/search-howto-powerapps/1-11-1-test-connector.png" alt-text="View Properties" border="true":::
161161

162-
1. Select **Edit** on the top right.
162+
1. In the drop down list of operations, select **6. Test**.
163163

164-
1. Select **5. Test** to open the test page.
165-
166-
1. In Test Operation, select **+ New Connection**.
164+
1. In **Test Operation**, select **+ New Connection**.
167165

168166
1. Enter a query API key. This is an Azure AI Search query for read-only access to an index. You can [find the key](search-security-api-keys.md#find-existing-keys) in the Azure portal.
169167

@@ -177,13 +175,11 @@ If the test fails, recheck the inputs. In particular, revisit the sample respons
177175

178176
In this step, create a Power App with a search box, a search button, and a display area for the results. The Power App will connect to the recently created custom connector to get the data from Azure Search.
179177

180-
1. On the left, expand **Apps** > **+ New app** > **Canvas**.
181-
182-
:::image type="content" source="./media/search-howto-powerapps/2-1-create-canvas.png" alt-text="Create canvas app" border="true":::
178+
1. On the left, expand **Apps** > **New app** > **Start with a page design**.
183179

184-
1. Select the type of application. For this tutorial, create a **Blank App** with the **Phone Layout**. Give the app a name, such as "Hotel Finder". Select **Create**. The **Power Apps Studio** appears.
180+
1. Select a **Blank canvas** with the **Phone Layout**. Give the app a name, such as "Hotel Finder". Select **Create**. The **Power Apps Studio** appears.
185181

186-
1. In the studio, select the **Data Sources** tab, select **+ Add data**, and then find the new Connector you have just created. In this tutorial, it's called *AzureSearchQuery*. Select **Add a connection**.
182+
1. In the studio, select the **Data** tab, select **Add data**, and then find the new Connector you have just created. In this tutorial, it's called *AzureSearchQuery*. Select **Add a connection**.
187183

188184
Enter the query API key.
189185

@@ -255,7 +251,7 @@ When you're working in your own subscription, it's a good idea at the end of a p
255251

256252
You can find and manage resources in the portal, using the **All resources** or **Resource groups** link in the left-navigation pane.
257253

258-
If you're using a free service, remember that you're limited to three indexes, indexers, and data sources. You can delete individual items in the portal to stay under the limit.
254+
Remember that a free search service is limited to three indexes, indexers, and data sources. You can delete individual items in the Azure portal to stay under the limit.
259255

260256
## Next steps
261257

articles/search/search-limits-quotas-capacity.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ author: HeidiSteen
88
ms.author: heidist
99
ms.service: cognitive-search
1010
ms.topic: conceptual
11-
ms.date: 01/02/2024
11+
ms.date: 02/21/2024
1212
ms.custom:
1313
- references_regions
1414
- ignite-2023
@@ -40,6 +40,7 @@ Maximum limits on storage, workloads, and quantities of indexes and other object
4040
| -------- | ---- | ------------------- | --- | --- | --- | --- | --- | --- |
4141
| Maximum indexes |3 |5 or 15 |50 |200 |200 |1000 per partition or 3000 per service |10 |10 |
4242
| Maximum simple fields per index&nbsp;<sup>2</sup> |1000 |100 |1000 |1000 |1000 |1000 |1000 |1000 |
43+
| Maximum dimensions per vector field | 3072 |3072 |3072 |3072 |3072 |3072 |3072 |3072 |
4344
| Maximum complex collections per index |40 |40 |40 |40 |40 |40 |40 |40 |
4445
| Maximum elements across all complex collections per document&nbsp;<sup>3</sup> |3000 |3000 |3000 |3000 |3000 |3000 |3000 |3000 |
4546
| Maximum depth of complex fields |10 |10 |10 |10 |10 |10 |10 |10 |

0 commit comments

Comments
 (0)