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

Typesense on start rejects override rule with empty query

b0g3r opened this issue · comments

Description

We use overriding for empty queries to promote documents on the initial state of search, unfortunately it works only until a restart.

Steps to reproduce

  • Create override rule for "query": ""
  • Make a searchrequest with "q": "" and see a promoted document there
  • Restart typesense instance
  • Make a searchrequest with "q": ""

Expected Behavior

Promoted document is still there

Actual Behavior

Promoted documents isn't in the results, log contains "Skipping loading of override: The rule definition must contain either a tags or a query and match."

Thanks for reporting this issue. Good catch. We are on code freeze for 0.26 though so we will take it up for next release and will have a RC with a fix for soon.