Struct elasticsearch_dsl::search::Hit [−][src]
pub struct Hit<H, IH> {
pub index: Option<String>,
pub id: String,
pub score: Option<f32>,
pub source: Option<H>,
pub highlight: HashMap<String, Vec<String>>,
pub inner_hits: Option<InnerHitsResponse<IH>>,
pub matched_queries: Vec<String>,
pub sort: Vec<Value>,
}Expand description
Represents a single matched document
Fields
index: Option<String>Document index
id: StringDocument ID
score: Option<f32>Document score. None when documents are implicitly sorted by a
field other than _score
source: Option<H>Document source
highlight: HashMap<String, Vec<String>>Highlighted matches
inner_hits: Option<InnerHitsResponse<IH>>Inner hits
matched_queries: Vec<String>Matched queries
sort: Vec<Value>Values document was sorted by
Trait Implementations
impl<'de, H, IH> Deserialize<'de> for Hit<H, IH> where
H: Deserialize<'de>,
IH: Deserialize<'de>,
impl<'de, H, IH> Deserialize<'de> for Hit<H, IH> where
H: Deserialize<'de>,
IH: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<H, IH> RefUnwindSafe for Hit<H, IH> where
H: RefUnwindSafe,
IH: RefUnwindSafe,
impl<H, IH> UnwindSafe for Hit<H, IH> where
H: UnwindSafe,
IH: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more