You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alexandre Rafalovitch (JIRA)" <ji...@apache.org> on 2018/07/21 15:56:00 UTC

[jira] [Created] (SOLR-12574) SignificantTermsQParserPlugin should output its keys in a combined bucket

Alexandre Rafalovitch created SOLR-12574:
--------------------------------------------

             Summary: 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


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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org