You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/search-get-started-rag.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -324,7 +324,8 @@ If your index has complex types, your query can provide those fields if you firs
324
324
import json
325
325
326
326
# Query is the question being asked. It's sent to the search engine and the LLM.
327
-
query="Can you recommend a few hotels that offer complimentary breakfast? Tell me their description, address, tags, and the rate for one room they have which sleep 4 people."
327
+
query="Can you recommend a few hotels that offer complimentary breakfast?
328
+
Tell me their description, address, tags, and the rate for one room that sleeps 4 people."
328
329
329
330
# Set up the search results and the chat thread.
330
331
# Retrieve the selected fields from the search index related to the question.
Output isfrom Azure OpenAI, and it adds content fromcomplex types.
355
356
356
357
```
357
-
Absolutely! Here are a few hotels that offer complimentary breakfast:
358
+
Here are a few hotels that offer complimentary breakfastand have rooms that sleep 4 people:
358
359
359
360
1. **Head Wind Resort**
360
-
-**Description:** The best of old town hospitality combined with views of the river and cool breezes off the prairie. Enjoy a complimentary continental breakfast in the lobby, and free Wi-Fi throughout the hotel.
361
+
-**Description:** The best of old town hospitality combined with views of the river and
362
+
cool breezes off the prairie. Enjoy a complimentary continental breakfast in the lobby,
-**Description:**5-star Luxury Hotel - Biggest Rooms in the city. #1 Hotel in the area listed by Traveler magazine. Free WiFi, Flexible check in/out, Fitness Center & espresso in room. Offers continental breakfast.
369
+
-**Description:**5-star Luxury Hotel - Biggest Rooms in the city. #1 Hotel in the area
370
+
listed by Traveler magazine. Free WiFi, Flexible check in/out, Fitness Center & espresso
371
+
in room. Offers continental breakfast.
367
372
-**Address:**2211 Elliott Ave, Seattle, WA98121, USA
368
373
-**Tags:** View, pool, restaurant, bar, continental breakfast
Copy file name to clipboardExpand all lines: articles/search/search-howto-complex-data-types.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -289,9 +289,13 @@ To filter on a complex collection field, you can use a **lambda expression** wit
289
289
290
290
As with top-level simple fields, simple subfields of complex fields can only be included in filters if they have the **filterable** attribute set to `true` in the index definition. For more information, see the [Create Index API reference](/rest/api/searchservice/indexes/create).
291
291
292
-
Azure AI Search limits complex objects in a collection to 3,000 objects per document. Exceeding this limit results in the following message:
292
+
### Workaround for the complex collection limit
293
293
294
-
`"A collection in your document exceeds the maximum elements across all complex collections limit. The document with key '1052' has '4303' objects in collections (JSON arrays). At most '3000' objects are allowed to be in collections across the entire document. Remove objects from collections and try indexing the document again."`
294
+
Recall that Azure AI Search limits complex objects in a collection to 3,000 objects per document. Exceeding this limit results in the following message:
295
+
296
+
```
297
+
A collection in your document exceeds the maximum elements across all complex collections limit. The document with key '1052' has '4303' objects in collections (JSON arrays). At most '3000' objects are allowed to be in collections across the entire document. Remove objects from collections and try indexing the document again."
298
+
```
295
299
296
300
If you need more than 3,000 items, you can pipe (`|`) or use any form of delimiter to delimit the values, concatenate them, and store them as a delimited string. There's no limitation on the number of strings stored in an array. Storing complex values as strings bypasses the complex collection limitation.
297
301
@@ -343,11 +347,13 @@ foreach (var filterItem in filterCombinations)
343
347
344
348
The following list provides inputs and search strings (outputs) side by side:
345
349
346
-
For "FRA" county code and the "1234" product code, the formatted output is ```|FRA|1234|*|```.
347
-
For "1234" product code, the formatted output is ```|*|1234|*|```.
348
-
For "C100" category code, the formatted output is ```|*|*|C100|```.
350
+
+ For "FRA" county code and the "1234" product code, the formatted output is ```|FRA|1234|*|```.
351
+
352
+
+ For "1234" product code, the formatted output is ```|*|1234|*|```.
353
+
354
+
+ For "C100" category code, the formatted output is ```|*|*|C100|```.
349
355
350
-
Only provide the wild card entry placeholder if you're implementing the string array workaround. Otherwise, if you're using a complex type, your filter might look this example:
356
+
Only provide the wildcard (`*`) if you're implementing the string array workaround. Otherwise, if you're using a complex type, your filter might look like this example:
Copy file name to clipboardExpand all lines: articles/search/search-limits-quotas-capacity.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ Maximum limits on storage, workloads, and quantities of indexes and other object
53
53
54
54
<sup>2</sup> The upper limit on fields includes both first-level fields and nested subfields in a complex collection. For example, if an index contains 15 fields and has two complex collections with five subfields each, the field count of your index is 25. Indexes with a very large fields collection can be slow. [Limit fields and attributes](search-what-is-an-index.md#physical-structure-and-size) to just those you need, and run indexing and query test to ensure performance is acceptable.
55
55
56
-
<sup>3</sup> An upper limit exists for elements because having a large number of them significantly increases the storage required for your index. An element of a complex collection is defined as a member of that collection. For example, assume a [Hotel document with a Rooms complex collection](search-howto-complex-data-types.md#indexing-complex-types), each room in the Rooms collection is considered an element. During indexing, the indexing engine can safely process a maximum of 3,000 elements across the document as a whole. [This limit](search-api-migration.md#upgrade-to-2019-05-06) was introduced in `api-version=2019-05-06` and applies to complex collections only, and not to string collections or to complex fields.
56
+
<sup>3</sup> An upper limit exists for elements because having a large number of them significantly increases the storage required for your index. An element of a complex collection is defined as a member of that collection. For example, assume a [Hotel document with a Rooms complex collection](search-howto-complex-data-types.md#complex-collection-limits), each room in the Rooms collection is considered an element. During indexing, the indexing engine can safely process a maximum of 3,000 elements across the document as a whole. [This limit](search-api-migration.md#upgrade-to-2019-05-06) was introduced in `api-version=2019-05-06` and applies to complex collections only, and not to string collections or to complex fields.
57
57
58
58
<sup>4</sup> On most tiers, maximum index size is all available storage on your search service. For S2, S3, and S3 HD, the maximum size of any index is the number provided in the table. Applies to search services created after April 3, 2024.
0 commit comments