I found the answer to my question.  The order is determined by the order in 
which the fields were defined in the input XML or JSON record for this document.



________________________________
 From: Yuhao <nfsvi...@yahoo.com>
To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org> 
Sent: Wednesday, February 1, 2012 3:27 PM
Subject: $doc.getFieldNames() - what determines the order of fields?
 
$doc.getFieldNames() will give you a list of field names as defined in your 
schema.xml file.  However, the order in which it returns the field names is not 
the same order that I defined them in schema.xml.  What determines the order 
returned by $doc.getFieldNames() ?

Reply via email to