views:

107

answers:

1

My indexed document in Lucene has got multiple cities assigned to it...ie. doc.Add(new Field("city", city1.Trim(), Field.Store.YES, Field.Index.TOKENIZED)); doc.Add(new Field("city", city2.Trim(), Field.Store.YES, Field.Index.TOKENIZED)); etc

how do i iterate thru them and read the values after executing the Lucene search query?

Thanks.

+3  A: 

Call Document.getValues for stored fields with multiple values.

Coady