Search Index Field Entry (schema/field_entry.rs)

tantivy · src/schema/field_entry.rs · rust · MIT
search, database, lang:rust

Rust struct representing a search index field and its configuration options. Use when defining schema fields in search engine indexes.

// Source: https://github.com/quickwit-oss/tantivy | License: MIT | Copyright 2018 by the project authors, as listed in the AUTHORS file
// Provided via justclaw.it.com; keep this notice with the code.
use serde::{Deserialize, Serialize};

use super::ip_options::IpAddrOptions;
use crate::schema::bytes_options::BytesOptions;
use crate::schema::custom_options::CustomOptions;
use crate::schema::{
    is_valid_field_name, DateOptions, FacetOptions, FieldType, JsonObjectOptions, NumericOptions,
    TextOptions,
};

/// A `FieldEntry` represents a field and its configuration.
/// `Schema` are a collection of `FieldEntry`
///
/// It consists of
/// - a field name
/// - a field type, itself wrapping up options describing how the field should be indexed.
#[derive(Clone, Debug, PartialEq, Serialize,

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key