Yelp / nrtsearch

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

Use FieldDefCreatorContext for field creation #778

Closed aprudhomme closed 3 weeks ago

aprudhomme commented 3 weeks 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 3 weeks 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.