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

query for missing or must_not exists #950

Closed
andrewarrow opened this issue Jan 21, 2024 · 2 comments
Closed

query for missing or must_not exists #950

andrewarrow opened this issue Jan 21, 2024 · 2 comments

Comments

@andrewarrow
Copy link

I tried both:

{
  "query": {
    "missing": {
      "field": "your_field_name"
    }
  }
}

or

{
  "query": {
    "bool": {
      "must_not": {
        "exists": {
          "field": "your_field_name"
        }
      }
    }
  }
}

but can't get it to return just the documents that do not yet having a value for a newly added your_field_name.

@KaniuBillows
Copy link
Contributor

https://github.com/zincsearch/zincsearch/blob/f8b1436487807b107659d6f444a52c9fa442d3c0/pkg/uquery/query/exists.go#L24C1-L26C2

Here you can see: Zincsearch doesn't support exists query. And the deeper reason is that bluge does not provide relevant APIs.

@andrewarrow
Copy link
Author

ah thank u

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

No branches or pull requests

2 participants