meilisearch-rust icon indicating copy to clipboard operation
meilisearch-rust copied to clipboard

Why does `attributes_to_crop` has a different prototype than `attributes_to_highlight`

Open bidoubiwa opened this issue 3 years ago • 0 comments

attributes_to_crop and attributes_to_highlight have the same type as per the documentation

https://github.com/meilisearch/meilisearch-rust/blob/0d1a82e55a84dd65a417b5a8414bc3839f7b5245/src/search.rs#L175

and here

https://github.com/meilisearch/meilisearch-rust/blob/0d1a82e55a84dd65a417b5a8414bc3839f7b5245/src/search.rs#L187

I was wondering if there was another reason why these two attributes have different types?

bidoubiwa avatar Apr 26 '22 13:04 bidoubiwa