Skip to content

queryLanguages not listed in SearchOptions #1405

Closed
@gbillig

Description

@gbillig

According to the documentation of the queryLanguages parameter, it can be passed to the search function as so:

index.search('query string', { queryLanguages: ['en'] })
  .then(({ hits }) => {
    console.log(hits);
  });

The second parameter of search is requestOptions and is typed as RequestOptions & SearchOptions. However I don't see the queryLanguages listed in the SearchOptions type (I don't expect it to be in RequestOptions since that type is purely for configuring the request itself). Right now queryLanguages is listed in the in Settings type but I believe it could also be added to SearchOptions.

What do you guys think about adding queryLanguages to SeachOptions?

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