Skip to content

Use PATCH not PUT for updating objects #36

@asgeo1

Description

@asgeo1

Hello!

I want to use skip property in Weaviate, so some properties on my schema are not part of the generated vector.

I then want to be able to update a skip'd property, and it should not regenerate the vector, because that was the only property I updated, and it is not part of the vector.

It doesn't work currently. This is because weaviate-ruby is sending PUT rather than PATCH. I.e. it's replacing the entire object, which results in it regenerating the vector anyway, even if I'm only wanting to update a single, skipped property.

Suggest you have separate update and replace methods, which trigger PATCH and PUT respectively.

I forked the repo, and made this change myself, and it seems to work OK for me.

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