#community-help

Typesense Search Limit and Nested Fields Indexing

TLDR Loic asked about the search limit and how to build a schema for nested fields in Typesense. Jason clarified the limit has been lifted in newer versions and nested fields indexing will be available in the next 3-4 months.

Powered by Struct AI
+12
Apr 25, 2022 (17 months ago)
Loic
Photo of md5-3a88a602e4aba6a18b4a6c6985fcf08c
Loic
03:12 PM
Hi guys,
in the documentation we can find « Due to performance reasons, Typesense limits searches to a maximum of 500 results. »

Is there a way to change this limit and set for example 10,000 ?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:37 PM
Loic This was only a limitation in 0.11 and 0.12 versions of Typesense. This has no longer been the case since then (we're on v0.22 currently)
+11
Loic
Photo of md5-3a88a602e4aba6a18b4a6c6985fcf08c
Loic
03:49 PM
Thank you Jason !
+11
05:20
Loic
05:20 PM
Jason To store and and retrieve an object or list of objects, how should I build the schema for prices which is of type List<Price>

Example with object Price
circleId String
price int


{
    "ownerId": "123",
    "prices": [
        {
            "circleId": "String",
            "price": 123
        }
    ]
}

05:27
Loic
05:27 PM
I found this in the documentation https://typesense.org/docs/0.22.2/api/collections.html#indexing-nested-fields. Is it available now it the latest version?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:29 PM
It's not yet available in the latest version... We plan to tackle it in the next 3-4 months. So you would have to flatten it for now, like in the link you shared