tantivy-cli icon indicating copy to clipboard operation
tantivy-cli copied to clipboard

Ignore fields that aren't indexed

Open petr-tik opened this issue 5 years ago • 0 comments

Currently, passing a json file with fields that aren't indexable leads to an error like this

Failed to add document doc NoSuchFieldInSchema("asin")

I think it will be more user-friendly, if we ignore fields that we don't need to index and log it to stdout, instead of stopping indexing. This will reduce friction for new users - they will not have to change/preprocess their json files and can gradually add new fields and reindex.

petr-tik avatar Sep 22 '19 23:09 petr-tik