RE: the order of fields in Document.fields()

2002-11-13 Thread roy-lucene-user
Shouldn't there be at least one method that returns an array of fields in the correct order? Roy. -Original Message- The order is preserved (or reversed actually), so it's not random. It's reverse of the order of the order in which the fields were added to the document. This would be eas

Re: the order of fields in Document.fields()

2002-11-13 Thread Otis Gospodnetic
The order is preserved (or reversed actually), so it's not random. It's reverse of the order of the order in which the fields were added to the document. This would be easy to test... Otis --- [EMAIL PROTECTED] wrote: > Quick question about Document.fields(). > > Lucene provides you with a meth

the order of fields in Document.fields()

2002-11-13 Thread roy-lucene-user
Quick question about Document.fields(). Lucene provides you with a method to retrieve the value of a field or grab all fields as an Enumeration. It does not, however, allow you to grab all values of one field for a document, it will only return the last value added for that field. For example,