Skip to content

Unable to pass Byte vector to KnnSearch #933

@tuslm

Description

@tuslm

Java API client version

8.17.1

Java version

17

Elasticsearch Version

8.17.1

Problem description

KnnSearch.Builder miss option to pass Byte vector as queryVector parameter.

If a Byte vector is converted to a Float vector, I get the following error:
co.elastic.clients.elasticsearch._types.ElasticsearchException: [es/search] failed: [search_phase_execution_exception] all shards failed

The same request via curl with vector elements as bytes goes through without any issue.

The index is created in the same way as described in the documentation

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