typesense / typesense/typesense

[Feature request] Support not equal to filter

Open
#257 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
26.6k
Forks
973
Avg merge
18h 45m
Merged PRs (30d)
4

Description

It will be good if we provide a filter for not equal conditions.

Example

  product_schema = {
     "name" =>  "products",
     "fields" => [
         { "name" => "name", "type" => "string" },
         { "name" => "available_months",  "type" => "string[]" },
         ........
       ]
    }

In the above schema, there is no way to filter such products that has no available months set
i.e available_months != [](empty array)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no file or test entry point. Start by locating the filter implementation and existing filter tests, then confirm how an inequality against an empty array should be represented; done means products with non-empty available_months can be returned while empty arrays are excluded.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.