Using 'sort' in the field name interferes with the TS parser
prmaxim opened this issue · comments
Description
Using the float field named sortprice
with facet ranges causes an Invalid sort format
error.
Steps to reproduce
Collection schema:
"fields": [
{
"facet": true,
"index": true,
"infix": false,
"locale": "",
"name": "sortprice",
"optional": true,
"sort": true,
"stem": false,
"type": "float"
}
],
Query:
{
"facet_by": "sortprice(economy:[0, 10], others:[10, ])"
}
Actual Behavior
Invalid sort format.
Metadata
Typesense Version: 26