I posted a JIRA issue & PR: https://issues.apache.org/jira/browse/SOLR-15944
~ David Smiley Apache Lucene/Solr Search Developer http://www.linkedin.com/in/davidwsmiley On Sun, Aug 29, 2021 at 3:13 PM Christine Poerschke (BLOOMBERG/ LONDON) < [email protected]> wrote: > Based on similar unexpected formatting elsewhere in the code base (in the > past) and a quick look at the code I would guess that > https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.9.0/solr/core/src/java/org/apache/solr/handler/tagger/TaggerRequestHandler.java#L191 > allocating SimpleOrderedMap instead of NamedList might give the proposed > change. > > From: [email protected] At: 08/29/21 16:54:53 UTC+1:00 > To: [email protected] > Subject: Re: Tagger Handler response format - change proposition > > How about the json.nl parameter? That ought to control how this > outputs. > > On Sun, Aug 29, 2021, 10:49 Eric Pugh <[email protected]> > wrote: > >> Interesting change, and yes, that makes sense to me. Would love to see a >> PR. >> >> On Aug 28, 2021, at 3:32 AM, Łukasz Sokołowski < >> [email protected]> wrote: >> >> Hi, >> >> Forgive me using this channel but I didn’t find better place to ask and >> eventually propose the change below. >> >> I’m just implementing content tagging with use of Solr Tagger Handler and >> I’m wondering why “tags” in Tagger response is an array of arrays instead >> of array of objects? >> >> As in example from >> https://solr.apache.org/guide/8_7/the-tagger-handler.html >> >> { >> "responseHeader":{ >> "status":0, >> "QTime":1}, >> "tagsCount":1, >> "tags":[[ >> "startOffset",6, >> "endOffset",19, >> "ids",["5128581"]]], >> "response":{"numFound":1,"start":0,"docs":[ >> { >> "id":"5128581", >> "name":["New York City"], >> "countrycode":["US"]}] >> }} >> >> Wouldn’t it be more intuitive and easy to use: >> >> >> … >> >> "tags":[{ >> >> "startOffset":6, >> >> "endOffset":19, >> >> "ids":["5128581"]}], >> >> … >> >> >> >> Best regards, >> Łukasz Sokołowski >> >> >> _______________________ >> *Eric Pugh **| *Founder & CEO | OpenSource Connections, LLC | 434.466.1467 >> | http://www.opensourceconnections.com | My Free/Busy >> <http://tinyurl.com/eric-cal> >> Co-Author: Apache Solr Enterprise Search Server, 3rd Ed >> <https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw> >> This e-mail and all contents, including attachments, is considered to be >> Company Confidential unless explicitly stated otherwise, regardless >> of whether attachments are marked as such. >> >> >
