Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10349

Add totalTermFreq support to TermsComponent

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.6, 7.0
    • None
    • None

    Description

      See discussion here: http://markmail.org/message/gmpmege2jpfrsp75. Both docFreq and totalTermFreq are already available to the TermsComponent, it's just that doesn't add the ttf measure to the response.

      This issue adds a new terms.ttf parameter which if set to true results in the following output:

      <lst name="terms">
        <lst name="standardfilt">
          <lst name="shark">
            <long name="docFreq">2</long>
            <long name="totalTermFreq">2</long>
          </lst>
      ...
      

      The reason for the new parameter is to not break backward-compatibility, though I wish we could always return those two measures (it doesn't cost us anything, the two are already available to the code). Maybe we can break the response in master and add this parameter only to 6x as deprecated? I am also fine if we leave it and handle it in a separate issue.

      Attachments

        1. SOLR-10349.patch
          17 kB
          Shai Erera
        2. SOLR-10349.patch
          9 kB
          Shai Erera
        3. SOLR-10349.patch
          8 kB
          Shai Erera

        Issue Links

          Activity

            People

              shaie Shai Erera
              shaie Shai Erera
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: