Skip to content

thlstsul/tantivy-macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Derive schema function return tantivy::schema::Schema; And impl into tantivy::schema::Document.

#[derive(Schema)]
pub struct Doc {
    #[field(name = "str", stored, indexed)]
    text: String,
    #[field(fast, norm, coerce, indexed)]
    num: u64,
    #[field(stored, indexed, fast)]
    date: DateTime,
    #[field(stored, indexed)]
    facet: Facet,
    #[field(stored, indexed)]
    bytes: Vec<u8>,
    #[field(stored, indexed)]
    json: Map<String, Value>,
    #[field(fast, indexed)]
    ip: Ipv6Addr
}

About

derive tantivy schema api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages