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]
fn document(&self) -> Option<&T>
[src]
Get a reference to the source document.
fn into_document(self) -> Option<T>
[src]
Convert the hit into the source document.
fn index(&self) -> &str
[src]
The index for the hit.
fn ty(&self) -> &str
[src]
The type of the hit.
fn version(&self) -> Option<u32>
[src]
The version of the hit.
fn score(&self) -> Option<f32>
[src]
The score of the hit.