typesense / typesense

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Home Page:https://typesense.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

prmaxim opened this issue · comments

commented

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