On Mon, Apr 26, 2004 at 04:36:22PM -0400, Gerard Sychay wrote:
> As two people have already stated, fields that are not tokenised are
> stored seprately.  Then a single document with two fields of the same
> name can be retrieved by searching for either of the fields.
> 
> However, retrieving all of the field values seems to be impossible. 
> That is, given ("field_name", "keyword1") and ("field_name",
> "keyword2"), using doc.get("field_name") always returns "keyword2", the
> last value added.  Of course, I can't really think of a scenario where
> this would be a problem..
> 
> Thanks for the help!

Use this method on yout document:

Field[]   getFields(String name)
          Returns an array of Fields with the given name.

incze

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to