[ https://issues.apache.org/jira/browse/SOLR-12574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16563038#comment-16563038 ]
ASF subversion and git services commented on SOLR-12574: -------------------------------------------------------- Commit e264d0392081ab1880ccf3c9895fa0e7e9c17d29 in lucene-solr's branch refs/heads/jira/http2 from [~arafalov] [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e264d03 ] SOLR-12574: Use a common bucket for all significantTerms outputs > SignificantTermsQParserPlugin should output its keys in a combined bucket > ------------------------------------------------------------------------- > > Key: SOLR-12574 > URL: https://issues.apache.org/jira/browse/SOLR-12574 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Components: query parsers > Affects Versions: 7.4 > Reporter: Alexandre Rafalovitch > Assignee: Alexandre Rafalovitch > Priority: Minor > Fix For: 7.5 > > Attachments: SOLR-12574.patch > > > SignificantTermsQParserPlugin is not yet visible to the users (was not > documented or spelt correctly in 7.4), so there is still a chance to fix its > output before people start using it. > Currently, it injects 6 different keys into the document, on the same level > as responseHeader and response. This feels like polluting top-level space. It > may be better to put all those keys under one bucket (e.g. significantTerms). > Additionally, resultCount is always the same as response.numFound (documents > found), so does not seem to be needed. > Current output: > {code:java} > { > "responseHeader": { > "status": 0, > "QTime": 1, > "params": { > "q": "directed_by_str:\"Steven Soderbergh\"", > "fq": "{!significantTerms field=genre numTerms=2}", > "rows": "1", > "wt": "json" > } > }, > "numDocs": 1100, > "resultCount": 5, > "sterms": [ > "biographical", > "romance" > ], > "scores": [ > 2.5552773475646973, > 2.6387078762054443 > ], > "docFreq": [ > 74, > 270 > ], > "queryDocFreq": [ > 2, > 3 > ], > "response": { > "numFound": 5, > "start": 0, > "docs": [ > { > "id": "/en/bubble", > "directed_by": [ > "Steven Soderbergh" > ], > "initial_release_date": "2005-09-03T00:00:00Z", > "name": "Bubble", > "genre": [ > "Crime Fiction", > "Mystery", > "Indie film", > "Thriller", > "Drama" > ], > "_version_": 1606610059993808899 > } > ] > } > }{code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org