Open marcus-pousette opened 2 years ago
I prefer this approach as it is more idiomatic and using a trait rather than a type definition is more extensible. Good idea 👍
Will try to get a PR up soon as I have time
@tmpfs I have not given up on this task, but I have been very busy this autumn and have not have time to work on this lib at all. Hopefully will have more time after new year!
In the current solution you define extraction functions and pass the as an array in
add_document
:A maybe more idiomatic solution would be to create a Trait, called something like Indexable
Then the
add_document
method will look like