Package org.apache.solr.search
Class CollapsingQParserPlugin.CollapseScore
- java.lang.Object
-
- org.apache.solr.search.CollapsingQParserPlugin.CollapseScore
-
- Enclosing class:
- CollapsingQParserPlugin
public static final class CollapsingQParserPlugin.CollapseScore extends Object
-
-
Field Summary
Fields Modifier and Type Field Description float
score
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
setupIfNeeded(CollapsingQParserPlugin.GroupHeadSelector groupHeadSelector, Map<? super String,? super CollapsingQParserPlugin.CollapseScore> readerContext)
Inspects the GroupHeadSelector to determine if this CollapseScore is needed.static boolean
wantsCScore(String text)
Huge HACK, but not really any better options until/unless we can recursively ask value sources if they depend on score
-
-
-
Method Detail
-
setupIfNeeded
public boolean setupIfNeeded(CollapsingQParserPlugin.GroupHeadSelector groupHeadSelector, Map<? super String,? super CollapsingQParserPlugin.CollapseScore> readerContext)
Inspects the GroupHeadSelector to determine if this CollapseScore is needed. If it is, then "this" will be added to the readerContext using the "CSCORE" key, and true will be returned. If not returns false.
-
wantsCScore
public static boolean wantsCScore(String text)
Huge HACK, but not really any better options until/unless we can recursively ask value sources if they depend on score
-
-