Files
tantivy/src/schema/named_field_document.rs
PSeitz 03a1f40767 rename DocValue to Value (#2197)
rename DocValue to Value to avoid confusion with lucene DocValues
rename Value to OwnedValue
2023-10-02 17:03:00 +02:00

14 lines
402 B
Rust

use std::collections::BTreeMap;
use serde::{Deserialize, Serialize};
use crate::schema::OwnedValue;
/// Internal representation of a document used for JSON
/// serialization.
///
/// A `NamedFieldDocument` is a simple representation of a document
/// as a `BTreeMap<String, Vec<Value>>`.
#[derive(Debug, Deserialize, Serialize)]
pub struct NamedFieldDocument(pub BTreeMap<String, Vec<OwnedValue>>);