pub struct CollectionResponse {
pub default_sorting_field: Option<String>,
pub enable_nested_fields: Option<bool>,
pub fields: Vec<Field>,
pub name: String,
pub symbols_to_index: Option<Vec<String>>,
pub token_separators: Option<Vec<String>>,
pub voice_query_model: Option<Box<VoiceQueryModelCollectionConfig>>,
pub created_at: i64,
pub num_documents: i64,
}
Fields§
§default_sorting_field: Option<String>
The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity.
enable_nested_fields: Option<bool>
Enables experimental support at a collection level for nested object or
object array fields. This field is only available if the Typesense
server is version 0.24.0.rcn34
or later.
fields: Vec<Field>
A list of fields for querying, filtering and faceting
name: String
Name of the collection
symbols_to_index: Option<Vec<String>>
List of symbols or special characters to be indexed.
token_separators: Option<Vec<String>>
List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters.
voice_query_model: Option<Box<VoiceQueryModelCollectionConfig>>
§created_at: i64
Timestamp of when the collection was created (Unix epoch in seconds)
num_documents: i64
Number of documents in the collection
Implementations§
Trait Implementations§
Source§impl Clone for CollectionResponse
impl Clone for CollectionResponse
Source§fn clone(&self) -> CollectionResponse
fn clone(&self) -> CollectionResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more