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

Tagger JSON should use an object, not an array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None

    Description

      The SolrTextTagger's tag structure in JSON looks like this by default:

      tags":[[
            "startOffset",6,
            "endOffset",19,
            "ids",["5128581"]]]
      

      But really it should be in an object form:

      "tags":[{
            "startOffset":6,
            "endOffset":19,
            "ids":["5128581"]}]
      

      Reported on the dev list by a user: https://lists.apache.org/thread/45x8q8x8zjhqbv9n7fyczyq558t2rfcv

      This is easily fixed.

      Attachments

        Issue Links

          Activity

            People

              dsmiley David Smiley
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m