Hello Jack,

here is the query:
http://localhost:7001/solr/collection1/select?q=*%3A*&rows=5&fl=*%2Cscore&wt=json&indent=true&debugQuery=true


and here the response:

{
  "responseHeader": {
    "status": 0,
    "QTime": 0
  },
  "response": {
    "numFound": 842,
    "start": 0,
    "docs": [
      {
        "rmDocumentTitle": [
          "Ersterfassung"
        ],
        "rmDocumentClass": [
          "Einführung Records Management"
        ],
        "rmDocumentSubclass": [
          "Einführung Records Management"
        ],
        "id": "aabziwlc4hkvgojtzyb4wbebqr4m3",
        "rmDocumentArt": [
          "Ersterfassung"
        ],
        "fullText": [
          " \n \n  \n  \n  \n  \n  \n \n     ...."
        ],
        "signatureField": "d41d8cd98f00b204e9800998ecf8427e"
      },
      {
        "rmDocumentTitle": [
          "pdf problem"
        ],
        "rmDocumentClass": [
          "Finanzielle Unterstützung"
        ],
        "rmDocumentSubclass": [
          "Finanzielle Unterstützung"
        ],
        "id": "aabn2s6tgozfgojtzyaxhmebqr4m3",
        "rmDocumentArt": [
          "Finanzielle Unterstützung: Soziales"
        ],
        "fullText": [
          " \n \n  \n  \n  \n  \n  \n \n     ...."
        ],
        "signatureField": "d41d8cd98f00b204e9800998ecf8427e"
      },
      {
        "rmDocumentTitle": [
          "Outgoing Diverses"
        ],
        "rmDocumentClass": [
          "Mobilität Outgoing"
        ],
        "rmDocumentSubclass": [
          "Mobilität Outgoing"
        ],
        "id": "aaaerfrlvzafgjxaticq2sebqr4m3",
        "rmDocumentArt": [
          "Outgoing Diverses"
        ],
        "fullText": [
          " \n \n  \n  \n  \n  \n  \n \n     ...."
        ],
        "signatureField": "d41d8cd98f00b204e9800998ecf8427e"
      },
      {
        "rmDocumentTitle": [
          "Outgoing Diverses"
        ],
        "rmDocumentClass": [
          "Mobilität Outgoing"
        ],
        "rmDocumentSubclass": [
          "Mobilität Outgoing"
        ],
        "id": "aaaeysqdibkvgjxaticq3b3bqr4m3",
        "rmDocumentArt": [
          "Outgoing Diverses"
        ],
        "fullText": [
          " \n \n  \n  \n  \n  \n  \n \n     ...."
        ],
        "signatureField": "d41d8cd98f00b204e9800998ecf8427e"
      },
      {
        "rmDocumentTitle": [
          "Outgoing Diverses"
        ],
        "rmDocumentClass": [
          "Mobilität Outgoing"
        ],
        "rmDocumentSubclass": [
          "Mobilität Outgoing"
        ],
        "id": "aaafhbovq6ufgjxaticq4ombqr4m3",
        "rmDocumentArt": [
          "Outgoing Diverses"
        ],
        "fullText": [
          " \n \n  \n  \n  \n  \n  \n \n     ...."
        ],
        "signatureField": "d41d8cd98f00b204e9800998ecf8427e"
      }
    ]
  },
  "debug": {
    "rawquerystring": "*:*",
    "querystring": "*:*",
    "parsedquery": "(+MatchAllDocsQuery(*:*))/no_coord",
    "parsedquery_toString": "+*:*",
    "explain": {
      "aabziwlc4hkvgojtzyb4wbebqr4m3": "\n1.0 = (MATCH) MatchAllDocsQuery, 
product of:\n  1.0 = queryNorm\n",
      "aabn2s6tgozfgojtzyaxhmebqr4m3": "\n1.0 = (MATCH) MatchAllDocsQuery, 
product of:\n  1.0 = queryNorm\n",
      "aaaerfrlvzafgjxaticq2sebqr4m3": "\n1.0 = (MATCH) MatchAllDocsQuery, 
product of:\n  1.0 = queryNorm\n",
      "aaaeysqdibkvgjxaticq3b3bqr4m3": "\n1.0 = (MATCH) MatchAllDocsQuery, 
product of:\n  1.0 = queryNorm\n",
      "aaafhbovq6ufgjxaticq4ombqr4m3": "\n1.0 = (MATCH) MatchAllDocsQuery, 
product of:\n  1.0 = queryNorm\n"
    },
    "QParser": "ExtendedDismaxQParser",
    "altquerystring": null,
    "boost_queries": null,
    "parsed_boost_queries": [],
    "boostfuncs": null,
    "filter_queries": [
      "* -language:en -language:de"
    ],
    "parsed_filter_queries": [
      "MatchAllDocsQuery(*:*) -language:en -language:de"
    ],
    "timing": {
      "time": 0,
      "prepare": {
        "time": 0,
        "query": {
          "time": 0
        },
        "facet": {
          "time": 0
        },
        "mlt": {
          "time": 0
        },
        "highlight": {
          "time": 0
        },
        "stats": {
          "time": 0
        },
        "debug": {
          "time": 0
        }
      },
      "process": {
        "time": 0,
        "query": {
          "time": 0
        },
        "facet": {
          "time": 0
        },
        "mlt": {
          "time": 0
        },
        "highlight": {
          "time": 0
        },
        "stats": {
          "time": 0
        },
        "debug": {
          "time": 0
        }
      }
    }
  }
}

Francesco



-----Original Message-----
From: Jack Krupansky [mailto:[email protected]] 
Sent: Mittwoch, 16. April 2014 14:32
To: [email protected]
Subject: Re: Show the score in the search result

Also, "*:*" is a constant score query, so the score will always be 1.0. Not a 
terribly good example to request the score.

Please provide the Solr query response, with the debug=true parameter so we can 
see for ourselves that no score is returned.

-- Jack Krupansky

-----Original Message-----
From: Erick Erickson
Sent: Wednesday, April 16, 2014 8:00 AM
To: [email protected]
Subject: Re: Show the score in the search result

What version of Solr? Works fine for me.

Best,
Erick

On Wed, Apr 16, 2014 at 6:38 AM, Croci  Francesco Luigi (ID SWS) 
<[email protected]> wrote:
> I read that if I add the string "score" in the fl field, I should be 
> able to see the score within the retuned documents.
>
> As I understand "score" is a "special/reserved" word and I don't have 
> to define in the schema (right)?
>
> I did so, but in the returned fields' list I see no score field...
>
> Here is the request's URL: 
> http://localhost:7001/solr/collection1/select?q=*%3A*&fl=*%2Cscore&wt=
> json&indent=true
>
> Do I miss something?
>
> Francesco

Reply via email to