When I run the following query,

http://myserver:8990/solr/archives0/select?q=*:*&rows=3&wt=json&ft=id,ymd

The response is 

{"responseHeader":{"status":0,"QTime":1,"params":{"q":"*:*","rows":"3","wt":"json","ft":"id,ymd"}},"response":{"numFound":160238,"start":0,"docs":[{"id":"10","_version_":1495262519674011648},{"id":"1","_version_":1495262517261238272},{"id":"2","_version_":1495262517637677056}]}}


the ymd field does not appear in the list of document fields, although it is 
defined in my schema.xml.

Is there a way to tell SOLR to return that field in responses?


Philippe



----- Mail original -----
De: phi...@free.fr
À: solr-user@lucene.apache.org
Envoyé: Mercredi 11 Mars 2015 11:06:29
Objet: Missing doc fields



Hello,

when I display one of my core's  schema, lots of fields appear:

"fields":[{
        "name":"_root_",
        "type":"string",
        "indexed":true,
        "stored":false},
      {
        "name":"_version_",
        "type":"long",
        "indexed":true,
        "stored":true},
      {
        "name":"id",
        "type":"string",
        "multiValued":false,
        "indexed":true,
        "required":true,
        "stored":true},
      {
        "name":"ymd",
        "type":"tdate",
        "indexed":true,
        "stored":true}],
   ....


Yet, when I display $results in the richtext_doc.vm Velocity template, 
documents only contain three fields (id, _version_, score):

SolrDocument{id=3, _version_=1495262517955395584, score=1.0}, 


How can I increase the number of doc fields?

Many thanks.

Philipppe

Reply via email to