Closed jordan112 closed 9 months ago
Hello @jordan112 Could you also share the preset definition?
I tried to create to create the following preset and it worked fine for me.
await client.presets.upsert('query_field_preset', {
'value': {
'query_by': 'company_name',
}
});
await client.collection('companies').documents.search(
{
'q': 'Corp',
'preset': 'country_filter_preset',
'filter_by': 'country:=USA',
},
);
This appears to be working now. At one point while implementing, i got errors stating query parameters were required even though i had a preset. closing this issue.
Here is my preset for reference
The presets passed in don't seem to work. I get an error stating i need to add query parameters, when i thought that the preset would be the only thing I need.
Steps to reproduce the behavior:
Expected behavior
It should be able to only use the preset without specifying query or sort parameters, so preset can be managed from Typesense cloud and not update client
Screenshots
None
Additional context