Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4113

FastVectorHighlighter: FieldTermStack.TermInfo should provide term-weight

Details

    • New, Patch Available

    Description

      This patch contains:

      • FieldTermStack.TermInfo has now a field TermInfo.weight (float), which holds the index-weight (IDF) of the corresponding term
      • FieldPhraseList.WeightedPhraseInfo has now a field WeightedPhraseInfo.termsInfos (ArrayList<TermInfo>), which provides information about the contained terms within the corresponding phrase
      • WeightedPhraseInfo.addIfNoOverlap() no longer dumps the second part of a hyphenated word (for example: social-economics)
      • FieldQueryTest has been updated

      Regarding test-cases:
      TermInfo.toString() wasn't modified, thus, test-cases remain pretty much the same except the additional parameter for TermInfo-constructor.

      This is the third (see LUCENE-4091, LUCENE-4107) patch aiming at the introduction of another method for weighting fragments (see LUCENE-3440).

      Attachments

        1. LUCENE-4113.patch
          8 kB
          Sebastian Lutze

        Activity

          People

            koji Koji Sekiguchi
            mdz-munich Sebastian Lutze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: