Class CollapsingQParserPlugin.CollapseScore

    • Field Detail

      • score

        public float score
    • Method Detail

      • setupIfNeeded

        public boolean setupIfNeeded​(CollapsingQParserPlugin.GroupHeadSelector groupHeadSelector,
                                     Map 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