Skip to content

Stack overflow for very long words #44

@mattheww

Description

@mattheww

If I add a very long word to the index (8000 characters is enough on my machine), I get a stack overflow while serialising it.

Here's how I was testing:

fn main() {
    let mut index = Index::new(&["body"]);
    let long_string = "a".repeat(8000);
    index.add_doc("1", &[long_string]);
    index.to_json_pretty();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions