Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Collection] - UpdateOne should accept different sorts #37

Open
clun opened this issue Jan 27, 2025 · 1 comment
Open

[Collection] - UpdateOne should accept different sorts #37

clun opened this issue Jan 27, 2025 · 1 comment
Labels

Comments

@clun
Copy link
Collaborator

clun commented Jan 27, 2025

How to sort a field by ascending/descending for UpdateOneOptions.

but I don't see how to do a vector search. (e.g. the vector search syntax that I use for FindOneOptions

public FindOneOptions sort(float[] vector, Sort... sorts)

doesn't seem to be supported in UpdateOneOptions

@clun
Copy link
Collaborator Author

clun commented Jan 30, 2025

The vector search is now a sort like any other else.

The sort()method now only take an array of Sort

Sort.vector(new float[]{.1, .2});
Sort.vectorize("Hello");

@clun clun added the fixed label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant