Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
-
New
Description
Inspired by LUCENE-3973
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.
Attachments
Attachments
Issue Links
- is related to
-
LUCENE-7602 Fix compiler warnings for ant clean compile
- Closed
- relates to
-
LUCENE-5335 Change raw Map type to Map<String,Object> for ValueSource context
- Open