/** * Typesense API * An open source search engine for building delightful search experiences. * * The version of the OpenAPI document: 30.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Field } from './Field.js'; import type { VoiceQueryModelCollectionConfig } from './VoiceQueryModelCollectionConfig.js'; /** * * @export * @interface CollectionSchema */ export interface CollectionSchema { /** * Name of the collection * @type {string} * @memberof CollectionSchema */ name: string; /** * A list of fields for querying, filtering and faceting * @type {Array} * @memberof CollectionSchema */ fields: Array; /** * 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. * @type {string} * @memberof CollectionSchema */ defaultSortingField?: 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. * * @type {Array} * @memberof CollectionSchema */ tokenSeparators?: Array; /** * List of synonym set names to associate with this collection * @type {Array} * @memberof CollectionSchema */ synonymSets?: Array; /** * 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. * @type {boolean} * @memberof CollectionSchema */ enableNestedFields?: boolean; /** * List of symbols or special characters to be indexed. * * @type {Array} * @memberof CollectionSchema */ symbolsToIndex?: Array; /** * * @type {VoiceQueryModelCollectionConfig} * @memberof CollectionSchema */ voiceQueryModel?: VoiceQueryModelCollectionConfig; /** * Optional details about the collection, e.g., when it was created, who created it etc. * * @type {object} * @memberof CollectionSchema */ metadata?: object; } /** * Check if a given object implements the CollectionSchema interface. */ export declare function instanceOfCollectionSchema(value: object): value is CollectionSchema; export declare function CollectionSchemaFromJSON(json: any): CollectionSchema; export declare function CollectionSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionSchema; export declare function CollectionSchemaToJSON(json: any): CollectionSchema; export declare function CollectionSchemaToJSONTyped(value?: CollectionSchema | null, ignoreDiscriminator?: boolean): any;