valeriansaliou / sonic

🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.
https://crates.io/crates/sonic-server
Mozilla Public License 2.0
20.13k stars 578 forks source link

Limit on `<object>` length during `ingest` `PUSH`? #319

Open gogsbread opened 10 months ago

gogsbread commented 10 months ago

When I try to ingest a string of size > 128, I get a ERR query_error. Is this encoded anywhere? Couldn't find any details about that in protocol or in configuration.

PUSH messages user aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "foo"
ERR query_error
valeriansaliou commented 10 months ago

Object length should be kept within reasonable limits, eg. an UUID. I don't have access to the code right now, so I cannot tell, but object was designed for ID-like values, not strings.