Get results of specific fields - SearchHitField Iterator?

Hi!

I use Version 0.90.1 of Elasticsearch and want to get the results of the
indexfields.

Is it possible to iterate over SearchHitFields?
I found this solution:
*
final Iterator iterator = hit.iterator() ;
while( iterator.hasNext() ) {
final SearchHitField hitField = iterator.next() ;
System.out.println(" field:"+hitField.getName()+"
value count:"+hitField.getValues()size() ) *

But when i try to use it, i get an error that i have to change the iterator
to iterator

Thanks!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.