mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-13 12:32:55 +00:00
rename DocValue to Value to avoid confusion with lucene DocValues rename Value to OwnedValue
14 lines
402 B
Rust
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>>);
|