lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Bigham <>
Subject Multiple values for a field: Stable order?
Date Wed, 25 May 2016 19:33:04 GMT
I've recently become aware that Lucene allows duplicate field names, 
which essentially allows multiple values to be associated with a field.

A follow-up question is whether the order of the values is maintained... 
if I store the values "A", "B", and then "C" in a given field for a 
document, and then I later get the values via:

IndexableField[] f = doc.getFields(fieldName);
for (int i = 0; i < f.length; ++i)

... will the values come back in the same order I added them?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message