Skip to content

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

@gibber9809

Description

@gibber9809

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions