Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using 'sort' in the field name interferes with the TS parser #1648

Open
prmaxim opened this issue Apr 4, 2024 · 0 comments
Open

Using 'sort' in the field name interferes with the TS parser #1648

prmaxim opened this issue Apr 4, 2024 · 0 comments

Comments

@prmaxim
Copy link

prmaxim commented Apr 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants