Struct elastic_responses::search::Hit
[−]
[src]
pub struct Hit<T> { /* fields omitted */ }
Full metadata and source for a single hit.
Methods
impl<T> Hit<T>
[src]
pub fn document(&self) -> Option<&T>
[src]
Get a reference to the source document.
pub fn into_document(self) -> Option<T>
[src]
Convert the hit into the source document.
pub fn index(&self) -> &str
[src]
The index for the hit.
pub fn ty(&self) -> &str
[src]
The type of the hit.
pub fn version(&self) -> Option<u32>
[src]
The version of the hit.
pub fn score(&self) -> Option<f32>
[src]
The score of the hit.