Georgi Nachev
11/08/2024, 10:08 AM{1: {id:1, price: 10},2: {id:2, price: 15},3: {id:3, price: 20}}
and when I run a multisearch request:
{
"searches": [
{
"q": "adidas",
"per_page": 16,
"page": 1,
"case_sensitive": false,
"collection": "products_4878",
"filter_by": "test.2.id:=2",
"group_by": "item_id",
"group_limit": 1,
"sort_by": "test.2.price:asc",
"query_by": "name",
"include_fields": "id,item_id,name"
}
]
}
there is no problem, but if i use "test.10" got this error "Could not find a filter field named customer_group.10.id
in the schema." for "filter_by", this error "Could not find a facet field named customer_group.10.price
in the schema." for "facet_by" and this error "Could not find a field named customer_group.10.id
in the schema." for "group_by".
I used version 27.1. How can i fih that problem? Option for dinamicly update of schema is not OK. there is option for many create and delete records for test with different id'sKishore Nallan
11/08/2024, 1:20 PMcustomer_group
in your schema? It will be useful if you can post a fully reproducible example:
1. Your collection schema
2. One sample doc
3. The query which failsGeorgi Nachev
11/08/2024, 2:16 PM{
"name": "test_collection",
"enable_nested_fields": true,
"fields": [
{
"name": "name",
"type": "string"
},
{
"name": "customer_group",
"type": "object",
"facet": true,
"optional": true
}
]
}
2 documents:
[
{
"id": "1",
"name": "Stark Industries",
"customer_group": {
"1": {
"id": 1,
"price": 10
},
"2": {
"id": 2,
"price": 15
},
"3": {
"id": 3,
"price": 20
}
}
},
{
"id": "2",
"name": "Stark Industries 2",
"customer_group": {
"3": {
"id": 3,
"price": 10
},
"4": {
"id": 4,
"price": 15
},
"5": {
"id": 5,
"price": 20
}
}
}
]
And multysearch query with success response:
{
"searches": [
{
"collection": "test_collection",
"q": "*",
"filter_by": "customer_group.3.id:=3"
}
]
}
and with error:
{
"searches": [
{
"collection": "test_collection",
"q": "*",
"filter_by": "customer_group.6.id:=6"
}
]
}
Georgi Nachev
11/08/2024, 2:17 PMKishore Nallan
11/08/2024, 2:17 PMGeorgi Nachev
11/08/2024, 2:18 PMGeorgi Nachev
11/08/2024, 4:27 PMGeorgi Nachev
11/11/2024, 7:23 AM{
"name": "companies",
"fields": [
{
"name": ".*_facet",
"type": "auto",
"facet": true
}
]
}
if i have 1_facet, 2_facet, but group by 3_facet there is exceptionGeorgi Nachev
11/12/2024, 8:51 AMKishore Nallan
11/12/2024, 8:53 AMGeorgi Nachev
11/12/2024, 8:56 AMGeorgi Nachev
11/15/2024, 12:15 PMKishore Nallan
11/15/2024, 1:25 PMKishore Nallan
11/15/2024, 1:26 PMGeorgi Nachev
11/18/2024, 7:07 AMKishore Nallan
11/18/2024, 7:08 AMGeorgi Nachev
11/18/2024, 7:10 AMKishore Nallan
11/18/2024, 7:12 AMGeorgi Nachev
11/18/2024, 7:12 AMGeorgi Nachev
11/18/2024, 7:13 AMKishore Nallan
11/18/2024, 7:14 AMGeorgi Nachev
11/18/2024, 7:14 AMKishore Nallan
11/26/2024, 3:28 AM28.0.rc22
-- we have added a validate_field_names
boolean parameter which you can use to control the field validation behavior. This is now implemented for group by and filter by as well.