valeriansaliou / sonic

🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.

Home Page:https://crates.io/crates/sonic-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storing duplicate entries of the same collection, bucket, and key

unit-collision opened this issue · comments

Hello, this is my first post on github. I am attempting to use this software for a student project.

We are trying to use sonic to ingest and query json entries, but we are pushing each entry of our dictionaries individually as our 'object' and each key as 'text'. Our bucket and collection are queries for dates and time. This lets us build json dictionaries from sonic queries by querying on each key (text) and transforming the resulting string into a dictionary.

One of our keys only has three possible objects it can be, but we don't know how to retrieve duplicates when we store it. Say we store [x, x, y, y, z, z] to the key "XYZ" in the same 'collection' and 'bucket'. We would only be able to return [x, y, z]. Does sonic internally have a way around this problem, or should we redefine how we store data to better suit sonic?