Skip to content

Commit

Permalink
feat: Sec. index on json (#3330)
Browse files Browse the repository at this point in the history
## Relevant issue(s)

Resolves #2280

## Description

Enables json fields indexing.

JSON interface has been extended to allow traversing it with different
configurations.

Indexing or documents has been refactor so that instead of acting based
off of the fact that there is a special field in the index description
(like array or json), we assign a field-specific generator so that every
field is responsible for generating a value for the inde key. For
example, if we have a composite index made up of fields of types int,
array and json (complex composite index), we will generate all possible
combinations where int generator will always generate 1 value, array
generator will generate values for every element and json generator will
generate values for every json node.

Added json encoding/decoding to our encoding package.
  • Loading branch information
islamaliev authored Jan 2, 2025
1 parent cdba31b commit 4318db4
Show file tree
Hide file tree
Showing 37 changed files with 6,066 additions and 1,094 deletions.
2 changes: 2 additions & 0 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
The `client` package is the primary access point for interacting with an embedded DefraDB instance.

[Data definition overview](./data_definition.md) - How the shape of documents are defined and grouped.

[Secondary indexes](./secondary_indexes.md) - Using secondary indexes in DefraDB.
Loading

0 comments on commit 4318db4

Please sign in to comment.