public static class FallbackItemScorer.DynamicProvider extends Object implements javax.inject.Provider<ItemScorer>
An item scorer provider for opportunistically creating fallback scorers. If a baseline scorer is configured, this provider returns a fallback scorer that uses it; otherwise, it just returns the primary scorer.
Constructor and Description |
---|
DynamicProvider(ItemScorer prim,
ItemScorer fb) |
@Inject public DynamicProvider(@PrimaryScorer ItemScorer prim, @Nullable @BaselineScorer ItemScorer fb)
public ItemScorer get()
get
in interface javax.inject.Provider<ItemScorer>