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

MoreLikeThis incorrectly does toString on Field object

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.5.1, 6.0.1, 7.0
    • None
    • None
    • None
    • New

    Description

      In MoreLikeThis.java, circa line 763, when calling addTermFrequencies on a Field object, we are incorrectly calling toString on the Field object, which puts the Field attributes (indexed, stored, et. al) into the String that is returned.

      I'll put up a patch/fix shortly.

      Attachments

        1. LUCENE-7354-mlt-fix
          6 kB
          Grant Ingersoll

        Activity

          People

            gsingers Grant Ingersoll
            gsingers Grant Ingersoll
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: