Diego Chacón Sanchiz
09/19/2025, 8:39 AM{
"enable_nested_fields": true,
"fields": [
{
"name": "extendedNameEsES",
"type": "string",
"index": true,
"store": true
},
{
"name": "productFormatPublicId",
"type": "string",
"index": true,
"store": true
},
{
"name": "productId",
"type": "string",
"index": false,
"store": true,
"optional": true
},
{
"name": "handlingUnitId",
"type": "string",
"index": false,
"store": true,
"optional": true
},
{
"name": "sitePublicId",
"type": "string",
"index": true,
"store": true
},
{
"name": "siteId",
"type": "string",
"index": false,
"store": true,
"optional": true
},
{
"name": "assortmentStatuses.statusId",
"type": "string[]",
"index": true,
"store": true,
"optional": true
},
{
"name": "assortmentStatuses.startDate",
"type": "int64[]",
"index": true,
"store": true,
"optional": true
},
{
"name": "assortmentStatuses.endDate",
"type": "int64[]",
"index": true,
"store": true,
"optional": true
}
],
"name": "assortments",
"num_documents": 36259531
}
When we search or filter by the array field:
curl --location '<https://localhost:12000/collections/assortments/documents/search?q=lech&query_by=extendedNameEsES&filter_by=sitePublicId:=4420&¤tStatusId:=A>)
As the number of documents increases, response times degrade significantly. Right now, we are seeing ~1 second response time with the attached query, but as we add more filters, the latency increases.
Questions:
• What workarounds would you recommend in these cases?
• We are considering segmenting this collection into ~1600 collections (one per store) with fewer fields. Do you see this as a good approach?Fanis Tharropoulos
09/19/2025, 9:59 AMsearch_time_ms in the response body?Harpreet Sangar
09/22/2025, 5:25 AMenable_lazy_filter: true reduces the response time.Diego Chacón Sanchiz
09/24/2025, 10:14 AMDiego Chacón Sanchiz
09/24/2025, 10:17 AMenable_lazy_filter: true but we have not noticed any improvement in timesHarpreet Sangar
09/24/2025, 11:15 AMenable_lazy_filter: true won't have any affect in case of Join. Can you share the relevant field definitions of products and assortments collections?Diego Chacón Sanchiz
10/02/2025, 8:37 AMHarpreet Sangar
10/24/2025, 12:56 PM