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

clp-s: Search for empty JSON object and JSON array not working as expected. #588

Open
gibber9809 opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gibber9809
Copy link
Contributor

Bug

For objects like {"a":{}, "b":[]} the object should be searchable with queries like a:* or b:*, but the current version of clp-s fails to return the object for such queries (with one exception).

The issue is most likely a problem with schema matching. The only case that works at the moment is that b:* will correctly return the object when array structurization is disabled.

CLP version

0.1.2

Environment

Current version of clp package.

Reproduction steps

Ingest a JSON object containing an empty JSON object field and attempt to retrieve it using search.

@gibber9809 gibber9809 added the bug Something isn't working label Nov 13, 2024
@gibber9809 gibber9809 self-assigned this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant