org.elasticsearch.search
Interface SearchHitField

All Superinterfaces:
Iterable<Object>, Streamable
All Known Implementing Classes:
InternalSearchHitField

public interface SearchHitField
extends Streamable, Iterable<Object>

A single field name and values part of a SearchHit.

See Also:
SearchHit

Method Summary
 String getName()
          The name of the field.
<V> V
getValue()
          The first value of the hit.
 List<Object> getValues()
          The field values.
 String name()
          The name of the field.
<V> V
value()
          The first value of the hit.
 List<Object> values()
          The field values.
 
Methods inherited from interface org.elasticsearch.common.io.stream.Streamable
readFrom, writeTo
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

name

String name()
The name of the field.


getName

String getName()
The name of the field.


value

<V> V value()
The first value of the hit.


getValue

<V> V getValue()
The first value of the hit.


values

List<Object> values()
The field values.


getValues

List<Object> getValues()
The field values.



Copyright © 2009-2012. All Rights Reserved.