The underlying data structure in Lucene is a so called Document which is basically a list of Fieldables. A Fieldable is basically a key/value pair. You can have multiple fields with the same key.
So to answer your question, in your scenario there will be two fields both with the same key ('name'). The value differs of course.