Skip to content

sortBy parameter missing from OramaCloudSearchParams #21

@victortosts

Description

@victortosts

Hi team,

I noticed that sortBy is mentioned in the documentation and it works in practice, but it’s missing from the TypeScript type definition for OramaCloudSearchParams / SearchParams.

Here’s the current type:

export type SearchParams = {
    term: string;
    mode?: SearchMode;
    limit?: number;
    offset?: number;
    properties?: string[];
    where?: AnyObject;
    facets?: AnyObject;
    indexes?: string[];
    datasourceIDs?: string[];
    boost?: {
        [key: string]: number;
    };
    exact?: boolean;
    threshold?: number;
    similarity?: number;
    tolerance?: number;
    userID?: string;
    groupBy?: {
        properties: string[];
        max_results?: number;
    };
}; 

Could the type definition be updated to include it?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions