mattico / elasticlunr-rs

A partial port of elasticlunr to Rust. Intended to be used for generating compatible search indices.
Apache License 2.0
52 stars 23 forks source link

Deduplicate Index fields #16

Closed mattico closed 6 years ago

mattico commented 6 years ago

Since field names are used as keys into a JSON object, there can't be multiple fields with the same name. This probably should've used a Set rather than a Vec, though that would be a breaking change now. We should either deduplicate field names or panic if there are multiple of the same name.