This is not a definitive answer, but what you are retrieving is the
stored versions of those fields. When the document is indexed, it will
also store the multi-valued values of that field. I see no reason why at
index time it should re-order them - it just writes them to the index in
the order they are found. Solr (or Lucene rather) once a document has
been written, will never rewrite it, so it seems perfectly reasonable to
expect stored multi-valued fields to return in the same order.

When it comes to indexed terms, that's a different matter.

Upayavira 

On Tue, Dec 18, 2012, at 07:59 AM, hellorsanjeev wrote:
> Hi - We have been using solr since over an year. Some of our fields are
> multi
> valued. We are saving and retrieving data from those multi valued fields
> perfectly fine assuming the order in which we save, we will get the
> values
> in the same order.
> 
> The question is - Is it documented somewhere that Solr maintains the
> order
> of values inserted into multi-valued field OR is it just by luck we are
> getting them in insertion order? By my experience so far, it has always
> maintained.
> 
> Thanks in advance.
> 
> 
> 
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/order-question-on-solr-multi-value-field-tp4027695.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to