lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: Choosing the order of the fields to be displayed at output
Date Wed, 12 Aug 2015 03:48:17 GMT
On 8/11/2015 9:36 PM, Zheng Lin Edwin Yeo wrote:
> I'm using Solr 5.2.1. I understand that for JSON format, Solr writes out
> the fields of each document in the order they are found in the index as it
> is the fastest and most efficient for Solr to return the data.
> 
> However, this causes confusion as each of the records has fields arranged
> in different order, as user are allowed to update the field after the
> document is index. Whenever a field is updated, that field will be
> displayed at the bottom of the record.
> 
> Is there a way to choose the order of the fields to be displayed at the
> output, so that the order will be consistent for all the records?

Solr simply returns the fields in the order that Java naturally stores
the information, which from a user perspective, is not very predictable,
and may change from one version of code to the next, or when Java is
upgraded.

I think that deciding information display order order is a job for
client code.  The application that makes the request to Solr can pick
the pieces that need to be displayed to the user and decide what order
they should be in.

Thanks,
Shawn


Mime
View raw message