Inspired by #5046
The context object used by ValueSource and friends is a raw Map that provides no type safety guarantees. In our current state, there are lots of warnings about unchecked casts, raw types, and generally unsafe code from the compiler's perspective.
There are several common patterns and types of Objects that we store in the context. It would be beneficial to instead use a class with typed methods for get/set of Scorer, Weights, etc.
Migrated from LUCENE-6232 by Mike Drob (@madrob), resolved Jun 22 2020
Attachments: LUCENE-6232.patch (versions: 3)
Linked issues:
Inspired by #5046
The context object used by ValueSource and friends is a raw Map that provides no type safety guarantees. In our current state, there are lots of warnings about unchecked casts, raw types, and generally unsafe code from the compiler's perspective.
There are several common patterns and types of Objects that we store in the context. It would be beneficial to instead use a class with typed methods for get/set of Scorer, Weights, etc.
Migrated from LUCENE-6232 by Mike Drob (@madrob), resolved Jun 22 2020
Attachments: LUCENE-6232.patch (versions: 3)
Linked issues: