On 12/18/2012 2:58 AM, roySolr wrote:
What is the order of the fields that are in the SOLR response?
In SOLR 3.1 it was alfabetic but in SOLR 4 it isn't anymore. Is it
configurable?

I want to know this because i have test script that checks differences in
output between the SOLR versions.
When the order of the output fields is different it's really hard to
check/test.

What programming API are you using to access Solr? The native Java client (SolrJ) lets you do very easy comparisons on response data. It's not quite as easy as comparing the top level response objects, but once you drill down a bit into it, there are additional data structures that do work properly with Java's typical equals() method. Other Solr APIs may allow for similar comparisons, but I am not familiar with those.

If you are getting XML or JSON responses, there are probably APIs available from other sources that will do easy comparisons of major elements in those structures.

Thanks,
Shawn

Reply via email to