Yelp / nrtsearch

A high performance gRPC server on top of Apache Lucene
Apache License 2.0
266 stars 40 forks source link

Use FieldDefCreatorContext for field creation #778

Closed aprudhomme closed 2 days ago

aprudhomme commented 5 days ago

Add the context class FieldDefCreatorContext to be used by FieldDef implementations during creation. The context currently only contains NrtsearchConfig, but more items can be added as needed.

aprudhomme commented 2 days ago

What else are we planning to add in this context in the future?

I am going to need some changes to the ExecutorFactory so that it will need to be passed to the vector field through this context. We may also need to pass other services in the future, if we move away from static instances.